Skip to content

Commit 2fdad14

Browse files
authored
Qiskit BackendV2 migration (#694)
1 parent aae940f commit 2fdad14

23 files changed

+1634
-473
lines changed

.ado/ci.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,18 +60,24 @@ jobs:
6060
displayName: Set Python version
6161

6262
- script: |
63-
pip install pytest pytest-azurepipelines pytest-cov pytest-xdist
64-
displayName: Install pytest dependencies
63+
python -m pip install --upgrade pip
64+
pip install pytest pytest-azurepipelines pytest-cov pytest-xdist tox
65+
displayName: Install test dependencies
6566
6667
- script: |
6768
pip freeze
6869
displayName: List installed packages
6970
7071
- script: |
7172
cd $(Build.SourcesDirectory)/azure-quantum
72-
pip install .[qiskit,cirq,qsharp,dev]
73-
pytest --numprocesses $(PYTEST_MAX_PARALLEL_TESTS) --cov-report term --cov=azure.quantum --junitxml test-output-azure-quantum.xml $(Build.SourcesDirectory)/azure-quantum
73+
pip install ".[cirq,qsharp,dev]"
74+
pytest --numprocesses $(PYTEST_MAX_PARALLEL_TESTS) --cov-report term --cov=azure.quantum --junitxml test-output-azure-quantum.xml --ignore tests/unit/test_qiskit.py --ignore tests/unit/test_session_qiskit.py $(Build.SourcesDirectory)/azure-quantum
7475
displayName: Run azure-quantum unit tests
76+
77+
- script: |
78+
cd $(Build.SourcesDirectory)/azure-quantum
79+
tox -e py311-qiskit1,py311-qiskit2
80+
displayName: Run Qiskit matrix tests
7581
7682
- task: PublishTestResults@2
7783
displayName: 'Publish tests results (python)'

.ado/publish.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,19 +110,25 @@ extends:
110110
displayName: Set Python version
111111

112112
- script: |
113-
pip install pytest pytest-azurepipelines pytest-cov pytest-xdist
114-
displayName: Install pytest dependencies
113+
python -m pip install --upgrade pip
114+
pip install pytest pytest-azurepipelines pytest-cov pytest-xdist tox
115+
displayName: Install test dependencies
115116
116117
- script: |
117118
pip freeze
118119
displayName: List installed packages
119120
120121
- script: |
121122
cd $(Build.SourcesDirectory)/azure-quantum
122-
pip install .[qiskit,cirq,qsharp,dev]
123-
pytest --numprocesses $(PYTEST_MAX_PARALLEL_TESTS) --cov-report term --cov=azure.quantum --junitxml test-output-azure-quantum.xml $(Build.SourcesDirectory)/azure-quantum
123+
pip install ".[cirq,qsharp,dev]"
124+
pytest --numprocesses $(PYTEST_MAX_PARALLEL_TESTS) --cov-report term --cov=azure.quantum --junitxml test-output-azure-quantum.xml --ignore tests/unit/test_qiskit.py --ignore tests/unit/test_session_qiskit.py $(Build.SourcesDirectory)/azure-quantum
124125
displayName: Run Unit-tests
125126
127+
- script: |
128+
cd $(Build.SourcesDirectory)/azure-quantum
129+
tox -e py311-qiskit1,py311-qiskit2
130+
displayName: Run Qiskit matrix tests
131+
126132
- task: PublishTestResults@2
127133
displayName: 'Publish test results (python)'
128134
condition: succeededOrFailed()

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,6 @@ coverage.xml
391391
htmlcov/
392392

393393
# Other
394-
*.ini
395394
dist/
396395
temp/
397396
.[v]env/

NOTICE

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,20 @@ required to debug changes to any libraries licensed under the GNU Lesser General
2222

2323
---------------------------------------------------------
2424

25+
qiskit-ionq helpers and exceptions (commit cea8f9874b992f82a35648582c06958869370c69) - Apache-2.0
26+
27+
Portions of azure.quantum.qiskit.backends._qiskit_ionq.py and azure-quantum/tests/unit/test_qiskit.py
28+
are adapted from qiskit-community/qiskit-ionq (ionq_gates.py, helpers.py, and exceptions.py) to
29+
support Qiskit BackendV2.
30+
Copyright 2017-2018 IBM and 2020-2021 IonQ, Inc.
31+
32+
Licensed under the Apache License, Version 2.0. A copy of the license text
33+
appears within this NOTICE file and is available at http://www.apache.org/licenses/LICENSE-2.0.
34+
35+
---------------------------------------------------------
36+
37+
---------------------------------------------------------
38+
2539
asttokens 2.0.5 - Apache-2.0
2640

2741

0 commit comments

Comments
 (0)