Spaces:
Paused
Paused
harishaseebat92
commited on
Commit
·
022e774
1
Parent(s):
9bd7c0b
Corrected Dockerfile
Browse files- Dockerfile +19 -15
Dockerfile
CHANGED
|
@@ -51,26 +51,30 @@ COPY docker/nginx.conf /etc/nginx/nginx.conf
|
|
| 51 |
RUN python3 -m venv utils/aqc_venv && \
|
| 52 |
# 1. Upgrade pip inside the new venv
|
| 53 |
utils/aqc_venv/bin/pip install --upgrade pip setuptools wheel && \
|
| 54 |
-
# 2.
|
| 55 |
-
cd utils && \
|
| 56 |
-
git clone https://github.com/bjader/aqc-research.git && \
|
| 57 |
-
# 3. Install aqc-research into the venv
|
| 58 |
-
../utils/aqc_venv/bin/pip install ./aqc-research && \
|
| 59 |
-
# 4. Install adapt-aqc (editable mode) into the venv
|
| 60 |
-
../utils/aqc_venv/bin/pip install -e ./adapt-aqc && \
|
| 61 |
-
# 5. Install qiskit_qasm3_import for QASM3 parsing
|
| 62 |
-
../utils/aqc_venv/bin/pip install qiskit_qasm3_import && \
|
| 63 |
-
# 2. Install core dependencies with EXACT versions from your local env
|
| 64 |
utils/aqc_venv/bin/pip install \
|
| 65 |
"qiskit==1.3.1" \
|
| 66 |
"qiskit-aer==0.16.4" \
|
| 67 |
"qiskit-algorithms==0.4.0" \
|
| 68 |
"qiskit-qasm3-import==0.6.0" \
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 74 |
echo "=== Qiskit versions ===" && \
|
| 75 |
/home/user/app/utils/aqc_venv/bin/pip list | grep -i qiskit && \
|
| 76 |
/home/user/app/utils/aqc_venv/bin/python --version
|
|
|
|
| 51 |
RUN python3 -m venv utils/aqc_venv && \
|
| 52 |
# 1. Upgrade pip inside the new venv
|
| 53 |
utils/aqc_venv/bin/pip install --upgrade pip setuptools wheel && \
|
| 54 |
+
# 2. Install EXACT versions FIRST (before any library that has qiskit dependency)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 55 |
utils/aqc_venv/bin/pip install \
|
| 56 |
"qiskit==1.3.1" \
|
| 57 |
"qiskit-aer==0.16.4" \
|
| 58 |
"qiskit-algorithms==0.4.0" \
|
| 59 |
"qiskit-qasm3-import==0.6.0" \
|
| 60 |
+
"qiskit-experiments==0.6.1" \
|
| 61 |
+
"qiskit-ibm-experiment==0.4.8" \
|
| 62 |
+
"numpy==1.26.4" \
|
| 63 |
+
"scipy==1.16.3" \
|
| 64 |
+
"sympy==1.14.0" \
|
| 65 |
+
"openfermion==1.7.1" \
|
| 66 |
+
"cirq-core==1.6.1" \
|
| 67 |
+
"physics-tenpy==1.0.7" \
|
| 68 |
+
"lmfit==1.3.4" \
|
| 69 |
+
"h5py==3.15.1" && \
|
| 70 |
+
# 3. Clone aqc-research inside utils
|
| 71 |
+
cd utils && \
|
| 72 |
+
git clone https://github.com/bjader/aqc-research.git && \
|
| 73 |
+
# 4. Install aqc-research with --no-deps (won't upgrade qiskit)
|
| 74 |
+
/home/user/app/utils/aqc_venv/bin/pip install --no-deps ./aqc-research && \
|
| 75 |
+
# 5. Install adapt-aqc with --no-deps
|
| 76 |
+
/home/user/app/utils/aqc_venv/bin/pip install --no-deps -e ./adapt-aqc && \
|
| 77 |
+
# 6. VERIFY: Print versions to confirm
|
| 78 |
echo "=== Qiskit versions ===" && \
|
| 79 |
/home/user/app/utils/aqc_venv/bin/pip list | grep -i qiskit && \
|
| 80 |
/home/user/app/utils/aqc_venv/bin/python --version
|