Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migrated openqaoa-qiskit to qiskit 1.0 #312

Open
wants to merge 12 commits into
base: dev
Choose a base branch
from
4 changes: 2 additions & 2 deletions .github/workflows/test_dev_ext.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.8
python-version: 3.9
- name: Install qvm
run: |
find /usr/lib -name "libffi.so*"
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.8
python-version: 3.9

- name: Install OpenQAOA
run: |
Expand Down
16 changes: 5 additions & 11 deletions examples/02_simulators_comparison.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,9 @@
}
],
"source": [
"from qiskit import Aer\n",
"from qiskit.test.mock import FakeVigo\n",
"from qiskit.providers.aer.noise import NoiseModel\n",
"from qiskit.providers.aer import QasmSimulator\n",
"from qiskit_ibm_runtime.fake_provider import FakeVigo\n",
"from qiskit_aer.noise import NoiseModel\n",
"from qiskit_aer import QasmSimulator\n",
"device_backend = FakeVigo()\n",
"device = QasmSimulator.from_backend(device_backend)\n",
"noise_model = NoiseModel.from_backend(device)"
Expand Down Expand Up @@ -324,9 +323,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "fix_qiskit_and_deprecations",
"display_name": "Python 3",
"language": "python",
"name": "fix_qiskit_and_deprecations"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -352,11 +351,6 @@
"toc_position": {},
"toc_section_display": true,
"toc_window_display": false
},
"vscode": {
"interpreter": {
"hash": "d2582286b70c3b030a2fde61b871db03dec7fee33191883f4394b540a2eb90c7"
}
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion src/openqaoa-azure/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
qdk
qiskit-qir
qiskit-qir~=0.5.0
qiskit-ionq
azure-quantum[qiskit]
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

# IBM Qiskit imports
from qiskit import QuantumCircuit, QuantumRegister
from qiskit.providers.aer import AerSimulator
from qiskit.providers.aer.noise import NoiseModel
from qiskit_aer import AerSimulator
from qiskit_aer.noise import NoiseModel
from qiskit.quantum_info import Statevector, SparsePauliOp
from qiskit.circuit import Parameter

Expand Down
6 changes: 4 additions & 2 deletions src/openqaoa-qiskit/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
qiskit>=0.36.1,<1.0
qiskit~=1.0.0
qiskit-ibm-provider
qiskit-aer
qiskit-aer
qiskit-ibm-runtime
mitiq[qiskit]
1 change: 0 additions & 1 deletion src/openqaoa-qiskit/tests/test_qpu_qiskit.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

from qiskit import QuantumCircuit
from qiskit.quantum_info import Operator
from qiskit.tools.monitor import job_monitor
from qiskit_ibm_provider.job.exceptions import IBMJobError
from qiskit.converters import circuit_to_dag, dag_to_circuit

Expand Down
4 changes: 2 additions & 2 deletions src/openqaoa-qiskit/tests/test_workflows_qiskit.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import numpy as np
import datetime

from qiskit.providers.fake_provider import FakeVigo
from qiskit.providers.aer.noise import NoiseModel
from qiskit_ibm_runtime.fake_provider import FakeVigo
from qiskit_aer.noise import NoiseModel
from qiskit_aer import AerSimulator

from openqaoa import QAOA, RQAOA
Expand Down
Loading