-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return only default backends by the Qiskit provider (#602)
* qiskit provider now returns only default backends
- Loading branch information
1 parent
01e288a
commit 0699fa5
Showing
118 changed files
with
42,879 additions
and
18,964 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
664 changes: 281 additions & 383 deletions
664
azure-quantum/tests/unit/recordings/test_configuration_quantinuum_backends.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
388 changes: 200 additions & 188 deletions
388
azure-quantum/tests/unit/recordings/test_dft_failure_algorithm_produces_output.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
219 changes: 124 additions & 95 deletions
219
azure-quantum/tests/unit/recordings/test_dft_failure_invalid_input.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
442 changes: 207 additions & 235 deletions
442
azure-quantum/tests/unit/recordings/test_dft_success.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
217 changes: 153 additions & 64 deletions
217
azure-quantum/tests/unit/recordings/test_estimator_batching_job.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
94 changes: 47 additions & 47 deletions
94
azure-quantum/tests/unit/recordings/test_estimator_failing_job.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
214 changes: 140 additions & 74 deletions
214
azure-quantum/tests/unit/recordings/test_estimator_non_batching_job.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
161 changes: 96 additions & 65 deletions
161
azure-quantum/tests/unit/recordings/test_estimator_profiling_job.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
131 changes: 62 additions & 69 deletions
131
azure-quantum/tests/unit/recordings/test_estimator_qiskit_job.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
96 changes: 48 additions & 48 deletions
96
azure-quantum/tests/unit/recordings/test_estimator_warn_on_passed_shots.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
207 changes: 207 additions & 0 deletions
207
...uantum/tests/unit/recordings/test_get_backends_throws_on_more_than_one_backend_found.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,207 @@ | ||
interactions: | ||
- request: | ||
body: client_id=PLACEHOLDER&grant_type=client_credentials&client_info=1&client_secret=PLACEHOLDER&scope=https%3A%2F%2Fquantum.microsoft.com%2F.default | ||
headers: | ||
Accept: | ||
- application/json | ||
Accept-Encoding: | ||
- gzip, deflate | ||
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- '144' | ||
Content-Type: | ||
- application/x-www-form-urlencoded | ||
User-Agent: | ||
- azsdk-python-identity/1.15.0 Python/3.9.18 (Windows-10-10.0.22621-SP0) | ||
x-client-current-telemetry: | ||
- 4|730,2| | ||
x-client-os: | ||
- win32 | ||
x-client-sku: | ||
- MSAL.Python | ||
x-client-ver: | ||
- 1.26.0 | ||
method: POST | ||
uri: https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token | ||
response: | ||
body: | ||
string: '{"token_type": "Bearer", "expires_in": 1745372990, "ext_expires_in": | ||
1745372990, "refresh_in": 31536000, "access_token": "PLACEHOLDER"}' | ||
headers: | ||
content-length: | ||
- '135' | ||
content-type: | ||
- application/json; charset=utf-8 | ||
status: | ||
code: 200 | ||
message: OK | ||
- request: | ||
body: null | ||
headers: | ||
Accept: | ||
- application/json | ||
Accept-Encoding: | ||
- gzip, deflate | ||
Connection: | ||
- keep-alive | ||
User-Agent: | ||
- testapp-azure-quantum-qiskit azsdk-python-quantum/0.0.1 Python/3.9.18 (Windows-10-10.0.22621-SP0) | ||
method: GET | ||
uri: https://eastus.quantum.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/providerStatus?api-version=2022-09-12-preview&test-sequence-id=1 | ||
response: | ||
body: | ||
string: '{"value": [{"id": "microsoft-elements", "currentAvailability": "Available", | ||
"targets": [{"id": "microsoft.dft", "currentAvailability": "Available", "averageQueueTime": | ||
0, "statusPage": null}]}, {"id": "ionq", "currentAvailability": "Degraded", | ||
"targets": [{"id": "ionq.qpu", "currentAvailability": "Unavailable", "averageQueueTime": | ||
591243, "statusPage": "https://status.ionq.co"}, {"id": "ionq.qpu.aria-1", | ||
"currentAvailability": "Available", "averageQueueTime": 525439, "statusPage": | ||
"https://status.ionq.co"}, {"id": "ionq.qpu.aria-2", "currentAvailability": | ||
"Unavailable", "averageQueueTime": 0, "statusPage": "https://status.ionq.co"}, | ||
{"id": "ionq.simulator", "currentAvailability": "Available", "averageQueueTime": | ||
0, "statusPage": "https://status.ionq.co"}]}, {"id": "microsoft-qc", "currentAvailability": | ||
"Available", "targets": [{"id": "microsoft.estimator", "currentAvailability": | ||
"Available", "averageQueueTime": 0, "statusPage": null}]}, {"id": "pasqal", | ||
"currentAvailability": "Degraded", "targets": [{"id": "pasqal.sim.emu-tn", | ||
"currentAvailability": "Available", "averageQueueTime": 318, "statusPage": | ||
"https://pasqal.com"}, {"id": "pasqal.qpu.fresnel", "currentAvailability": | ||
"Degraded", "averageQueueTime": 0, "statusPage": "https://pasqal.com"}]}, | ||
{"id": "rigetti", "currentAvailability": "Degraded", "targets": [{"id": "rigetti.sim.qvm", | ||
"currentAvailability": "Available", "averageQueueTime": 5, "statusPage": "https://rigetti.statuspage.io/"}, | ||
{"id": "rigetti.qpu.ankaa-2", "currentAvailability": "Degraded", "averageQueueTime": | ||
5, "statusPage": "https://rigetti.statuspage.io/"}]}, {"id": "qci", "currentAvailability": | ||
"Degraded", "targets": [{"id": "qci.simulator", "currentAvailability": "Available", | ||
"averageQueueTime": 1, "statusPage": "https://quantumcircuits.com"}, {"id": | ||
"qci.machine1", "currentAvailability": "Unavailable", "averageQueueTime": | ||
1, "statusPage": "https://quantumcircuits.com"}, {"id": "qci.simulator.noisy", | ||
"currentAvailability": "Available", "averageQueueTime": 0, "statusPage": "https://quantumcircuits.com"}]}, | ||
{"id": "quantinuum", "currentAvailability": "Degraded", "targets": [{"id": | ||
"quantinuum.qpu.h1-1", "currentAvailability": "Degraded", "averageQueueTime": | ||
0, "statusPage": "https://www.quantinuum.com/hardware/h1"}, {"id": "quantinuum.sim.h1-1sc", | ||
"currentAvailability": "Available", "averageQueueTime": 3, "statusPage": "https://www.quantinuum.com/hardware/h1"}, | ||
{"id": "quantinuum.sim.h1-1e", "currentAvailability": "Available", "averageQueueTime": | ||
7, "statusPage": "https://www.quantinuum.com/hardware/h1"}, {"id": "quantinuum.qpu.h2-1", | ||
"currentAvailability": "Degraded", "averageQueueTime": 0, "statusPage": "https://www.quantinuum.com/hardware/h2"}, | ||
{"id": "quantinuum.sim.h2-1sc", "currentAvailability": "Available", "averageQueueTime": | ||
0, "statusPage": "https://www.quantinuum.com/hardware/h2"}, {"id": "quantinuum.sim.h2-1e", | ||
"currentAvailability": "Available", "averageQueueTime": 21291, "statusPage": | ||
"https://www.quantinuum.com/hardware/h2"}, {"id": "quantinuum.sim.h1-1sc-preview", | ||
"currentAvailability": "Available", "averageQueueTime": 3, "statusPage": "https://www.quantinuum.com/hardware/h1"}, | ||
{"id": "quantinuum.sim.h1-1e-preview", "currentAvailability": "Available", | ||
"averageQueueTime": 7, "statusPage": "https://www.quantinuum.com/hardware/h1"}, | ||
{"id": "quantinuum.sim.h1-2e-preview", "currentAvailability": "Available", | ||
"averageQueueTime": 0, "statusPage": "https://www.quantinuum.com/hardware/h1"}, | ||
{"id": "quantinuum.qpu.h1-1-preview", "currentAvailability": "Degraded", "averageQueueTime": | ||
0, "statusPage": "https://www.quantinuum.com/hardware/h1"}]}, {"id": "Microsoft.Test", | ||
"currentAvailability": "Available", "targets": [{"id": "echo-rigetti", "currentAvailability": | ||
"Available", "averageQueueTime": 1, "statusPage": ""}, {"id": "echo-quantinuum", | ||
"currentAvailability": "Available", "averageQueueTime": 1, "statusPage": ""}, | ||
{"id": "echo-qci", "currentAvailability": "Available", "averageQueueTime": | ||
1, "statusPage": ""}, {"id": "echo-ionq", "currentAvailability": "Available", | ||
"averageQueueTime": 1, "statusPage": ""}, {"id": "echo-aquarius", "currentAvailability": | ||
"Available", "averageQueueTime": 1, "statusPage": ""}, {"id": "sparse-sim-rigetti", | ||
"currentAvailability": "Available", "averageQueueTime": 1, "statusPage": ""}, | ||
{"id": "sparse-sim-quantinuum", "currentAvailability": "Available", "averageQueueTime": | ||
1, "statusPage": ""}, {"id": "sparse-sim-qci", "currentAvailability": "Available", | ||
"averageQueueTime": 1, "statusPage": ""}, {"id": "sparse-sim-ionq", "currentAvailability": | ||
"Available", "averageQueueTime": 1, "statusPage": ""}, {"id": "echo-output", | ||
"currentAvailability": "Available", "averageQueueTime": 1, "statusPage": ""}]}], | ||
"nextLink": null}' | ||
headers: | ||
connection: | ||
- keep-alive | ||
content-length: | ||
- '4754' | ||
content-type: | ||
- application/json; charset=utf-8 | ||
transfer-encoding: | ||
- chunked | ||
status: | ||
code: 200 | ||
message: OK | ||
- request: | ||
body: null | ||
headers: | ||
Accept: | ||
- application/json | ||
Accept-Encoding: | ||
- gzip, deflate | ||
Connection: | ||
- keep-alive | ||
User-Agent: | ||
- testapp-azure-quantum-qiskit azsdk-python-quantum/0.0.1 Python/3.9.18 (Windows-10-10.0.22621-SP0) | ||
method: GET | ||
uri: https://eastus.quantum.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/providerStatus?api-version=2022-09-12-preview&test-sequence-id=2 | ||
response: | ||
body: | ||
string: '{"value": [{"id": "microsoft-elements", "currentAvailability": "Available", | ||
"targets": [{"id": "microsoft.dft", "currentAvailability": "Available", "averageQueueTime": | ||
0, "statusPage": null}]}, {"id": "ionq", "currentAvailability": "Degraded", | ||
"targets": [{"id": "ionq.qpu", "currentAvailability": "Unavailable", "averageQueueTime": | ||
591243, "statusPage": "https://status.ionq.co"}, {"id": "ionq.qpu.aria-1", | ||
"currentAvailability": "Available", "averageQueueTime": 525439, "statusPage": | ||
"https://status.ionq.co"}, {"id": "ionq.qpu.aria-2", "currentAvailability": | ||
"Unavailable", "averageQueueTime": 0, "statusPage": "https://status.ionq.co"}, | ||
{"id": "ionq.simulator", "currentAvailability": "Available", "averageQueueTime": | ||
0, "statusPage": "https://status.ionq.co"}]}, {"id": "microsoft-qc", "currentAvailability": | ||
"Available", "targets": [{"id": "microsoft.estimator", "currentAvailability": | ||
"Available", "averageQueueTime": 0, "statusPage": null}]}, {"id": "pasqal", | ||
"currentAvailability": "Degraded", "targets": [{"id": "pasqal.sim.emu-tn", | ||
"currentAvailability": "Available", "averageQueueTime": 318, "statusPage": | ||
"https://pasqal.com"}, {"id": "pasqal.qpu.fresnel", "currentAvailability": | ||
"Degraded", "averageQueueTime": 0, "statusPage": "https://pasqal.com"}]}, | ||
{"id": "rigetti", "currentAvailability": "Degraded", "targets": [{"id": "rigetti.sim.qvm", | ||
"currentAvailability": "Available", "averageQueueTime": 5, "statusPage": "https://rigetti.statuspage.io/"}, | ||
{"id": "rigetti.qpu.ankaa-2", "currentAvailability": "Degraded", "averageQueueTime": | ||
5, "statusPage": "https://rigetti.statuspage.io/"}]}, {"id": "qci", "currentAvailability": | ||
"Degraded", "targets": [{"id": "qci.simulator", "currentAvailability": "Available", | ||
"averageQueueTime": 1, "statusPage": "https://quantumcircuits.com"}, {"id": | ||
"qci.machine1", "currentAvailability": "Unavailable", "averageQueueTime": | ||
1, "statusPage": "https://quantumcircuits.com"}, {"id": "qci.simulator.noisy", | ||
"currentAvailability": "Available", "averageQueueTime": 0, "statusPage": "https://quantumcircuits.com"}]}, | ||
{"id": "quantinuum", "currentAvailability": "Degraded", "targets": [{"id": | ||
"quantinuum.qpu.h1-1", "currentAvailability": "Degraded", "averageQueueTime": | ||
0, "statusPage": "https://www.quantinuum.com/hardware/h1"}, {"id": "quantinuum.sim.h1-1sc", | ||
"currentAvailability": "Available", "averageQueueTime": 3, "statusPage": "https://www.quantinuum.com/hardware/h1"}, | ||
{"id": "quantinuum.sim.h1-1e", "currentAvailability": "Available", "averageQueueTime": | ||
7, "statusPage": "https://www.quantinuum.com/hardware/h1"}, {"id": "quantinuum.qpu.h2-1", | ||
"currentAvailability": "Degraded", "averageQueueTime": 0, "statusPage": "https://www.quantinuum.com/hardware/h2"}, | ||
{"id": "quantinuum.sim.h2-1sc", "currentAvailability": "Available", "averageQueueTime": | ||
0, "statusPage": "https://www.quantinuum.com/hardware/h2"}, {"id": "quantinuum.sim.h2-1e", | ||
"currentAvailability": "Available", "averageQueueTime": 21291, "statusPage": | ||
"https://www.quantinuum.com/hardware/h2"}, {"id": "quantinuum.sim.h1-1sc-preview", | ||
"currentAvailability": "Available", "averageQueueTime": 3, "statusPage": "https://www.quantinuum.com/hardware/h1"}, | ||
{"id": "quantinuum.sim.h1-1e-preview", "currentAvailability": "Available", | ||
"averageQueueTime": 7, "statusPage": "https://www.quantinuum.com/hardware/h1"}, | ||
{"id": "quantinuum.sim.h1-2e-preview", "currentAvailability": "Available", | ||
"averageQueueTime": 0, "statusPage": "https://www.quantinuum.com/hardware/h1"}, | ||
{"id": "quantinuum.qpu.h1-1-preview", "currentAvailability": "Degraded", "averageQueueTime": | ||
0, "statusPage": "https://www.quantinuum.com/hardware/h1"}]}, {"id": "Microsoft.Test", | ||
"currentAvailability": "Available", "targets": [{"id": "echo-rigetti", "currentAvailability": | ||
"Available", "averageQueueTime": 1, "statusPage": ""}, {"id": "echo-quantinuum", | ||
"currentAvailability": "Available", "averageQueueTime": 1, "statusPage": ""}, | ||
{"id": "echo-qci", "currentAvailability": "Available", "averageQueueTime": | ||
1, "statusPage": ""}, {"id": "echo-ionq", "currentAvailability": "Available", | ||
"averageQueueTime": 1, "statusPage": ""}, {"id": "echo-aquarius", "currentAvailability": | ||
"Available", "averageQueueTime": 1, "statusPage": ""}, {"id": "sparse-sim-rigetti", | ||
"currentAvailability": "Available", "averageQueueTime": 1, "statusPage": ""}, | ||
{"id": "sparse-sim-quantinuum", "currentAvailability": "Available", "averageQueueTime": | ||
1, "statusPage": ""}, {"id": "sparse-sim-qci", "currentAvailability": "Available", | ||
"averageQueueTime": 1, "statusPage": ""}, {"id": "sparse-sim-ionq", "currentAvailability": | ||
"Available", "averageQueueTime": 1, "statusPage": ""}, {"id": "echo-output", | ||
"currentAvailability": "Available", "averageQueueTime": 1, "statusPage": ""}]}], | ||
"nextLink": null}' | ||
headers: | ||
connection: | ||
- keep-alive | ||
content-length: | ||
- '4754' | ||
content-type: | ||
- application/json; charset=utf-8 | ||
transfer-encoding: | ||
- chunked | ||
status: | ||
code: 200 | ||
message: OK | ||
version: 1 |
Oops, something went wrong.