Qiskit / qiskit-serverless

A programming model for leveraging quantum and classical resources
https://qiskit.github.io/qiskit-serverless/
Apache License 2.0
58 stars 27 forks source link

qiskit-terra improvement for aarch64 architectures #869

Closed Tansito closed 10 months ago

Tansito commented 11 months ago

What is the expected enhancement?

From #803 we faced a problem with the installation of a qiskit-terra's version. They solved it and recommended us to change our pip install to include --only-binary=qiskit-terra in our Dockerfile:

RUN pip install . --no-cache-dir --only-binary=qiskit-terra &&\
akihikokuroda commented 11 months ago

I tried it. It doesn't work.

 => ERROR [ 5/13] RUN pip install . --no-cache-dir --only-binary=qiskit-terra                                                                                                                         10.5s
------                                                                                                                                                                                                      
 > [ 5/13] RUN pip install . --no-cache-dir --only-binary=qiskit-terra:                                                                                                                                     
#0 0.395 Processing /qs                                                                                                                                                                                     
#0 0.398   Installing build dependencies: started                                                                                                                                                           
#0 5.084   Installing build dependencies: finished with status 'done'                                                                                                                                       
#0 5.086   Getting requirements to build wheel: started                                                                                                                                                     
#0 5.190   Getting requirements to build wheel: finished with status 'done'
#0 5.193   Preparing metadata (pyproject.toml): started
#0 5.305   Preparing metadata (pyproject.toml): finished with status 'done'
#0 6.436 Collecting qiskit-ibm-runtime>=0.11.2
#0 7.544   Downloading qiskit_ibm_runtime-0.11.3-py3-none-any.whl (128 kB)
#0 7.567      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 128.3/128.3 kB 6.1 MB/s eta 0:00:00
#0 7.606 Collecting requests>=2.31.0
#0 7.662   Downloading requests-2.31.0-py3-none-any.whl (62 kB)
#0 7.665      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.6/62.6 kB 251.2 MB/s eta 0:00:00
#0 7.789 Collecting pydantic<2
#0 7.805   Downloading pydantic-1.10.12-py3-none-any.whl (158 kB)
#0 7.813      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 158.4/158.4 kB 25.0 MB/s eta 0:00:00
#0 7.899 Collecting ray[data,default]<3,>=2.5.0
#0 7.918   Downloading ray-2.6.2-cp39-cp39-manylinux2014_aarch64.whl (55.4 MB)
#0 9.031      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 55.4/55.4 MB 49.3 MB/s eta 0:00:00
#0 9.211 ERROR: Could not find a version that satisfies the requirement qiskit-terra==0.24.2 (from quantum-serverless) (from versions: 0.17.0, 0.17.1, 0.17.2, 0.17.3, 0.17.4, 0.18.1, 0.18.2, 0.18.3, 0.19.0, 0.19.1, 0.19.2, 0.20.0, 0.20.1, 0.20.2, 0.21.0, 0.21.1, 0.21.2, 0.22.0rc1, 0.22.0, 0.22.1, 0.22.2, 0.22.3, 0.22.4, 0.23.0rc1, 0.23.0, 0.23.1, 0.23.2, 0.23.3, 0.24.0rc1, 0.24.0, 0.24.1, 0.25.0rc1, 0.25.0)
#0 9.211 ERROR: No matching distribution found for qiskit-terra==0.24.2
akihikokuroda commented 11 months ago

The build is using

Downloading qiskit_terra-0.24.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

for 0.24.1 but the equivalent one doesn't for 0.24.2 on pypi.

Tansito commented 10 months ago

Mmm... Let's close it by now then to see if we have problems with versions 0.25 and so on with the abi3 wheels. We can always open a PR to them to see if they clarify us the correct approach.