diff --git a/azure-quantum/azure/quantum/qiskit/backends/honeywell.py b/azure-quantum/azure/quantum/qiskit/backends/honeywell.py index 10edd0e44..10c82b651 100644 --- a/azure-quantum/azure/quantum/qiskit/backends/honeywell.py +++ b/azure-quantum/azure/quantum/qiskit/backends/honeywell.py @@ -2,7 +2,7 @@ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. ## -from typing import TYPE_CHECKING +from typing import TYPE_CHECKING, Union, List from azure.quantum.version import __version__ from azure.quantum.qiskit.job import AzureQuantumJob @@ -56,14 +56,21 @@ class HoneywellBackend(Backend): - """Base class for interfacing with an Honeywell backend in Azure Quantum""" + """Base class for interfacing with a Honeywell backend in Azure Quantum""" @classmethod def _default_options(cls): return Options(count=500) - def run(self, circuit: QuantumCircuit, **kwargs): - """Submits the given circuit for execution on an Honeywell target.""" + def run(self, circuit: Union[QuantumCircuit, List[QuantumCircuit]], **kwargs): + """Submits the given circuit for execution on a Honeywell target.""" + # Some Qiskit features require passing lists of circuits, so unpack those here. + # We currently only support single-experiment jobs. + if isinstance(circuit, (list, tuple)): + if len(circuit) > 1: + raise NotImplementedError("Multi-experiment jobs are not supported!") + circuit = circuit[0] + # If the circuit was created using qiskit.assemble, # disassemble into QASM here if isinstance(circuit, QasmQobj) or isinstance(circuit, Qobj): diff --git a/azure-quantum/azure/quantum/qiskit/backends/ionq.py b/azure-quantum/azure/quantum/qiskit/backends/ionq.py index 8625c6158..4be2f761f 100644 --- a/azure-quantum/azure/quantum/qiskit/backends/ionq.py +++ b/azure-quantum/azure/quantum/qiskit/backends/ionq.py @@ -47,6 +47,13 @@ def _job_metadata(self, circuit, meas_map): def run(self, circuit, **kwargs): """Submits the given circuit to run on an IonQ target.""" + # Some Qiskit features require passing lists of circuits, so unpack those here. + # We currently only support single-experiment jobs. + if isinstance(circuit, (list, tuple)): + if len(circuit) > 1: + raise NotImplementedError("Multi-experiment jobs are not supported!") + circuit = circuit[0] + # If the circuit was created using qiskit.assemble, # disassemble into QASM here if isinstance(circuit, QasmQobj) or isinstance(circuit, Qobj): diff --git a/azure-quantum/tests/unit/recordings/test_plugins_submit_qiskit_circuit_as_list_to_honeywell.yaml b/azure-quantum/tests/unit/recordings/test_plugins_submit_qiskit_circuit_as_list_to_honeywell.yaml new file mode 100644 index 000000000..0775adea4 --- /dev/null +++ b/azure-quantum/tests/unit/recordings/test_plugins_submit_qiskit_circuit_as_list_to_honeywell.yaml @@ -0,0 +1,729 @@ +interactions: +- request: + body: client_id=PLACEHOLDER&grant_type=client_credentials&client_info=1&client_secret=PLACEHOLDER&claims=PLACEHOLDER&scope=https%3A%2F%2Fquantum.microsoft.com%2F.default + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + Content-Length: + - '287' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-identity/1.7.1 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + x-client-cpu: + - x64 + x-client-current-telemetry: + - 4|730,0| + x-client-os: + - darwin + x-client-sku: + - MSAL.Python + x-client-ver: + - 1.16.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": 86399, "ext_expires_in": 86399, + "access_token": "fake_token"}' + headers: + content-length: + - '1722' + content-type: + - application/json; charset=utf-8 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + User-Agent: + - testapp-azure-quantum-qiskit azsdk-python-quantum/0.0.0.1 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + method: GET + uri: https://eastus.quantum.azure.com/v1.0/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/providerStatus + response: + body: + string: '{"value": [{"id": "Microsoft", "currentAvailability": "Available", + "targets": [{"id": "microsoft.paralleltempering-parameterfree.cpu", "currentAvailability": + "Available", "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.paralleltempering.cpu", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": null}, + {"id": "microsoft.simulatedannealing-parameterfree.cpu", "currentAvailability": + "Available", "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.simulatedannealing.cpu", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": null}, + {"id": "microsoft.tabu-parameterfree.cpu", "currentAvailability": "Available", + "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.tabu.cpu", "currentAvailability": + "Available", "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.qmc.cpu", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": null}, + {"id": "microsoft.populationannealing.cpu", "currentAvailability": "Available", + "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.populationannealing-parameterfree.cpu", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": null}, + {"id": "microsoft.substochasticmontecarlo.cpu", "currentAvailability": "Available", + "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.substochasticmontecarlo-parameterfree.cpu", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": null}]}, + {"id": "ionq", "currentAvailability": "Available", "targets": [{"id": "ionq.qpu", + "currentAvailability": "Available", "averageQueueTime": 335, "statusPage": + "https://status.ionq.co"}, {"id": "ionq.simulator", "currentAvailability": + "Available", "averageQueueTime": 2, "statusPage": "https://status.ionq.co"}]}, + {"id": "toshiba", "currentAvailability": "Available", "targets": [{"id": "toshiba.sbm.ising", + "currentAvailability": "Available", "averageQueueTime": 5, "statusPage": null}]}, + {"id": "honeywell", "currentAvailability": "Degraded", "targets": [{"id": + "honeywell.hqs-lt-s1", "currentAvailability": "Unavailable", "averageQueueTime": + 0, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}, {"id": + "honeywell.hqs-lt-s1-apival", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}, {"id": + "honeywell.hqs-lt-s2", "currentAvailability": "Available", "averageQueueTime": + 461895, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}, + {"id": "honeywell.hqs-lt-s2-apival", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}, {"id": + "honeywell.hqs-lt-s1-sim", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}, {"id": + "honeywell.hqs-lt", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}]}, {"id": + "Microsoft.Simulator", "currentAvailability": "Available", "targets": [{"id": + "microsoft.simulator.fullstate", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": null}]}, {"id": "1qbit", "currentAvailability": "Available", + "targets": [{"id": "1qbit.tabu", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "http://status.1qbit.com/"}, {"id": "1qbit.pathrelinking", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": "http://status.1qbit.com/"}, + {"id": "1qbit.pticm", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "http://status.1qbit.com/"}]}], "nextLink": null, "access_token": + "fake_token"}' + headers: + content-length: + - '3418' + 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, br + Connection: + - keep-alive + User-Agent: + - testapp-azure-quantum-qiskit azsdk-python-quantum/0.0.0.1 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + method: GET + uri: https://eastus.quantum.azure.com/v1.0/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/providerStatus + response: + body: + string: '{"value": [{"id": "Microsoft", "currentAvailability": "Available", + "targets": [{"id": "microsoft.paralleltempering-parameterfree.cpu", "currentAvailability": + "Available", "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.paralleltempering.cpu", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": null}, + {"id": "microsoft.simulatedannealing-parameterfree.cpu", "currentAvailability": + "Available", "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.simulatedannealing.cpu", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": null}, + {"id": "microsoft.tabu-parameterfree.cpu", "currentAvailability": "Available", + "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.tabu.cpu", "currentAvailability": + "Available", "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.qmc.cpu", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": null}, + {"id": "microsoft.populationannealing.cpu", "currentAvailability": "Available", + "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.populationannealing-parameterfree.cpu", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": null}, + {"id": "microsoft.substochasticmontecarlo.cpu", "currentAvailability": "Available", + "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.substochasticmontecarlo-parameterfree.cpu", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": null}]}, + {"id": "ionq", "currentAvailability": "Available", "targets": [{"id": "ionq.qpu", + "currentAvailability": "Available", "averageQueueTime": 335, "statusPage": + "https://status.ionq.co"}, {"id": "ionq.simulator", "currentAvailability": + "Available", "averageQueueTime": 2, "statusPage": "https://status.ionq.co"}]}, + {"id": "toshiba", "currentAvailability": "Available", "targets": [{"id": "toshiba.sbm.ising", + "currentAvailability": "Available", "averageQueueTime": 5, "statusPage": null}]}, + {"id": "honeywell", "currentAvailability": "Degraded", "targets": [{"id": + "honeywell.hqs-lt-s1", "currentAvailability": "Unavailable", "averageQueueTime": + 0, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}, {"id": + "honeywell.hqs-lt-s1-apival", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}, {"id": + "honeywell.hqs-lt-s2", "currentAvailability": "Available", "averageQueueTime": + 461895, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}, + {"id": "honeywell.hqs-lt-s2-apival", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}, {"id": + "honeywell.hqs-lt-s1-sim", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}, {"id": + "honeywell.hqs-lt", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}]}, {"id": + "Microsoft.Simulator", "currentAvailability": "Available", "targets": [{"id": + "microsoft.simulator.fullstate", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": null}]}, {"id": "1qbit", "currentAvailability": "Available", + "targets": [{"id": "1qbit.tabu", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "http://status.1qbit.com/"}, {"id": "1qbit.pathrelinking", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": "http://status.1qbit.com/"}, + {"id": "1qbit.pticm", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "http://status.1qbit.com/"}]}], "nextLink": null, "access_token": + "fake_token"}' + headers: + content-length: + - '3418' + content-type: + - application/json; charset=utf-8 + transfer-encoding: + - chunked + status: + code: 200 + message: OK +- request: + body: 'b''{"containerName": "job-00000000-0000-0000-0000-000000000000"}''' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + Content-Length: + - '61' + Content-Type: + - application/json + User-Agent: + - testapp-azure-quantum-qiskit azsdk-python-quantum/0.0.0.1 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + method: POST + uri: https://eastus.quantum.azure.com/v1.0/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/storage/sasUri + response: + body: + string: '{"sasUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000?sv=PLACEHOLDER&sig=PLACEHOLDER&se=PLACEHOLDER&srt=co&ss=b&sp=racw", + "access_token": "fake_token"}' + headers: + content-length: + - '207' + content-type: + - application/json; charset=utf-8 + transfer-encoding: + - chunked + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + User-Agent: + - azsdk-python-storage-blob/12.9.0 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + x-ms-date: + - Wed, 15 Dec 2021 20:24:50 GMT + x-ms-version: + - '2020-10-02' + method: GET + uri: https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000?restype=container&sv=PLACEHOLDER&sig=PLACEHOLDER&se=PLACEHOLDER&srt=co&ss=b&sp=racw + response: + body: + string: "\uFEFFContainerNotFoundThe + specified container does not exist.\nRequestId:ef895560-001e-007d-02f1-f1eece000000\nTime:2021-12-15T20:24:50.4051238Z" + headers: + content-length: + - '225' + content-type: + - application/xml + x-ms-version: + - '2020-10-02' + status: + code: 404 + message: The specified container does not exist. +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-blob/12.9.0 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + x-ms-date: + - Wed, 15 Dec 2021 20:24:50 GMT + x-ms-version: + - '2020-10-02' + method: PUT + uri: https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000?restype=container&sv=PLACEHOLDER&sig=PLACEHOLDER&se=PLACEHOLDER&srt=co&ss=b&sp=racw + response: + body: + string: '' + headers: + content-length: + - '0' + x-ms-version: + - '2020-10-02' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + User-Agent: + - azsdk-python-storage-blob/12.9.0 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + x-ms-date: + - Wed, 15 Dec 2021 20:24:50 GMT + x-ms-version: + - '2020-10-02' + method: GET + uri: https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000?restype=container&sv=PLACEHOLDER&sig=PLACEHOLDER&se=PLACEHOLDER&srt=co&ss=b&sp=racw + response: + body: + string: '' + headers: + content-length: + - '0' + x-ms-lease-state: + - available + x-ms-lease-status: + - unlocked + x-ms-version: + - '2020-10-02' + status: + code: 200 + message: OK +- request: + body: b'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[4];\ncreg c[3];\nh q[0];\ncx + q[0],q[1];\ncx q[1],q[2];\nh q[3];\nmeasure q[0] -> c[0];\nmeasure q[1] -> c[1];\nmeasure + q[2] -> c[2];\n' + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + Content-Length: + - '168' + Content-Type: + - application/octet-stream + User-Agent: + - azsdk-python-storage-blob/12.9.0 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + x-ms-blob-type: + - BlockBlob + x-ms-date: + - Wed, 15 Dec 2021 20:24:50 GMT + x-ms-version: + - '2020-10-02' + method: PUT + uri: https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/inputData?sv=PLACEHOLDER&sig=PLACEHOLDER&se=PLACEHOLDER&srt=co&ss=b&sp=racw + response: + body: + string: '' + headers: + content-length: + - '0' + x-ms-version: + - '2020-10-02' + status: + code: 201 + message: Created +- request: + body: 'b''{"id": "00000000-0000-0000-0000-000000000000", "name": "Qiskit Sample + - 3-qubit GHZ circuit", "containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000?sv=PLACEHOLDER&sig=PLACEHOLDER&se=PLACEHOLDER&srt=co&ss=b&sp=racw", + "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/inputData", + "inputDataFormat": "honeywell.openqasm.v1", "inputParams": {"count": 500}, "providerId": + "honeywell", "target": "honeywell.hqs-lt-s1-apival", "metadata": {"qubits": + "4"}, "outputDataFormat": "honeywell.quantum-results.v1"}''' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + Content-Length: + - '639' + Content-Type: + - application/json + User-Agent: + - testapp-azure-quantum-qiskit azsdk-python-quantum/0.0.0.1 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + method: PUT + uri: https://eastus.quantum.azure.com/v1.0/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000000 + response: + body: + string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000?sv=PLACEHOLDER&sig=PLACEHOLDER&se=PLACEHOLDER&srt=co&ss=b&sp=racw", + "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/inputData?sv=PLACEHOLDER&sr=b&sig=PLACEHOLDER&se=PLACEHOLDER&sp=rcw", + "inputDataFormat": "honeywell.openqasm.v1", "inputParams": {"count": 500}, + "providerId": "honeywell", "target": "honeywell.hqs-lt-s1-apival", "metadata": + {"qubits": "4"}, "name": "Qiskit Sample - 3-qubit GHZ circuit", "id": "00000000-0000-0000-0000-000000000000", + "status": "Waiting", "outputDataFormat": "honeywell.quantum-results.v1", "outputDataUri": + "https://e2etests.blob.core.windows.net:443/job-00000000-0000-0000-0000-000000000000/outputData?sv=PLACEHOLDER&sig=PLACEHOLDER&se=PLACEHOLDER&srt=co&ss=b&sp=racw", + "creationTime": "2021-12-15T20:24:50.5406938+00:00", "beginExecutionTime": + null, "endExecutionTime": null, "cancellationTime": null, "costEstimate": + null, "errorData": null, "isCancelling": false, "tags": [], "access_token": + "fake_token"}' + headers: + content-length: + - '1167' + 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, br + Connection: + - keep-alive + User-Agent: + - testapp-azure-quantum-qiskit azsdk-python-quantum/0.0.0.1 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + method: GET + uri: https://eastus.quantum.azure.com/v1.0/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000000 + response: + body: + string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000?sv=PLACEHOLDER&sig=PLACEHOLDER&se=PLACEHOLDER&srt=co&ss=b&sp=racw", + "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/inputData?sv=PLACEHOLDER&sr=b&sig=PLACEHOLDER&se=PLACEHOLDER&sp=r&rscd=attachment%3B%20filename%3DQiskit%2BSample%2B-%2B3-qubit%2BGHZ%2Bcircuit-0d9cdc16-5de5-11ec-b449-3c7d0a1d68ec.input.json", + "inputDataFormat": "honeywell.openqasm.v1", "inputParams": {"count": 500}, + "providerId": "honeywell", "target": "honeywell.hqs-lt-s1-apival", "metadata": + {"qubits": "4"}, "name": "Qiskit Sample - 3-qubit GHZ circuit", "id": "00000000-0000-0000-0000-000000000000", + "status": "Succeeded", "outputDataFormat": "honeywell.quantum-results.v1", + "outputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/rawOutputData?sv=PLACEHOLDER&sr=b&sig=PLACEHOLDER&se=PLACEHOLDER&sp=r&rscd=attachment%3B%20filename%3DQiskit%2BSample%2B-%2B3-qubit%2BGHZ%2Bcircuit-0d9cdc16-5de5-11ec-b449-3c7d0a1d68ec.output.json", + "creationTime": "2021-12-15T20:24:50.5406938+00:00", "beginExecutionTime": + "2021-12-15T20:24:51.663572+00:00", "endExecutionTime": "2021-12-15T20:24:51.664214+00:00", + "cancellationTime": null, "costEstimate": null, "errorData": null, "isCancelling": + false, "tags": [], "access_token": "fake_token"}' + headers: + content-length: + - '1463' + 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, br + Connection: + - keep-alive + User-Agent: + - testapp-azure-quantum-qiskit azsdk-python-quantum/0.0.0.1 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + method: GET + uri: https://eastus.quantum.azure.com/v1.0/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000000 + response: + body: + string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000?sv=PLACEHOLDER&sig=PLACEHOLDER&se=PLACEHOLDER&srt=co&ss=b&sp=racw", + "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/inputData?sv=PLACEHOLDER&sr=b&sig=PLACEHOLDER&se=PLACEHOLDER&sp=r&rscd=attachment%3B%20filename%3DQiskit%2BSample%2B-%2B3-qubit%2BGHZ%2Bcircuit-0d9cdc16-5de5-11ec-b449-3c7d0a1d68ec.input.json", + "inputDataFormat": "honeywell.openqasm.v1", "inputParams": {"count": 500}, + "providerId": "honeywell", "target": "honeywell.hqs-lt-s1-apival", "metadata": + {"qubits": "4"}, "name": "Qiskit Sample - 3-qubit GHZ circuit", "id": "00000000-0000-0000-0000-000000000000", + "status": "Succeeded", "outputDataFormat": "honeywell.quantum-results.v1", + "outputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/rawOutputData?sv=PLACEHOLDER&sr=b&sig=PLACEHOLDER&se=PLACEHOLDER&sp=r&rscd=attachment%3B%20filename%3DQiskit%2BSample%2B-%2B3-qubit%2BGHZ%2Bcircuit-0d9cdc16-5de5-11ec-b449-3c7d0a1d68ec.output.json", + "creationTime": "2021-12-15T20:24:50.5406938+00:00", "beginExecutionTime": + "2021-12-15T20:24:51.663572+00:00", "endExecutionTime": "2021-12-15T20:24:51.664214+00:00", + "cancellationTime": null, "costEstimate": null, "errorData": null, "isCancelling": + false, "tags": [], "access_token": "fake_token"}' + headers: + content-length: + - '1463' + 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, br + Connection: + - keep-alive + User-Agent: + - testapp-azure-quantum-qiskit azsdk-python-quantum/0.0.0.1 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + method: GET + uri: https://eastus.quantum.azure.com/v1.0/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/providerStatus + response: + body: + string: '{"value": [{"id": "Microsoft", "currentAvailability": "Available", + "targets": [{"id": "microsoft.paralleltempering-parameterfree.cpu", "currentAvailability": + "Available", "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.paralleltempering.cpu", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": null}, + {"id": "microsoft.simulatedannealing-parameterfree.cpu", "currentAvailability": + "Available", "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.simulatedannealing.cpu", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": null}, + {"id": "microsoft.tabu-parameterfree.cpu", "currentAvailability": "Available", + "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.tabu.cpu", "currentAvailability": + "Available", "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.qmc.cpu", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": null}, + {"id": "microsoft.populationannealing.cpu", "currentAvailability": "Available", + "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.populationannealing-parameterfree.cpu", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": null}, + {"id": "microsoft.substochasticmontecarlo.cpu", "currentAvailability": "Available", + "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.substochasticmontecarlo-parameterfree.cpu", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": null}]}, + {"id": "ionq", "currentAvailability": "Available", "targets": [{"id": "ionq.qpu", + "currentAvailability": "Available", "averageQueueTime": 335, "statusPage": + "https://status.ionq.co"}, {"id": "ionq.simulator", "currentAvailability": + "Available", "averageQueueTime": 2, "statusPage": "https://status.ionq.co"}]}, + {"id": "toshiba", "currentAvailability": "Available", "targets": [{"id": "toshiba.sbm.ising", + "currentAvailability": "Available", "averageQueueTime": 5, "statusPage": null}]}, + {"id": "honeywell", "currentAvailability": "Degraded", "targets": [{"id": + "honeywell.hqs-lt-s1", "currentAvailability": "Unavailable", "averageQueueTime": + 0, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}, {"id": + "honeywell.hqs-lt-s1-apival", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}, {"id": + "honeywell.hqs-lt-s2", "currentAvailability": "Available", "averageQueueTime": + 461895, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}, + {"id": "honeywell.hqs-lt-s2-apival", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}, {"id": + "honeywell.hqs-lt-s1-sim", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}, {"id": + "honeywell.hqs-lt", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}]}, {"id": + "Microsoft.Simulator", "currentAvailability": "Available", "targets": [{"id": + "microsoft.simulator.fullstate", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": null}]}, {"id": "1qbit", "currentAvailability": "Available", + "targets": [{"id": "1qbit.tabu", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "http://status.1qbit.com/"}, {"id": "1qbit.pathrelinking", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": "http://status.1qbit.com/"}, + {"id": "1qbit.pticm", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "http://status.1qbit.com/"}]}], "nextLink": null, "access_token": + "fake_token"}' + headers: + content-length: + - '3418' + 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, br + Connection: + - keep-alive + User-Agent: + - testapp-azure-quantum-qiskit azsdk-python-quantum/0.0.0.1 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + method: GET + uri: https://eastus.quantum.azure.com/v1.0/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000000 + response: + body: + string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000?sv=PLACEHOLDER&sig=PLACEHOLDER&se=PLACEHOLDER&srt=co&ss=b&sp=racw", + "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/inputData?sv=PLACEHOLDER&sr=b&sig=PLACEHOLDER&se=PLACEHOLDER&sp=r&rscd=attachment%3B%20filename%3DQiskit%2BSample%2B-%2B3-qubit%2BGHZ%2Bcircuit-0d9cdc16-5de5-11ec-b449-3c7d0a1d68ec.input.json", + "inputDataFormat": "honeywell.openqasm.v1", "inputParams": {"count": 500}, + "providerId": "honeywell", "target": "honeywell.hqs-lt-s1-apival", "metadata": + {"qubits": "4"}, "name": "Qiskit Sample - 3-qubit GHZ circuit", "id": "00000000-0000-0000-0000-000000000000", + "status": "Succeeded", "outputDataFormat": "honeywell.quantum-results.v1", + "outputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/rawOutputData?sv=PLACEHOLDER&sr=b&sig=PLACEHOLDER&se=PLACEHOLDER&sp=r&rscd=attachment%3B%20filename%3DQiskit%2BSample%2B-%2B3-qubit%2BGHZ%2Bcircuit-0d9cdc16-5de5-11ec-b449-3c7d0a1d68ec.output.json", + "creationTime": "2021-12-15T20:24:50.5406938+00:00", "beginExecutionTime": + "2021-12-15T20:24:51.663572+00:00", "endExecutionTime": "2021-12-15T20:24:51.664214+00:00", + "cancellationTime": null, "costEstimate": null, "errorData": null, "isCancelling": + false, "tags": [], "access_token": "fake_token"}' + headers: + content-length: + - '1463' + 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, br + Connection: + - keep-alive + User-Agent: + - testapp-azure-quantum-qiskit azsdk-python-quantum/0.0.0.1 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + method: GET + uri: https://eastus.quantum.azure.com/v1.0/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000000 + response: + body: + string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000?sv=PLACEHOLDER&sig=PLACEHOLDER&se=PLACEHOLDER&srt=co&ss=b&sp=racw", + "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/inputData?sv=PLACEHOLDER&sr=b&sig=PLACEHOLDER&se=PLACEHOLDER&sp=r&rscd=attachment%3B%20filename%3DQiskit%2BSample%2B-%2B3-qubit%2BGHZ%2Bcircuit-0d9cdc16-5de5-11ec-b449-3c7d0a1d68ec.input.json", + "inputDataFormat": "honeywell.openqasm.v1", "inputParams": {"count": 500}, + "providerId": "honeywell", "target": "honeywell.hqs-lt-s1-apival", "metadata": + {"qubits": "4"}, "name": "Qiskit Sample - 3-qubit GHZ circuit", "id": "00000000-0000-0000-0000-000000000000", + "status": "Succeeded", "outputDataFormat": "honeywell.quantum-results.v1", + "outputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/rawOutputData?sv=PLACEHOLDER&sr=b&sig=PLACEHOLDER&se=PLACEHOLDER&sp=r&rscd=attachment%3B%20filename%3DQiskit%2BSample%2B-%2B3-qubit%2BGHZ%2Bcircuit-0d9cdc16-5de5-11ec-b449-3c7d0a1d68ec.output.json", + "creationTime": "2021-12-15T20:24:50.5406938+00:00", "beginExecutionTime": + "2021-12-15T20:24:51.663572+00:00", "endExecutionTime": "2021-12-15T20:24:51.664214+00:00", + "cancellationTime": null, "costEstimate": null, "errorData": null, "isCancelling": + false, "tags": [], "access_token": "fake_token"}' + headers: + content-length: + - '1463' + 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, br + Connection: + - keep-alive + User-Agent: + - testapp-azure-quantum-qiskit azsdk-python-quantum/0.0.0.1 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + method: GET + uri: https://eastus.quantum.azure.com/v1.0/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000000 + response: + body: + string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000?sv=PLACEHOLDER&sig=PLACEHOLDER&se=PLACEHOLDER&srt=co&ss=b&sp=racw", + "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/inputData?sv=PLACEHOLDER&sr=b&sig=PLACEHOLDER&se=PLACEHOLDER&sp=r&rscd=attachment%3B%20filename%3DQiskit%2BSample%2B-%2B3-qubit%2BGHZ%2Bcircuit-0d9cdc16-5de5-11ec-b449-3c7d0a1d68ec.input.json", + "inputDataFormat": "honeywell.openqasm.v1", "inputParams": {"count": 500}, + "providerId": "honeywell", "target": "honeywell.hqs-lt-s1-apival", "metadata": + {"qubits": "4"}, "name": "Qiskit Sample - 3-qubit GHZ circuit", "id": "00000000-0000-0000-0000-000000000000", + "status": "Succeeded", "outputDataFormat": "honeywell.quantum-results.v1", + "outputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/rawOutputData?sv=PLACEHOLDER&sr=b&sig=PLACEHOLDER&se=PLACEHOLDER&sp=r&rscd=attachment%3B%20filename%3DQiskit%2BSample%2B-%2B3-qubit%2BGHZ%2Bcircuit-0d9cdc16-5de5-11ec-b449-3c7d0a1d68ec.output.json", + "creationTime": "2021-12-15T20:24:50.5406938+00:00", "beginExecutionTime": + "2021-12-15T20:24:51.663572+00:00", "endExecutionTime": "2021-12-15T20:24:51.664214+00:00", + "cancellationTime": null, "costEstimate": null, "errorData": null, "isCancelling": + false, "tags": [], "access_token": "fake_token"}' + headers: + content-length: + - '1463' + content-type: + - application/json; charset=utf-8 + transfer-encoding: + - chunked + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + User-Agent: + - azsdk-python-storage-blob/12.9.0 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + x-ms-date: + - Wed, 15 Dec 2021 20:24:57 GMT + x-ms-range: + - bytes=0-33554431 + x-ms-version: + - '2020-10-02' + method: GET + uri: https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/rawOutputData?sv=PLACEHOLDER&sr=b&sig=PLACEHOLDER&se=PLACEHOLDER&sp=r&rscd=attachment%3B%20filename%3DQiskit%2BSample%2B-%2B3-qubit%2BGHZ%2Bcircuit-0d9cdc16-5de5-11ec-b449-3c7d0a1d68ec.output.json + response: + body: + string: '{"c": ["000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000"], "access_token": "fake_token"}' + headers: + accept-ranges: + - bytes + content-length: + - '3507' + content-range: + - bytes 0-3506/3507 + content-type: + - application/octet-stream + x-ms-blob-content-md5: + - DlFMtLGNTedhCRW9QrLH7g== + x-ms-blob-type: + - BlockBlob + x-ms-creation-time: + - Wed, 15 Dec 2021 20:24:50 GMT + x-ms-lease-state: + - available + x-ms-lease-status: + - unlocked + x-ms-server-encrypted: + - 'true' + x-ms-version: + - '2020-10-02' + status: + code: 206 + message: Partial Content +version: 1 diff --git a/azure-quantum/tests/unit/recordings/test_plugins_submit_qiskit_circuit_as_list_to_ionq.yaml b/azure-quantum/tests/unit/recordings/test_plugins_submit_qiskit_circuit_as_list_to_ionq.yaml new file mode 100644 index 000000000..bc0e150c9 --- /dev/null +++ b/azure-quantum/tests/unit/recordings/test_plugins_submit_qiskit_circuit_as_list_to_ionq.yaml @@ -0,0 +1,622 @@ +interactions: +- request: + body: client_id=PLACEHOLDER&grant_type=client_credentials&client_info=1&client_secret=PLACEHOLDER&claims=PLACEHOLDER&scope=https%3A%2F%2Fquantum.microsoft.com%2F.default + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + Content-Length: + - '287' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-identity/1.7.1 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + x-client-cpu: + - x64 + x-client-current-telemetry: + - 4|730,0| + x-client-os: + - darwin + x-client-sku: + - MSAL.Python + x-client-ver: + - 1.16.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": 86399, "ext_expires_in": 86399, + "access_token": "fake_token"}' + headers: + content-length: + - '1722' + content-type: + - application/json; charset=utf-8 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + User-Agent: + - testapp-azure-quantum-qiskit azsdk-python-quantum/0.0.0.1 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + method: GET + uri: https://eastus.quantum.azure.com/v1.0/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/providerStatus + response: + body: + string: '{"value": [{"id": "Microsoft", "currentAvailability": "Available", + "targets": [{"id": "microsoft.paralleltempering-parameterfree.cpu", "currentAvailability": + "Available", "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.paralleltempering.cpu", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": null}, + {"id": "microsoft.simulatedannealing-parameterfree.cpu", "currentAvailability": + "Available", "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.simulatedannealing.cpu", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": null}, + {"id": "microsoft.tabu-parameterfree.cpu", "currentAvailability": "Available", + "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.tabu.cpu", "currentAvailability": + "Available", "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.qmc.cpu", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": null}, + {"id": "microsoft.populationannealing.cpu", "currentAvailability": "Available", + "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.populationannealing-parameterfree.cpu", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": null}, + {"id": "microsoft.substochasticmontecarlo.cpu", "currentAvailability": "Available", + "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.substochasticmontecarlo-parameterfree.cpu", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": null}]}, + {"id": "ionq", "currentAvailability": "Available", "targets": [{"id": "ionq.qpu", + "currentAvailability": "Available", "averageQueueTime": 335, "statusPage": + "https://status.ionq.co"}, {"id": "ionq.simulator", "currentAvailability": + "Available", "averageQueueTime": 2, "statusPage": "https://status.ionq.co"}]}, + {"id": "toshiba", "currentAvailability": "Available", "targets": [{"id": "toshiba.sbm.ising", + "currentAvailability": "Available", "averageQueueTime": 5, "statusPage": null}]}, + {"id": "honeywell", "currentAvailability": "Degraded", "targets": [{"id": + "honeywell.hqs-lt-s1", "currentAvailability": "Unavailable", "averageQueueTime": + 0, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}, {"id": + "honeywell.hqs-lt-s1-apival", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}, {"id": + "honeywell.hqs-lt-s2", "currentAvailability": "Available", "averageQueueTime": + 461895, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}, + {"id": "honeywell.hqs-lt-s2-apival", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}, {"id": + "honeywell.hqs-lt-s1-sim", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}, {"id": + "honeywell.hqs-lt", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}]}, {"id": + "Microsoft.Simulator", "currentAvailability": "Available", "targets": [{"id": + "microsoft.simulator.fullstate", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": null}]}, {"id": "1qbit", "currentAvailability": "Available", + "targets": [{"id": "1qbit.tabu", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "http://status.1qbit.com/"}, {"id": "1qbit.pathrelinking", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": "http://status.1qbit.com/"}, + {"id": "1qbit.pticm", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "http://status.1qbit.com/"}]}], "nextLink": null, "access_token": + "fake_token"}' + headers: + content-length: + - '3418' + content-type: + - application/json; charset=utf-8 + transfer-encoding: + - chunked + status: + code: 200 + message: OK +- request: + body: 'b''{"containerName": "job-00000000-0000-0000-0000-000000000000"}''' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + Content-Length: + - '61' + Content-Type: + - application/json + User-Agent: + - testapp-azure-quantum-qiskit azsdk-python-quantum/0.0.0.1 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + method: POST + uri: https://eastus.quantum.azure.com/v1.0/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/storage/sasUri + response: + body: + string: '{"sasUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000?sv=PLACEHOLDER&sig=PLACEHOLDER&se=PLACEHOLDER&srt=co&ss=b&sp=racw", + "access_token": "fake_token"}' + headers: + content-length: + - '205' + content-type: + - application/json; charset=utf-8 + transfer-encoding: + - chunked + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + User-Agent: + - azsdk-python-storage-blob/12.9.0 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + x-ms-date: + - Wed, 15 Dec 2021 20:24:57 GMT + x-ms-version: + - '2020-10-02' + method: GET + uri: https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000?restype=container&sv=PLACEHOLDER&sig=PLACEHOLDER&se=PLACEHOLDER&srt=co&ss=b&sp=racw + response: + body: + string: "\uFEFFContainerNotFoundThe + specified container does not exist.\nRequestId:aeb4ad27-401e-001e-50f1-f17335000000\nTime:2021-12-15T20:24:58.0516074Z" + headers: + content-length: + - '225' + content-type: + - application/xml + x-ms-version: + - '2020-10-02' + status: + code: 404 + message: The specified container does not exist. +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-blob/12.9.0 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + x-ms-date: + - Wed, 15 Dec 2021 20:24:57 GMT + x-ms-version: + - '2020-10-02' + method: PUT + uri: https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000?restype=container&sv=PLACEHOLDER&sig=PLACEHOLDER&se=PLACEHOLDER&srt=co&ss=b&sp=racw + response: + body: + string: '' + headers: + content-length: + - '0' + x-ms-version: + - '2020-10-02' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + User-Agent: + - azsdk-python-storage-blob/12.9.0 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + x-ms-date: + - Wed, 15 Dec 2021 20:24:58 GMT + x-ms-version: + - '2020-10-02' + method: GET + uri: https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000?restype=container&sv=PLACEHOLDER&sig=PLACEHOLDER&se=PLACEHOLDER&srt=co&ss=b&sp=racw + response: + body: + string: '' + headers: + content-length: + - '0' + x-ms-lease-state: + - available + x-ms-lease-status: + - unlocked + x-ms-version: + - '2020-10-02' + status: + code: 200 + message: OK +- request: + body: 'b''{"qubits": 4, "circuit": [{"gate": "h", "targets": [0]}, {"gate": "x", + "targets": [1], "controls": [0]}, {"gate": "x", "targets": [2], "controls": + [1]}, {"gate": "h", "targets": [3]}]}''' + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + Content-Length: + - '184' + Content-Type: + - application/octet-stream + User-Agent: + - azsdk-python-storage-blob/12.9.0 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + x-ms-blob-type: + - BlockBlob + x-ms-date: + - Wed, 15 Dec 2021 20:24:58 GMT + x-ms-version: + - '2020-10-02' + method: PUT + uri: https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/inputData?sv=PLACEHOLDER&sig=PLACEHOLDER&se=PLACEHOLDER&srt=co&ss=b&sp=racw + response: + body: + string: '' + headers: + content-length: + - '0' + x-ms-version: + - '2020-10-02' + status: + code: 201 + message: Created +- request: + body: 'b''{"id": "00000000-0000-0000-0000-000000000000", "name": "Qiskit Sample + - 3-qubit GHZ circuit", "containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000?sv=PLACEHOLDER&sig=PLACEHOLDER&se=PLACEHOLDER&srt=co&ss=b&sp=racw", + "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/inputData", + "inputDataFormat": "ionq.circuit.v1", "inputParams": {"shots": 500}, "providerId": + "ionq", "target": "ionq.simulator", "metadata": {"qiskit": "True", "name": "Qiskit + Sample - 3-qubit GHZ circuit", "num_qubits": "4", "meas_map": "[0, 1, 2]"}, + "outputDataFormat": "ionq.quantum-results.v1"}''' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + Content-Length: + - '703' + Content-Type: + - application/json + User-Agent: + - testapp-azure-quantum-qiskit azsdk-python-quantum/0.0.0.1 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + method: PUT + uri: https://eastus.quantum.azure.com/v1.0/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000000 + response: + body: + string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000?sv=PLACEHOLDER&sig=PLACEHOLDER&se=PLACEHOLDER&srt=co&ss=b&sp=racw", + "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/inputData?sv=PLACEHOLDER&sr=b&sig=PLACEHOLDER&se=PLACEHOLDER&sp=rcw", + "inputDataFormat": "ionq.circuit.v1", "inputParams": {"shots": 500}, "providerId": + "ionq", "target": "ionq.simulator", "metadata": {"qiskit": "True", "name": + "Qiskit Sample - 3-qubit GHZ circuit", "num_qubits": "4", "meas_map": "[0, + 1, 2]"}, "name": "Qiskit Sample - 3-qubit GHZ circuit", "id": "00000000-0000-0000-0000-000000000000", + "status": "Waiting", "outputDataFormat": "ionq.quantum-results.v1", "outputDataUri": + "https://e2etests.blob.core.windows.net:443/job-00000000-0000-0000-0000-000000000000/outputData?sv=PLACEHOLDER&sig=PLACEHOLDER&se=PLACEHOLDER&srt=co&ss=b&sp=racw", + "creationTime": "2021-12-15T20:24:58.2451927+00:00", "beginExecutionTime": + null, "endExecutionTime": null, "cancellationTime": null, "costEstimate": + null, "errorData": null, "isCancelling": false, "tags": [], "access_token": + "fake_token"}' + headers: + content-length: + - '1223' + 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, br + Connection: + - keep-alive + User-Agent: + - testapp-azure-quantum-qiskit azsdk-python-quantum/0.0.0.1 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + method: GET + uri: https://eastus.quantum.azure.com/v1.0/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000000 + response: + body: + string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000?sv=PLACEHOLDER&sig=PLACEHOLDER&se=PLACEHOLDER&srt=co&ss=b&sp=racw", + "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/inputData?sv=PLACEHOLDER&sr=b&sig=PLACEHOLDER&se=PLACEHOLDER&sp=r&rscd=attachment%3B%20filename%3DQiskit%2BSample%2B-%2B3-qubit%2BGHZ%2Bcircuit-122ad3be-5de5-11ec-b449-3c7d0a1d68ec.input.json", + "inputDataFormat": "ionq.circuit.v1", "inputParams": {"shots": 500}, "providerId": + "ionq", "target": "ionq.simulator", "metadata": {"qiskit": "True", "name": + "Qiskit Sample - 3-qubit GHZ circuit", "num_qubits": "4", "meas_map": "[0, + 1, 2]"}, "name": "Qiskit Sample - 3-qubit GHZ circuit", "id": "00000000-0000-0000-0000-000000000000", + "status": "Succeeded", "outputDataFormat": "ionq.quantum-results.v1", "outputDataUri": + "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/rawOutputData?sv=PLACEHOLDER&sr=b&sig=PLACEHOLDER&se=PLACEHOLDER&sp=r&rscd=attachment%3B%20filename%3DQiskit%2BSample%2B-%2B3-qubit%2BGHZ%2Bcircuit-122ad3be-5de5-11ec-b449-3c7d0a1d68ec.output.json", + "creationTime": "2021-12-15T20:24:58.2451927+00:00", "beginExecutionTime": + "2021-12-15T20:25:00.467Z", "endExecutionTime": "2021-12-15T20:25:00.476Z", + "cancellationTime": null, "costEstimate": null, "errorData": null, "isCancelling": + false, "tags": [], "access_token": "fake_token"}' + headers: + content-length: + - '1509' + 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, br + Connection: + - keep-alive + User-Agent: + - testapp-azure-quantum-qiskit azsdk-python-quantum/0.0.0.1 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + method: GET + uri: https://eastus.quantum.azure.com/v1.0/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000000 + response: + body: + string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000?sv=PLACEHOLDER&sig=PLACEHOLDER&se=PLACEHOLDER&srt=co&ss=b&sp=racw", + "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/inputData?sv=PLACEHOLDER&sr=b&sig=PLACEHOLDER&se=PLACEHOLDER&sp=r&rscd=attachment%3B%20filename%3DQiskit%2BSample%2B-%2B3-qubit%2BGHZ%2Bcircuit-122ad3be-5de5-11ec-b449-3c7d0a1d68ec.input.json", + "inputDataFormat": "ionq.circuit.v1", "inputParams": {"shots": 500}, "providerId": + "ionq", "target": "ionq.simulator", "metadata": {"qiskit": "True", "name": + "Qiskit Sample - 3-qubit GHZ circuit", "num_qubits": "4", "meas_map": "[0, + 1, 2]"}, "name": "Qiskit Sample - 3-qubit GHZ circuit", "id": "00000000-0000-0000-0000-000000000000", + "status": "Succeeded", "outputDataFormat": "ionq.quantum-results.v1", "outputDataUri": + "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/rawOutputData?sv=PLACEHOLDER&sr=b&sig=PLACEHOLDER&se=PLACEHOLDER&sp=r&rscd=attachment%3B%20filename%3DQiskit%2BSample%2B-%2B3-qubit%2BGHZ%2Bcircuit-122ad3be-5de5-11ec-b449-3c7d0a1d68ec.output.json", + "creationTime": "2021-12-15T20:24:58.2451927+00:00", "beginExecutionTime": + "2021-12-15T20:25:00.467Z", "endExecutionTime": "2021-12-15T20:25:00.476Z", + "cancellationTime": null, "costEstimate": null, "errorData": null, "isCancelling": + false, "tags": [], "access_token": "fake_token"}' + headers: + content-length: + - '1509' + 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, br + Connection: + - keep-alive + User-Agent: + - testapp-azure-quantum-qiskit azsdk-python-quantum/0.0.0.1 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + method: GET + uri: https://eastus.quantum.azure.com/v1.0/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/providerStatus + response: + body: + string: '{"value": [{"id": "Microsoft", "currentAvailability": "Available", + "targets": [{"id": "microsoft.paralleltempering-parameterfree.cpu", "currentAvailability": + "Available", "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.paralleltempering.cpu", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": null}, + {"id": "microsoft.simulatedannealing-parameterfree.cpu", "currentAvailability": + "Available", "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.simulatedannealing.cpu", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": null}, + {"id": "microsoft.tabu-parameterfree.cpu", "currentAvailability": "Available", + "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.tabu.cpu", "currentAvailability": + "Available", "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.qmc.cpu", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": null}, + {"id": "microsoft.populationannealing.cpu", "currentAvailability": "Available", + "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.populationannealing-parameterfree.cpu", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": null}, + {"id": "microsoft.substochasticmontecarlo.cpu", "currentAvailability": "Available", + "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.substochasticmontecarlo-parameterfree.cpu", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": null}]}, + {"id": "ionq", "currentAvailability": "Available", "targets": [{"id": "ionq.qpu", + "currentAvailability": "Available", "averageQueueTime": 335, "statusPage": + "https://status.ionq.co"}, {"id": "ionq.simulator", "currentAvailability": + "Available", "averageQueueTime": 2, "statusPage": "https://status.ionq.co"}]}, + {"id": "toshiba", "currentAvailability": "Available", "targets": [{"id": "toshiba.sbm.ising", + "currentAvailability": "Available", "averageQueueTime": 5, "statusPage": null}]}, + {"id": "honeywell", "currentAvailability": "Degraded", "targets": [{"id": + "honeywell.hqs-lt-s1", "currentAvailability": "Unavailable", "averageQueueTime": + 0, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}, {"id": + "honeywell.hqs-lt-s1-apival", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}, {"id": + "honeywell.hqs-lt-s2", "currentAvailability": "Available", "averageQueueTime": + 461895, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}, + {"id": "honeywell.hqs-lt-s2-apival", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}, {"id": + "honeywell.hqs-lt-s1-sim", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}, {"id": + "honeywell.hqs-lt", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}]}, {"id": + "Microsoft.Simulator", "currentAvailability": "Available", "targets": [{"id": + "microsoft.simulator.fullstate", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": null}]}, {"id": "1qbit", "currentAvailability": "Available", + "targets": [{"id": "1qbit.tabu", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "http://status.1qbit.com/"}, {"id": "1qbit.pathrelinking", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": "http://status.1qbit.com/"}, + {"id": "1qbit.pticm", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "http://status.1qbit.com/"}]}], "nextLink": null, "access_token": + "fake_token"}' + headers: + content-length: + - '3418' + 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, br + Connection: + - keep-alive + User-Agent: + - testapp-azure-quantum-qiskit azsdk-python-quantum/0.0.0.1 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + method: GET + uri: https://eastus.quantum.azure.com/v1.0/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000000 + response: + body: + string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000?sv=PLACEHOLDER&sig=PLACEHOLDER&se=PLACEHOLDER&srt=co&ss=b&sp=racw", + "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/inputData?sv=PLACEHOLDER&sr=b&sig=PLACEHOLDER&se=PLACEHOLDER&sp=r&rscd=attachment%3B%20filename%3DQiskit%2BSample%2B-%2B3-qubit%2BGHZ%2Bcircuit-122ad3be-5de5-11ec-b449-3c7d0a1d68ec.input.json", + "inputDataFormat": "ionq.circuit.v1", "inputParams": {"shots": 500}, "providerId": + "ionq", "target": "ionq.simulator", "metadata": {"qiskit": "True", "name": + "Qiskit Sample - 3-qubit GHZ circuit", "num_qubits": "4", "meas_map": "[0, + 1, 2]"}, "name": "Qiskit Sample - 3-qubit GHZ circuit", "id": "00000000-0000-0000-0000-000000000000", + "status": "Succeeded", "outputDataFormat": "ionq.quantum-results.v1", "outputDataUri": + "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/rawOutputData?sv=PLACEHOLDER&sr=b&sig=PLACEHOLDER&se=PLACEHOLDER&sp=r&rscd=attachment%3B%20filename%3DQiskit%2BSample%2B-%2B3-qubit%2BGHZ%2Bcircuit-122ad3be-5de5-11ec-b449-3c7d0a1d68ec.output.json", + "creationTime": "2021-12-15T20:24:58.2451927+00:00", "beginExecutionTime": + "2021-12-15T20:25:00.467Z", "endExecutionTime": "2021-12-15T20:25:00.476Z", + "cancellationTime": null, "costEstimate": null, "errorData": null, "isCancelling": + false, "tags": [], "access_token": "fake_token"}' + headers: + content-length: + - '1509' + 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, br + Connection: + - keep-alive + User-Agent: + - testapp-azure-quantum-qiskit azsdk-python-quantum/0.0.0.1 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + method: GET + uri: https://eastus.quantum.azure.com/v1.0/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000000 + response: + body: + string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000?sv=PLACEHOLDER&sig=PLACEHOLDER&se=PLACEHOLDER&srt=co&ss=b&sp=racw", + "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/inputData?sv=PLACEHOLDER&sr=b&sig=PLACEHOLDER&se=PLACEHOLDER&sp=r&rscd=attachment%3B%20filename%3DQiskit%2BSample%2B-%2B3-qubit%2BGHZ%2Bcircuit-122ad3be-5de5-11ec-b449-3c7d0a1d68ec.input.json", + "inputDataFormat": "ionq.circuit.v1", "inputParams": {"shots": 500}, "providerId": + "ionq", "target": "ionq.simulator", "metadata": {"qiskit": "True", "name": + "Qiskit Sample - 3-qubit GHZ circuit", "num_qubits": "4", "meas_map": "[0, + 1, 2]"}, "name": "Qiskit Sample - 3-qubit GHZ circuit", "id": "00000000-0000-0000-0000-000000000000", + "status": "Succeeded", "outputDataFormat": "ionq.quantum-results.v1", "outputDataUri": + "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/rawOutputData?sv=PLACEHOLDER&sr=b&sig=PLACEHOLDER&se=PLACEHOLDER&sp=r&rscd=attachment%3B%20filename%3DQiskit%2BSample%2B-%2B3-qubit%2BGHZ%2Bcircuit-122ad3be-5de5-11ec-b449-3c7d0a1d68ec.output.json", + "creationTime": "2021-12-15T20:24:58.2451927+00:00", "beginExecutionTime": + "2021-12-15T20:25:00.467Z", "endExecutionTime": "2021-12-15T20:25:00.476Z", + "cancellationTime": null, "costEstimate": null, "errorData": null, "isCancelling": + false, "tags": [], "access_token": "fake_token"}' + headers: + content-length: + - '1509' + 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, br + Connection: + - keep-alive + User-Agent: + - testapp-azure-quantum-qiskit azsdk-python-quantum/0.0.0.1 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + method: GET + uri: https://eastus.quantum.azure.com/v1.0/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000000 + response: + body: + string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000?sv=PLACEHOLDER&sig=PLACEHOLDER&se=PLACEHOLDER&srt=co&ss=b&sp=racw", + "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/inputData?sv=PLACEHOLDER&sr=b&sig=PLACEHOLDER&se=PLACEHOLDER&sp=r&rscd=attachment%3B%20filename%3DQiskit%2BSample%2B-%2B3-qubit%2BGHZ%2Bcircuit-122ad3be-5de5-11ec-b449-3c7d0a1d68ec.input.json", + "inputDataFormat": "ionq.circuit.v1", "inputParams": {"shots": 500}, "providerId": + "ionq", "target": "ionq.simulator", "metadata": {"qiskit": "True", "name": + "Qiskit Sample - 3-qubit GHZ circuit", "num_qubits": "4", "meas_map": "[0, + 1, 2]"}, "name": "Qiskit Sample - 3-qubit GHZ circuit", "id": "00000000-0000-0000-0000-000000000000", + "status": "Succeeded", "outputDataFormat": "ionq.quantum-results.v1", "outputDataUri": + "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/rawOutputData?sv=PLACEHOLDER&sr=b&sig=PLACEHOLDER&se=PLACEHOLDER&sp=r&rscd=attachment%3B%20filename%3DQiskit%2BSample%2B-%2B3-qubit%2BGHZ%2Bcircuit-122ad3be-5de5-11ec-b449-3c7d0a1d68ec.output.json", + "creationTime": "2021-12-15T20:24:58.2451927+00:00", "beginExecutionTime": + "2021-12-15T20:25:00.467Z", "endExecutionTime": "2021-12-15T20:25:00.476Z", + "cancellationTime": null, "costEstimate": null, "errorData": null, "isCancelling": + false, "tags": [], "access_token": "fake_token"}' + headers: + content-length: + - '1509' + content-type: + - application/json; charset=utf-8 + transfer-encoding: + - chunked + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + User-Agent: + - azsdk-python-storage-blob/12.9.0 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + x-ms-date: + - Wed, 15 Dec 2021 20:25:02 GMT + x-ms-range: + - bytes=0-33554431 + x-ms-version: + - '2020-10-02' + method: GET + uri: https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/rawOutputData?sv=PLACEHOLDER&sr=b&sig=PLACEHOLDER&se=PLACEHOLDER&sp=r&rscd=attachment%3B%20filename%3DQiskit%2BSample%2B-%2B3-qubit%2BGHZ%2Bcircuit-122ad3be-5de5-11ec-b449-3c7d0a1d68ec.output.json + response: + body: + string: '{"duration": 9282734, "histogram": {"0": 0.25, "7": 0.25, "8": 0.25, + "15": 0.25}, "access_token": "fake_token"}' + headers: + accept-ranges: + - bytes + content-length: + - '71' + content-range: + - bytes 0-70/71 + content-type: + - application/json + x-ms-blob-content-md5: + - XbzyRFphdUnfLPhWeHmaJg== + x-ms-blob-type: + - BlockBlob + x-ms-creation-time: + - Wed, 15 Dec 2021 20:24:58 GMT + x-ms-lease-state: + - available + x-ms-lease-status: + - unlocked + x-ms-server-encrypted: + - 'true' + x-ms-version: + - '2020-10-02' + status: + code: 206 + message: Partial Content +version: 1 diff --git a/azure-quantum/tests/unit/recordings/test_plugins_submit_qiskit_multi_circuit_experiment_to_honeywell.yaml b/azure-quantum/tests/unit/recordings/test_plugins_submit_qiskit_multi_circuit_experiment_to_honeywell.yaml new file mode 100644 index 000000000..0775adea4 --- /dev/null +++ b/azure-quantum/tests/unit/recordings/test_plugins_submit_qiskit_multi_circuit_experiment_to_honeywell.yaml @@ -0,0 +1,729 @@ +interactions: +- request: + body: client_id=PLACEHOLDER&grant_type=client_credentials&client_info=1&client_secret=PLACEHOLDER&claims=PLACEHOLDER&scope=https%3A%2F%2Fquantum.microsoft.com%2F.default + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + Content-Length: + - '287' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-identity/1.7.1 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + x-client-cpu: + - x64 + x-client-current-telemetry: + - 4|730,0| + x-client-os: + - darwin + x-client-sku: + - MSAL.Python + x-client-ver: + - 1.16.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": 86399, "ext_expires_in": 86399, + "access_token": "fake_token"}' + headers: + content-length: + - '1722' + content-type: + - application/json; charset=utf-8 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + User-Agent: + - testapp-azure-quantum-qiskit azsdk-python-quantum/0.0.0.1 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + method: GET + uri: https://eastus.quantum.azure.com/v1.0/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/providerStatus + response: + body: + string: '{"value": [{"id": "Microsoft", "currentAvailability": "Available", + "targets": [{"id": "microsoft.paralleltempering-parameterfree.cpu", "currentAvailability": + "Available", "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.paralleltempering.cpu", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": null}, + {"id": "microsoft.simulatedannealing-parameterfree.cpu", "currentAvailability": + "Available", "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.simulatedannealing.cpu", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": null}, + {"id": "microsoft.tabu-parameterfree.cpu", "currentAvailability": "Available", + "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.tabu.cpu", "currentAvailability": + "Available", "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.qmc.cpu", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": null}, + {"id": "microsoft.populationannealing.cpu", "currentAvailability": "Available", + "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.populationannealing-parameterfree.cpu", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": null}, + {"id": "microsoft.substochasticmontecarlo.cpu", "currentAvailability": "Available", + "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.substochasticmontecarlo-parameterfree.cpu", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": null}]}, + {"id": "ionq", "currentAvailability": "Available", "targets": [{"id": "ionq.qpu", + "currentAvailability": "Available", "averageQueueTime": 335, "statusPage": + "https://status.ionq.co"}, {"id": "ionq.simulator", "currentAvailability": + "Available", "averageQueueTime": 2, "statusPage": "https://status.ionq.co"}]}, + {"id": "toshiba", "currentAvailability": "Available", "targets": [{"id": "toshiba.sbm.ising", + "currentAvailability": "Available", "averageQueueTime": 5, "statusPage": null}]}, + {"id": "honeywell", "currentAvailability": "Degraded", "targets": [{"id": + "honeywell.hqs-lt-s1", "currentAvailability": "Unavailable", "averageQueueTime": + 0, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}, {"id": + "honeywell.hqs-lt-s1-apival", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}, {"id": + "honeywell.hqs-lt-s2", "currentAvailability": "Available", "averageQueueTime": + 461895, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}, + {"id": "honeywell.hqs-lt-s2-apival", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}, {"id": + "honeywell.hqs-lt-s1-sim", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}, {"id": + "honeywell.hqs-lt", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}]}, {"id": + "Microsoft.Simulator", "currentAvailability": "Available", "targets": [{"id": + "microsoft.simulator.fullstate", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": null}]}, {"id": "1qbit", "currentAvailability": "Available", + "targets": [{"id": "1qbit.tabu", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "http://status.1qbit.com/"}, {"id": "1qbit.pathrelinking", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": "http://status.1qbit.com/"}, + {"id": "1qbit.pticm", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "http://status.1qbit.com/"}]}], "nextLink": null, "access_token": + "fake_token"}' + headers: + content-length: + - '3418' + 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, br + Connection: + - keep-alive + User-Agent: + - testapp-azure-quantum-qiskit azsdk-python-quantum/0.0.0.1 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + method: GET + uri: https://eastus.quantum.azure.com/v1.0/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/providerStatus + response: + body: + string: '{"value": [{"id": "Microsoft", "currentAvailability": "Available", + "targets": [{"id": "microsoft.paralleltempering-parameterfree.cpu", "currentAvailability": + "Available", "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.paralleltempering.cpu", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": null}, + {"id": "microsoft.simulatedannealing-parameterfree.cpu", "currentAvailability": + "Available", "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.simulatedannealing.cpu", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": null}, + {"id": "microsoft.tabu-parameterfree.cpu", "currentAvailability": "Available", + "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.tabu.cpu", "currentAvailability": + "Available", "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.qmc.cpu", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": null}, + {"id": "microsoft.populationannealing.cpu", "currentAvailability": "Available", + "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.populationannealing-parameterfree.cpu", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": null}, + {"id": "microsoft.substochasticmontecarlo.cpu", "currentAvailability": "Available", + "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.substochasticmontecarlo-parameterfree.cpu", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": null}]}, + {"id": "ionq", "currentAvailability": "Available", "targets": [{"id": "ionq.qpu", + "currentAvailability": "Available", "averageQueueTime": 335, "statusPage": + "https://status.ionq.co"}, {"id": "ionq.simulator", "currentAvailability": + "Available", "averageQueueTime": 2, "statusPage": "https://status.ionq.co"}]}, + {"id": "toshiba", "currentAvailability": "Available", "targets": [{"id": "toshiba.sbm.ising", + "currentAvailability": "Available", "averageQueueTime": 5, "statusPage": null}]}, + {"id": "honeywell", "currentAvailability": "Degraded", "targets": [{"id": + "honeywell.hqs-lt-s1", "currentAvailability": "Unavailable", "averageQueueTime": + 0, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}, {"id": + "honeywell.hqs-lt-s1-apival", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}, {"id": + "honeywell.hqs-lt-s2", "currentAvailability": "Available", "averageQueueTime": + 461895, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}, + {"id": "honeywell.hqs-lt-s2-apival", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}, {"id": + "honeywell.hqs-lt-s1-sim", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}, {"id": + "honeywell.hqs-lt", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}]}, {"id": + "Microsoft.Simulator", "currentAvailability": "Available", "targets": [{"id": + "microsoft.simulator.fullstate", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": null}]}, {"id": "1qbit", "currentAvailability": "Available", + "targets": [{"id": "1qbit.tabu", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "http://status.1qbit.com/"}, {"id": "1qbit.pathrelinking", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": "http://status.1qbit.com/"}, + {"id": "1qbit.pticm", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "http://status.1qbit.com/"}]}], "nextLink": null, "access_token": + "fake_token"}' + headers: + content-length: + - '3418' + content-type: + - application/json; charset=utf-8 + transfer-encoding: + - chunked + status: + code: 200 + message: OK +- request: + body: 'b''{"containerName": "job-00000000-0000-0000-0000-000000000000"}''' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + Content-Length: + - '61' + Content-Type: + - application/json + User-Agent: + - testapp-azure-quantum-qiskit azsdk-python-quantum/0.0.0.1 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + method: POST + uri: https://eastus.quantum.azure.com/v1.0/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/storage/sasUri + response: + body: + string: '{"sasUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000?sv=PLACEHOLDER&sig=PLACEHOLDER&se=PLACEHOLDER&srt=co&ss=b&sp=racw", + "access_token": "fake_token"}' + headers: + content-length: + - '207' + content-type: + - application/json; charset=utf-8 + transfer-encoding: + - chunked + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + User-Agent: + - azsdk-python-storage-blob/12.9.0 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + x-ms-date: + - Wed, 15 Dec 2021 20:24:50 GMT + x-ms-version: + - '2020-10-02' + method: GET + uri: https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000?restype=container&sv=PLACEHOLDER&sig=PLACEHOLDER&se=PLACEHOLDER&srt=co&ss=b&sp=racw + response: + body: + string: "\uFEFFContainerNotFoundThe + specified container does not exist.\nRequestId:ef895560-001e-007d-02f1-f1eece000000\nTime:2021-12-15T20:24:50.4051238Z" + headers: + content-length: + - '225' + content-type: + - application/xml + x-ms-version: + - '2020-10-02' + status: + code: 404 + message: The specified container does not exist. +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-blob/12.9.0 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + x-ms-date: + - Wed, 15 Dec 2021 20:24:50 GMT + x-ms-version: + - '2020-10-02' + method: PUT + uri: https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000?restype=container&sv=PLACEHOLDER&sig=PLACEHOLDER&se=PLACEHOLDER&srt=co&ss=b&sp=racw + response: + body: + string: '' + headers: + content-length: + - '0' + x-ms-version: + - '2020-10-02' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + User-Agent: + - azsdk-python-storage-blob/12.9.0 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + x-ms-date: + - Wed, 15 Dec 2021 20:24:50 GMT + x-ms-version: + - '2020-10-02' + method: GET + uri: https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000?restype=container&sv=PLACEHOLDER&sig=PLACEHOLDER&se=PLACEHOLDER&srt=co&ss=b&sp=racw + response: + body: + string: '' + headers: + content-length: + - '0' + x-ms-lease-state: + - available + x-ms-lease-status: + - unlocked + x-ms-version: + - '2020-10-02' + status: + code: 200 + message: OK +- request: + body: b'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[4];\ncreg c[3];\nh q[0];\ncx + q[0],q[1];\ncx q[1],q[2];\nh q[3];\nmeasure q[0] -> c[0];\nmeasure q[1] -> c[1];\nmeasure + q[2] -> c[2];\n' + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + Content-Length: + - '168' + Content-Type: + - application/octet-stream + User-Agent: + - azsdk-python-storage-blob/12.9.0 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + x-ms-blob-type: + - BlockBlob + x-ms-date: + - Wed, 15 Dec 2021 20:24:50 GMT + x-ms-version: + - '2020-10-02' + method: PUT + uri: https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/inputData?sv=PLACEHOLDER&sig=PLACEHOLDER&se=PLACEHOLDER&srt=co&ss=b&sp=racw + response: + body: + string: '' + headers: + content-length: + - '0' + x-ms-version: + - '2020-10-02' + status: + code: 201 + message: Created +- request: + body: 'b''{"id": "00000000-0000-0000-0000-000000000000", "name": "Qiskit Sample + - 3-qubit GHZ circuit", "containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000?sv=PLACEHOLDER&sig=PLACEHOLDER&se=PLACEHOLDER&srt=co&ss=b&sp=racw", + "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/inputData", + "inputDataFormat": "honeywell.openqasm.v1", "inputParams": {"count": 500}, "providerId": + "honeywell", "target": "honeywell.hqs-lt-s1-apival", "metadata": {"qubits": + "4"}, "outputDataFormat": "honeywell.quantum-results.v1"}''' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + Content-Length: + - '639' + Content-Type: + - application/json + User-Agent: + - testapp-azure-quantum-qiskit azsdk-python-quantum/0.0.0.1 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + method: PUT + uri: https://eastus.quantum.azure.com/v1.0/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000000 + response: + body: + string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000?sv=PLACEHOLDER&sig=PLACEHOLDER&se=PLACEHOLDER&srt=co&ss=b&sp=racw", + "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/inputData?sv=PLACEHOLDER&sr=b&sig=PLACEHOLDER&se=PLACEHOLDER&sp=rcw", + "inputDataFormat": "honeywell.openqasm.v1", "inputParams": {"count": 500}, + "providerId": "honeywell", "target": "honeywell.hqs-lt-s1-apival", "metadata": + {"qubits": "4"}, "name": "Qiskit Sample - 3-qubit GHZ circuit", "id": "00000000-0000-0000-0000-000000000000", + "status": "Waiting", "outputDataFormat": "honeywell.quantum-results.v1", "outputDataUri": + "https://e2etests.blob.core.windows.net:443/job-00000000-0000-0000-0000-000000000000/outputData?sv=PLACEHOLDER&sig=PLACEHOLDER&se=PLACEHOLDER&srt=co&ss=b&sp=racw", + "creationTime": "2021-12-15T20:24:50.5406938+00:00", "beginExecutionTime": + null, "endExecutionTime": null, "cancellationTime": null, "costEstimate": + null, "errorData": null, "isCancelling": false, "tags": [], "access_token": + "fake_token"}' + headers: + content-length: + - '1167' + 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, br + Connection: + - keep-alive + User-Agent: + - testapp-azure-quantum-qiskit azsdk-python-quantum/0.0.0.1 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + method: GET + uri: https://eastus.quantum.azure.com/v1.0/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000000 + response: + body: + string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000?sv=PLACEHOLDER&sig=PLACEHOLDER&se=PLACEHOLDER&srt=co&ss=b&sp=racw", + "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/inputData?sv=PLACEHOLDER&sr=b&sig=PLACEHOLDER&se=PLACEHOLDER&sp=r&rscd=attachment%3B%20filename%3DQiskit%2BSample%2B-%2B3-qubit%2BGHZ%2Bcircuit-0d9cdc16-5de5-11ec-b449-3c7d0a1d68ec.input.json", + "inputDataFormat": "honeywell.openqasm.v1", "inputParams": {"count": 500}, + "providerId": "honeywell", "target": "honeywell.hqs-lt-s1-apival", "metadata": + {"qubits": "4"}, "name": "Qiskit Sample - 3-qubit GHZ circuit", "id": "00000000-0000-0000-0000-000000000000", + "status": "Succeeded", "outputDataFormat": "honeywell.quantum-results.v1", + "outputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/rawOutputData?sv=PLACEHOLDER&sr=b&sig=PLACEHOLDER&se=PLACEHOLDER&sp=r&rscd=attachment%3B%20filename%3DQiskit%2BSample%2B-%2B3-qubit%2BGHZ%2Bcircuit-0d9cdc16-5de5-11ec-b449-3c7d0a1d68ec.output.json", + "creationTime": "2021-12-15T20:24:50.5406938+00:00", "beginExecutionTime": + "2021-12-15T20:24:51.663572+00:00", "endExecutionTime": "2021-12-15T20:24:51.664214+00:00", + "cancellationTime": null, "costEstimate": null, "errorData": null, "isCancelling": + false, "tags": [], "access_token": "fake_token"}' + headers: + content-length: + - '1463' + 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, br + Connection: + - keep-alive + User-Agent: + - testapp-azure-quantum-qiskit azsdk-python-quantum/0.0.0.1 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + method: GET + uri: https://eastus.quantum.azure.com/v1.0/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000000 + response: + body: + string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000?sv=PLACEHOLDER&sig=PLACEHOLDER&se=PLACEHOLDER&srt=co&ss=b&sp=racw", + "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/inputData?sv=PLACEHOLDER&sr=b&sig=PLACEHOLDER&se=PLACEHOLDER&sp=r&rscd=attachment%3B%20filename%3DQiskit%2BSample%2B-%2B3-qubit%2BGHZ%2Bcircuit-0d9cdc16-5de5-11ec-b449-3c7d0a1d68ec.input.json", + "inputDataFormat": "honeywell.openqasm.v1", "inputParams": {"count": 500}, + "providerId": "honeywell", "target": "honeywell.hqs-lt-s1-apival", "metadata": + {"qubits": "4"}, "name": "Qiskit Sample - 3-qubit GHZ circuit", "id": "00000000-0000-0000-0000-000000000000", + "status": "Succeeded", "outputDataFormat": "honeywell.quantum-results.v1", + "outputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/rawOutputData?sv=PLACEHOLDER&sr=b&sig=PLACEHOLDER&se=PLACEHOLDER&sp=r&rscd=attachment%3B%20filename%3DQiskit%2BSample%2B-%2B3-qubit%2BGHZ%2Bcircuit-0d9cdc16-5de5-11ec-b449-3c7d0a1d68ec.output.json", + "creationTime": "2021-12-15T20:24:50.5406938+00:00", "beginExecutionTime": + "2021-12-15T20:24:51.663572+00:00", "endExecutionTime": "2021-12-15T20:24:51.664214+00:00", + "cancellationTime": null, "costEstimate": null, "errorData": null, "isCancelling": + false, "tags": [], "access_token": "fake_token"}' + headers: + content-length: + - '1463' + 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, br + Connection: + - keep-alive + User-Agent: + - testapp-azure-quantum-qiskit azsdk-python-quantum/0.0.0.1 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + method: GET + uri: https://eastus.quantum.azure.com/v1.0/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/providerStatus + response: + body: + string: '{"value": [{"id": "Microsoft", "currentAvailability": "Available", + "targets": [{"id": "microsoft.paralleltempering-parameterfree.cpu", "currentAvailability": + "Available", "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.paralleltempering.cpu", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": null}, + {"id": "microsoft.simulatedannealing-parameterfree.cpu", "currentAvailability": + "Available", "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.simulatedannealing.cpu", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": null}, + {"id": "microsoft.tabu-parameterfree.cpu", "currentAvailability": "Available", + "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.tabu.cpu", "currentAvailability": + "Available", "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.qmc.cpu", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": null}, + {"id": "microsoft.populationannealing.cpu", "currentAvailability": "Available", + "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.populationannealing-parameterfree.cpu", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": null}, + {"id": "microsoft.substochasticmontecarlo.cpu", "currentAvailability": "Available", + "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.substochasticmontecarlo-parameterfree.cpu", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": null}]}, + {"id": "ionq", "currentAvailability": "Available", "targets": [{"id": "ionq.qpu", + "currentAvailability": "Available", "averageQueueTime": 335, "statusPage": + "https://status.ionq.co"}, {"id": "ionq.simulator", "currentAvailability": + "Available", "averageQueueTime": 2, "statusPage": "https://status.ionq.co"}]}, + {"id": "toshiba", "currentAvailability": "Available", "targets": [{"id": "toshiba.sbm.ising", + "currentAvailability": "Available", "averageQueueTime": 5, "statusPage": null}]}, + {"id": "honeywell", "currentAvailability": "Degraded", "targets": [{"id": + "honeywell.hqs-lt-s1", "currentAvailability": "Unavailable", "averageQueueTime": + 0, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}, {"id": + "honeywell.hqs-lt-s1-apival", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}, {"id": + "honeywell.hqs-lt-s2", "currentAvailability": "Available", "averageQueueTime": + 461895, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}, + {"id": "honeywell.hqs-lt-s2-apival", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}, {"id": + "honeywell.hqs-lt-s1-sim", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}, {"id": + "honeywell.hqs-lt", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}]}, {"id": + "Microsoft.Simulator", "currentAvailability": "Available", "targets": [{"id": + "microsoft.simulator.fullstate", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": null}]}, {"id": "1qbit", "currentAvailability": "Available", + "targets": [{"id": "1qbit.tabu", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "http://status.1qbit.com/"}, {"id": "1qbit.pathrelinking", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": "http://status.1qbit.com/"}, + {"id": "1qbit.pticm", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "http://status.1qbit.com/"}]}], "nextLink": null, "access_token": + "fake_token"}' + headers: + content-length: + - '3418' + 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, br + Connection: + - keep-alive + User-Agent: + - testapp-azure-quantum-qiskit azsdk-python-quantum/0.0.0.1 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + method: GET + uri: https://eastus.quantum.azure.com/v1.0/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000000 + response: + body: + string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000?sv=PLACEHOLDER&sig=PLACEHOLDER&se=PLACEHOLDER&srt=co&ss=b&sp=racw", + "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/inputData?sv=PLACEHOLDER&sr=b&sig=PLACEHOLDER&se=PLACEHOLDER&sp=r&rscd=attachment%3B%20filename%3DQiskit%2BSample%2B-%2B3-qubit%2BGHZ%2Bcircuit-0d9cdc16-5de5-11ec-b449-3c7d0a1d68ec.input.json", + "inputDataFormat": "honeywell.openqasm.v1", "inputParams": {"count": 500}, + "providerId": "honeywell", "target": "honeywell.hqs-lt-s1-apival", "metadata": + {"qubits": "4"}, "name": "Qiskit Sample - 3-qubit GHZ circuit", "id": "00000000-0000-0000-0000-000000000000", + "status": "Succeeded", "outputDataFormat": "honeywell.quantum-results.v1", + "outputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/rawOutputData?sv=PLACEHOLDER&sr=b&sig=PLACEHOLDER&se=PLACEHOLDER&sp=r&rscd=attachment%3B%20filename%3DQiskit%2BSample%2B-%2B3-qubit%2BGHZ%2Bcircuit-0d9cdc16-5de5-11ec-b449-3c7d0a1d68ec.output.json", + "creationTime": "2021-12-15T20:24:50.5406938+00:00", "beginExecutionTime": + "2021-12-15T20:24:51.663572+00:00", "endExecutionTime": "2021-12-15T20:24:51.664214+00:00", + "cancellationTime": null, "costEstimate": null, "errorData": null, "isCancelling": + false, "tags": [], "access_token": "fake_token"}' + headers: + content-length: + - '1463' + 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, br + Connection: + - keep-alive + User-Agent: + - testapp-azure-quantum-qiskit azsdk-python-quantum/0.0.0.1 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + method: GET + uri: https://eastus.quantum.azure.com/v1.0/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000000 + response: + body: + string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000?sv=PLACEHOLDER&sig=PLACEHOLDER&se=PLACEHOLDER&srt=co&ss=b&sp=racw", + "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/inputData?sv=PLACEHOLDER&sr=b&sig=PLACEHOLDER&se=PLACEHOLDER&sp=r&rscd=attachment%3B%20filename%3DQiskit%2BSample%2B-%2B3-qubit%2BGHZ%2Bcircuit-0d9cdc16-5de5-11ec-b449-3c7d0a1d68ec.input.json", + "inputDataFormat": "honeywell.openqasm.v1", "inputParams": {"count": 500}, + "providerId": "honeywell", "target": "honeywell.hqs-lt-s1-apival", "metadata": + {"qubits": "4"}, "name": "Qiskit Sample - 3-qubit GHZ circuit", "id": "00000000-0000-0000-0000-000000000000", + "status": "Succeeded", "outputDataFormat": "honeywell.quantum-results.v1", + "outputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/rawOutputData?sv=PLACEHOLDER&sr=b&sig=PLACEHOLDER&se=PLACEHOLDER&sp=r&rscd=attachment%3B%20filename%3DQiskit%2BSample%2B-%2B3-qubit%2BGHZ%2Bcircuit-0d9cdc16-5de5-11ec-b449-3c7d0a1d68ec.output.json", + "creationTime": "2021-12-15T20:24:50.5406938+00:00", "beginExecutionTime": + "2021-12-15T20:24:51.663572+00:00", "endExecutionTime": "2021-12-15T20:24:51.664214+00:00", + "cancellationTime": null, "costEstimate": null, "errorData": null, "isCancelling": + false, "tags": [], "access_token": "fake_token"}' + headers: + content-length: + - '1463' + 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, br + Connection: + - keep-alive + User-Agent: + - testapp-azure-quantum-qiskit azsdk-python-quantum/0.0.0.1 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + method: GET + uri: https://eastus.quantum.azure.com/v1.0/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000000 + response: + body: + string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000?sv=PLACEHOLDER&sig=PLACEHOLDER&se=PLACEHOLDER&srt=co&ss=b&sp=racw", + "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/inputData?sv=PLACEHOLDER&sr=b&sig=PLACEHOLDER&se=PLACEHOLDER&sp=r&rscd=attachment%3B%20filename%3DQiskit%2BSample%2B-%2B3-qubit%2BGHZ%2Bcircuit-0d9cdc16-5de5-11ec-b449-3c7d0a1d68ec.input.json", + "inputDataFormat": "honeywell.openqasm.v1", "inputParams": {"count": 500}, + "providerId": "honeywell", "target": "honeywell.hqs-lt-s1-apival", "metadata": + {"qubits": "4"}, "name": "Qiskit Sample - 3-qubit GHZ circuit", "id": "00000000-0000-0000-0000-000000000000", + "status": "Succeeded", "outputDataFormat": "honeywell.quantum-results.v1", + "outputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/rawOutputData?sv=PLACEHOLDER&sr=b&sig=PLACEHOLDER&se=PLACEHOLDER&sp=r&rscd=attachment%3B%20filename%3DQiskit%2BSample%2B-%2B3-qubit%2BGHZ%2Bcircuit-0d9cdc16-5de5-11ec-b449-3c7d0a1d68ec.output.json", + "creationTime": "2021-12-15T20:24:50.5406938+00:00", "beginExecutionTime": + "2021-12-15T20:24:51.663572+00:00", "endExecutionTime": "2021-12-15T20:24:51.664214+00:00", + "cancellationTime": null, "costEstimate": null, "errorData": null, "isCancelling": + false, "tags": [], "access_token": "fake_token"}' + headers: + content-length: + - '1463' + content-type: + - application/json; charset=utf-8 + transfer-encoding: + - chunked + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + User-Agent: + - azsdk-python-storage-blob/12.9.0 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + x-ms-date: + - Wed, 15 Dec 2021 20:24:57 GMT + x-ms-range: + - bytes=0-33554431 + x-ms-version: + - '2020-10-02' + method: GET + uri: https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/rawOutputData?sv=PLACEHOLDER&sr=b&sig=PLACEHOLDER&se=PLACEHOLDER&sp=r&rscd=attachment%3B%20filename%3DQiskit%2BSample%2B-%2B3-qubit%2BGHZ%2Bcircuit-0d9cdc16-5de5-11ec-b449-3c7d0a1d68ec.output.json + response: + body: + string: '{"c": ["000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", "000", + "000", "000", "000", "000", "000", "000", "000"], "access_token": "fake_token"}' + headers: + accept-ranges: + - bytes + content-length: + - '3507' + content-range: + - bytes 0-3506/3507 + content-type: + - application/octet-stream + x-ms-blob-content-md5: + - DlFMtLGNTedhCRW9QrLH7g== + x-ms-blob-type: + - BlockBlob + x-ms-creation-time: + - Wed, 15 Dec 2021 20:24:50 GMT + x-ms-lease-state: + - available + x-ms-lease-status: + - unlocked + x-ms-server-encrypted: + - 'true' + x-ms-version: + - '2020-10-02' + status: + code: 206 + message: Partial Content +version: 1 diff --git a/azure-quantum/tests/unit/recordings/test_plugins_submit_qiskit_multi_circuit_experiment_to_ionq.yaml b/azure-quantum/tests/unit/recordings/test_plugins_submit_qiskit_multi_circuit_experiment_to_ionq.yaml new file mode 100644 index 000000000..bc0e150c9 --- /dev/null +++ b/azure-quantum/tests/unit/recordings/test_plugins_submit_qiskit_multi_circuit_experiment_to_ionq.yaml @@ -0,0 +1,622 @@ +interactions: +- request: + body: client_id=PLACEHOLDER&grant_type=client_credentials&client_info=1&client_secret=PLACEHOLDER&claims=PLACEHOLDER&scope=https%3A%2F%2Fquantum.microsoft.com%2F.default + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + Content-Length: + - '287' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-identity/1.7.1 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + x-client-cpu: + - x64 + x-client-current-telemetry: + - 4|730,0| + x-client-os: + - darwin + x-client-sku: + - MSAL.Python + x-client-ver: + - 1.16.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": 86399, "ext_expires_in": 86399, + "access_token": "fake_token"}' + headers: + content-length: + - '1722' + content-type: + - application/json; charset=utf-8 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + User-Agent: + - testapp-azure-quantum-qiskit azsdk-python-quantum/0.0.0.1 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + method: GET + uri: https://eastus.quantum.azure.com/v1.0/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/providerStatus + response: + body: + string: '{"value": [{"id": "Microsoft", "currentAvailability": "Available", + "targets": [{"id": "microsoft.paralleltempering-parameterfree.cpu", "currentAvailability": + "Available", "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.paralleltempering.cpu", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": null}, + {"id": "microsoft.simulatedannealing-parameterfree.cpu", "currentAvailability": + "Available", "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.simulatedannealing.cpu", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": null}, + {"id": "microsoft.tabu-parameterfree.cpu", "currentAvailability": "Available", + "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.tabu.cpu", "currentAvailability": + "Available", "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.qmc.cpu", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": null}, + {"id": "microsoft.populationannealing.cpu", "currentAvailability": "Available", + "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.populationannealing-parameterfree.cpu", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": null}, + {"id": "microsoft.substochasticmontecarlo.cpu", "currentAvailability": "Available", + "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.substochasticmontecarlo-parameterfree.cpu", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": null}]}, + {"id": "ionq", "currentAvailability": "Available", "targets": [{"id": "ionq.qpu", + "currentAvailability": "Available", "averageQueueTime": 335, "statusPage": + "https://status.ionq.co"}, {"id": "ionq.simulator", "currentAvailability": + "Available", "averageQueueTime": 2, "statusPage": "https://status.ionq.co"}]}, + {"id": "toshiba", "currentAvailability": "Available", "targets": [{"id": "toshiba.sbm.ising", + "currentAvailability": "Available", "averageQueueTime": 5, "statusPage": null}]}, + {"id": "honeywell", "currentAvailability": "Degraded", "targets": [{"id": + "honeywell.hqs-lt-s1", "currentAvailability": "Unavailable", "averageQueueTime": + 0, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}, {"id": + "honeywell.hqs-lt-s1-apival", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}, {"id": + "honeywell.hqs-lt-s2", "currentAvailability": "Available", "averageQueueTime": + 461895, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}, + {"id": "honeywell.hqs-lt-s2-apival", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}, {"id": + "honeywell.hqs-lt-s1-sim", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}, {"id": + "honeywell.hqs-lt", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}]}, {"id": + "Microsoft.Simulator", "currentAvailability": "Available", "targets": [{"id": + "microsoft.simulator.fullstate", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": null}]}, {"id": "1qbit", "currentAvailability": "Available", + "targets": [{"id": "1qbit.tabu", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "http://status.1qbit.com/"}, {"id": "1qbit.pathrelinking", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": "http://status.1qbit.com/"}, + {"id": "1qbit.pticm", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "http://status.1qbit.com/"}]}], "nextLink": null, "access_token": + "fake_token"}' + headers: + content-length: + - '3418' + content-type: + - application/json; charset=utf-8 + transfer-encoding: + - chunked + status: + code: 200 + message: OK +- request: + body: 'b''{"containerName": "job-00000000-0000-0000-0000-000000000000"}''' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + Content-Length: + - '61' + Content-Type: + - application/json + User-Agent: + - testapp-azure-quantum-qiskit azsdk-python-quantum/0.0.0.1 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + method: POST + uri: https://eastus.quantum.azure.com/v1.0/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/storage/sasUri + response: + body: + string: '{"sasUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000?sv=PLACEHOLDER&sig=PLACEHOLDER&se=PLACEHOLDER&srt=co&ss=b&sp=racw", + "access_token": "fake_token"}' + headers: + content-length: + - '205' + content-type: + - application/json; charset=utf-8 + transfer-encoding: + - chunked + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + User-Agent: + - azsdk-python-storage-blob/12.9.0 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + x-ms-date: + - Wed, 15 Dec 2021 20:24:57 GMT + x-ms-version: + - '2020-10-02' + method: GET + uri: https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000?restype=container&sv=PLACEHOLDER&sig=PLACEHOLDER&se=PLACEHOLDER&srt=co&ss=b&sp=racw + response: + body: + string: "\uFEFFContainerNotFoundThe + specified container does not exist.\nRequestId:aeb4ad27-401e-001e-50f1-f17335000000\nTime:2021-12-15T20:24:58.0516074Z" + headers: + content-length: + - '225' + content-type: + - application/xml + x-ms-version: + - '2020-10-02' + status: + code: 404 + message: The specified container does not exist. +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-blob/12.9.0 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + x-ms-date: + - Wed, 15 Dec 2021 20:24:57 GMT + x-ms-version: + - '2020-10-02' + method: PUT + uri: https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000?restype=container&sv=PLACEHOLDER&sig=PLACEHOLDER&se=PLACEHOLDER&srt=co&ss=b&sp=racw + response: + body: + string: '' + headers: + content-length: + - '0' + x-ms-version: + - '2020-10-02' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + User-Agent: + - azsdk-python-storage-blob/12.9.0 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + x-ms-date: + - Wed, 15 Dec 2021 20:24:58 GMT + x-ms-version: + - '2020-10-02' + method: GET + uri: https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000?restype=container&sv=PLACEHOLDER&sig=PLACEHOLDER&se=PLACEHOLDER&srt=co&ss=b&sp=racw + response: + body: + string: '' + headers: + content-length: + - '0' + x-ms-lease-state: + - available + x-ms-lease-status: + - unlocked + x-ms-version: + - '2020-10-02' + status: + code: 200 + message: OK +- request: + body: 'b''{"qubits": 4, "circuit": [{"gate": "h", "targets": [0]}, {"gate": "x", + "targets": [1], "controls": [0]}, {"gate": "x", "targets": [2], "controls": + [1]}, {"gate": "h", "targets": [3]}]}''' + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + Content-Length: + - '184' + Content-Type: + - application/octet-stream + User-Agent: + - azsdk-python-storage-blob/12.9.0 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + x-ms-blob-type: + - BlockBlob + x-ms-date: + - Wed, 15 Dec 2021 20:24:58 GMT + x-ms-version: + - '2020-10-02' + method: PUT + uri: https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/inputData?sv=PLACEHOLDER&sig=PLACEHOLDER&se=PLACEHOLDER&srt=co&ss=b&sp=racw + response: + body: + string: '' + headers: + content-length: + - '0' + x-ms-version: + - '2020-10-02' + status: + code: 201 + message: Created +- request: + body: 'b''{"id": "00000000-0000-0000-0000-000000000000", "name": "Qiskit Sample + - 3-qubit GHZ circuit", "containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000?sv=PLACEHOLDER&sig=PLACEHOLDER&se=PLACEHOLDER&srt=co&ss=b&sp=racw", + "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/inputData", + "inputDataFormat": "ionq.circuit.v1", "inputParams": {"shots": 500}, "providerId": + "ionq", "target": "ionq.simulator", "metadata": {"qiskit": "True", "name": "Qiskit + Sample - 3-qubit GHZ circuit", "num_qubits": "4", "meas_map": "[0, 1, 2]"}, + "outputDataFormat": "ionq.quantum-results.v1"}''' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + Content-Length: + - '703' + Content-Type: + - application/json + User-Agent: + - testapp-azure-quantum-qiskit azsdk-python-quantum/0.0.0.1 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + method: PUT + uri: https://eastus.quantum.azure.com/v1.0/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000000 + response: + body: + string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000?sv=PLACEHOLDER&sig=PLACEHOLDER&se=PLACEHOLDER&srt=co&ss=b&sp=racw", + "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/inputData?sv=PLACEHOLDER&sr=b&sig=PLACEHOLDER&se=PLACEHOLDER&sp=rcw", + "inputDataFormat": "ionq.circuit.v1", "inputParams": {"shots": 500}, "providerId": + "ionq", "target": "ionq.simulator", "metadata": {"qiskit": "True", "name": + "Qiskit Sample - 3-qubit GHZ circuit", "num_qubits": "4", "meas_map": "[0, + 1, 2]"}, "name": "Qiskit Sample - 3-qubit GHZ circuit", "id": "00000000-0000-0000-0000-000000000000", + "status": "Waiting", "outputDataFormat": "ionq.quantum-results.v1", "outputDataUri": + "https://e2etests.blob.core.windows.net:443/job-00000000-0000-0000-0000-000000000000/outputData?sv=PLACEHOLDER&sig=PLACEHOLDER&se=PLACEHOLDER&srt=co&ss=b&sp=racw", + "creationTime": "2021-12-15T20:24:58.2451927+00:00", "beginExecutionTime": + null, "endExecutionTime": null, "cancellationTime": null, "costEstimate": + null, "errorData": null, "isCancelling": false, "tags": [], "access_token": + "fake_token"}' + headers: + content-length: + - '1223' + 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, br + Connection: + - keep-alive + User-Agent: + - testapp-azure-quantum-qiskit azsdk-python-quantum/0.0.0.1 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + method: GET + uri: https://eastus.quantum.azure.com/v1.0/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000000 + response: + body: + string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000?sv=PLACEHOLDER&sig=PLACEHOLDER&se=PLACEHOLDER&srt=co&ss=b&sp=racw", + "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/inputData?sv=PLACEHOLDER&sr=b&sig=PLACEHOLDER&se=PLACEHOLDER&sp=r&rscd=attachment%3B%20filename%3DQiskit%2BSample%2B-%2B3-qubit%2BGHZ%2Bcircuit-122ad3be-5de5-11ec-b449-3c7d0a1d68ec.input.json", + "inputDataFormat": "ionq.circuit.v1", "inputParams": {"shots": 500}, "providerId": + "ionq", "target": "ionq.simulator", "metadata": {"qiskit": "True", "name": + "Qiskit Sample - 3-qubit GHZ circuit", "num_qubits": "4", "meas_map": "[0, + 1, 2]"}, "name": "Qiskit Sample - 3-qubit GHZ circuit", "id": "00000000-0000-0000-0000-000000000000", + "status": "Succeeded", "outputDataFormat": "ionq.quantum-results.v1", "outputDataUri": + "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/rawOutputData?sv=PLACEHOLDER&sr=b&sig=PLACEHOLDER&se=PLACEHOLDER&sp=r&rscd=attachment%3B%20filename%3DQiskit%2BSample%2B-%2B3-qubit%2BGHZ%2Bcircuit-122ad3be-5de5-11ec-b449-3c7d0a1d68ec.output.json", + "creationTime": "2021-12-15T20:24:58.2451927+00:00", "beginExecutionTime": + "2021-12-15T20:25:00.467Z", "endExecutionTime": "2021-12-15T20:25:00.476Z", + "cancellationTime": null, "costEstimate": null, "errorData": null, "isCancelling": + false, "tags": [], "access_token": "fake_token"}' + headers: + content-length: + - '1509' + 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, br + Connection: + - keep-alive + User-Agent: + - testapp-azure-quantum-qiskit azsdk-python-quantum/0.0.0.1 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + method: GET + uri: https://eastus.quantum.azure.com/v1.0/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000000 + response: + body: + string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000?sv=PLACEHOLDER&sig=PLACEHOLDER&se=PLACEHOLDER&srt=co&ss=b&sp=racw", + "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/inputData?sv=PLACEHOLDER&sr=b&sig=PLACEHOLDER&se=PLACEHOLDER&sp=r&rscd=attachment%3B%20filename%3DQiskit%2BSample%2B-%2B3-qubit%2BGHZ%2Bcircuit-122ad3be-5de5-11ec-b449-3c7d0a1d68ec.input.json", + "inputDataFormat": "ionq.circuit.v1", "inputParams": {"shots": 500}, "providerId": + "ionq", "target": "ionq.simulator", "metadata": {"qiskit": "True", "name": + "Qiskit Sample - 3-qubit GHZ circuit", "num_qubits": "4", "meas_map": "[0, + 1, 2]"}, "name": "Qiskit Sample - 3-qubit GHZ circuit", "id": "00000000-0000-0000-0000-000000000000", + "status": "Succeeded", "outputDataFormat": "ionq.quantum-results.v1", "outputDataUri": + "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/rawOutputData?sv=PLACEHOLDER&sr=b&sig=PLACEHOLDER&se=PLACEHOLDER&sp=r&rscd=attachment%3B%20filename%3DQiskit%2BSample%2B-%2B3-qubit%2BGHZ%2Bcircuit-122ad3be-5de5-11ec-b449-3c7d0a1d68ec.output.json", + "creationTime": "2021-12-15T20:24:58.2451927+00:00", "beginExecutionTime": + "2021-12-15T20:25:00.467Z", "endExecutionTime": "2021-12-15T20:25:00.476Z", + "cancellationTime": null, "costEstimate": null, "errorData": null, "isCancelling": + false, "tags": [], "access_token": "fake_token"}' + headers: + content-length: + - '1509' + 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, br + Connection: + - keep-alive + User-Agent: + - testapp-azure-quantum-qiskit azsdk-python-quantum/0.0.0.1 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + method: GET + uri: https://eastus.quantum.azure.com/v1.0/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/providerStatus + response: + body: + string: '{"value": [{"id": "Microsoft", "currentAvailability": "Available", + "targets": [{"id": "microsoft.paralleltempering-parameterfree.cpu", "currentAvailability": + "Available", "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.paralleltempering.cpu", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": null}, + {"id": "microsoft.simulatedannealing-parameterfree.cpu", "currentAvailability": + "Available", "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.simulatedannealing.cpu", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": null}, + {"id": "microsoft.tabu-parameterfree.cpu", "currentAvailability": "Available", + "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.tabu.cpu", "currentAvailability": + "Available", "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.qmc.cpu", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": null}, + {"id": "microsoft.populationannealing.cpu", "currentAvailability": "Available", + "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.populationannealing-parameterfree.cpu", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": null}, + {"id": "microsoft.substochasticmontecarlo.cpu", "currentAvailability": "Available", + "averageQueueTime": 0, "statusPage": null}, {"id": "microsoft.substochasticmontecarlo-parameterfree.cpu", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": null}]}, + {"id": "ionq", "currentAvailability": "Available", "targets": [{"id": "ionq.qpu", + "currentAvailability": "Available", "averageQueueTime": 335, "statusPage": + "https://status.ionq.co"}, {"id": "ionq.simulator", "currentAvailability": + "Available", "averageQueueTime": 2, "statusPage": "https://status.ionq.co"}]}, + {"id": "toshiba", "currentAvailability": "Available", "targets": [{"id": "toshiba.sbm.ising", + "currentAvailability": "Available", "averageQueueTime": 5, "statusPage": null}]}, + {"id": "honeywell", "currentAvailability": "Degraded", "targets": [{"id": + "honeywell.hqs-lt-s1", "currentAvailability": "Unavailable", "averageQueueTime": + 0, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}, {"id": + "honeywell.hqs-lt-s1-apival", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}, {"id": + "honeywell.hqs-lt-s2", "currentAvailability": "Available", "averageQueueTime": + 461895, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}, + {"id": "honeywell.hqs-lt-s2-apival", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}, {"id": + "honeywell.hqs-lt-s1-sim", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}, {"id": + "honeywell.hqs-lt", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "https://www.honeywell.com/en-us/company/quantum"}]}, {"id": + "Microsoft.Simulator", "currentAvailability": "Available", "targets": [{"id": + "microsoft.simulator.fullstate", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": null}]}, {"id": "1qbit", "currentAvailability": "Available", + "targets": [{"id": "1qbit.tabu", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "http://status.1qbit.com/"}, {"id": "1qbit.pathrelinking", + "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": "http://status.1qbit.com/"}, + {"id": "1qbit.pticm", "currentAvailability": "Available", "averageQueueTime": + 0, "statusPage": "http://status.1qbit.com/"}]}], "nextLink": null, "access_token": + "fake_token"}' + headers: + content-length: + - '3418' + 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, br + Connection: + - keep-alive + User-Agent: + - testapp-azure-quantum-qiskit azsdk-python-quantum/0.0.0.1 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + method: GET + uri: https://eastus.quantum.azure.com/v1.0/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000000 + response: + body: + string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000?sv=PLACEHOLDER&sig=PLACEHOLDER&se=PLACEHOLDER&srt=co&ss=b&sp=racw", + "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/inputData?sv=PLACEHOLDER&sr=b&sig=PLACEHOLDER&se=PLACEHOLDER&sp=r&rscd=attachment%3B%20filename%3DQiskit%2BSample%2B-%2B3-qubit%2BGHZ%2Bcircuit-122ad3be-5de5-11ec-b449-3c7d0a1d68ec.input.json", + "inputDataFormat": "ionq.circuit.v1", "inputParams": {"shots": 500}, "providerId": + "ionq", "target": "ionq.simulator", "metadata": {"qiskit": "True", "name": + "Qiskit Sample - 3-qubit GHZ circuit", "num_qubits": "4", "meas_map": "[0, + 1, 2]"}, "name": "Qiskit Sample - 3-qubit GHZ circuit", "id": "00000000-0000-0000-0000-000000000000", + "status": "Succeeded", "outputDataFormat": "ionq.quantum-results.v1", "outputDataUri": + "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/rawOutputData?sv=PLACEHOLDER&sr=b&sig=PLACEHOLDER&se=PLACEHOLDER&sp=r&rscd=attachment%3B%20filename%3DQiskit%2BSample%2B-%2B3-qubit%2BGHZ%2Bcircuit-122ad3be-5de5-11ec-b449-3c7d0a1d68ec.output.json", + "creationTime": "2021-12-15T20:24:58.2451927+00:00", "beginExecutionTime": + "2021-12-15T20:25:00.467Z", "endExecutionTime": "2021-12-15T20:25:00.476Z", + "cancellationTime": null, "costEstimate": null, "errorData": null, "isCancelling": + false, "tags": [], "access_token": "fake_token"}' + headers: + content-length: + - '1509' + 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, br + Connection: + - keep-alive + User-Agent: + - testapp-azure-quantum-qiskit azsdk-python-quantum/0.0.0.1 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + method: GET + uri: https://eastus.quantum.azure.com/v1.0/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000000 + response: + body: + string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000?sv=PLACEHOLDER&sig=PLACEHOLDER&se=PLACEHOLDER&srt=co&ss=b&sp=racw", + "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/inputData?sv=PLACEHOLDER&sr=b&sig=PLACEHOLDER&se=PLACEHOLDER&sp=r&rscd=attachment%3B%20filename%3DQiskit%2BSample%2B-%2B3-qubit%2BGHZ%2Bcircuit-122ad3be-5de5-11ec-b449-3c7d0a1d68ec.input.json", + "inputDataFormat": "ionq.circuit.v1", "inputParams": {"shots": 500}, "providerId": + "ionq", "target": "ionq.simulator", "metadata": {"qiskit": "True", "name": + "Qiskit Sample - 3-qubit GHZ circuit", "num_qubits": "4", "meas_map": "[0, + 1, 2]"}, "name": "Qiskit Sample - 3-qubit GHZ circuit", "id": "00000000-0000-0000-0000-000000000000", + "status": "Succeeded", "outputDataFormat": "ionq.quantum-results.v1", "outputDataUri": + "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/rawOutputData?sv=PLACEHOLDER&sr=b&sig=PLACEHOLDER&se=PLACEHOLDER&sp=r&rscd=attachment%3B%20filename%3DQiskit%2BSample%2B-%2B3-qubit%2BGHZ%2Bcircuit-122ad3be-5de5-11ec-b449-3c7d0a1d68ec.output.json", + "creationTime": "2021-12-15T20:24:58.2451927+00:00", "beginExecutionTime": + "2021-12-15T20:25:00.467Z", "endExecutionTime": "2021-12-15T20:25:00.476Z", + "cancellationTime": null, "costEstimate": null, "errorData": null, "isCancelling": + false, "tags": [], "access_token": "fake_token"}' + headers: + content-length: + - '1509' + 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, br + Connection: + - keep-alive + User-Agent: + - testapp-azure-quantum-qiskit azsdk-python-quantum/0.0.0.1 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + method: GET + uri: https://eastus.quantum.azure.com/v1.0/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000000 + response: + body: + string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000?sv=PLACEHOLDER&sig=PLACEHOLDER&se=PLACEHOLDER&srt=co&ss=b&sp=racw", + "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/inputData?sv=PLACEHOLDER&sr=b&sig=PLACEHOLDER&se=PLACEHOLDER&sp=r&rscd=attachment%3B%20filename%3DQiskit%2BSample%2B-%2B3-qubit%2BGHZ%2Bcircuit-122ad3be-5de5-11ec-b449-3c7d0a1d68ec.input.json", + "inputDataFormat": "ionq.circuit.v1", "inputParams": {"shots": 500}, "providerId": + "ionq", "target": "ionq.simulator", "metadata": {"qiskit": "True", "name": + "Qiskit Sample - 3-qubit GHZ circuit", "num_qubits": "4", "meas_map": "[0, + 1, 2]"}, "name": "Qiskit Sample - 3-qubit GHZ circuit", "id": "00000000-0000-0000-0000-000000000000", + "status": "Succeeded", "outputDataFormat": "ionq.quantum-results.v1", "outputDataUri": + "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/rawOutputData?sv=PLACEHOLDER&sr=b&sig=PLACEHOLDER&se=PLACEHOLDER&sp=r&rscd=attachment%3B%20filename%3DQiskit%2BSample%2B-%2B3-qubit%2BGHZ%2Bcircuit-122ad3be-5de5-11ec-b449-3c7d0a1d68ec.output.json", + "creationTime": "2021-12-15T20:24:58.2451927+00:00", "beginExecutionTime": + "2021-12-15T20:25:00.467Z", "endExecutionTime": "2021-12-15T20:25:00.476Z", + "cancellationTime": null, "costEstimate": null, "errorData": null, "isCancelling": + false, "tags": [], "access_token": "fake_token"}' + headers: + content-length: + - '1509' + content-type: + - application/json; charset=utf-8 + transfer-encoding: + - chunked + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate, br + Connection: + - keep-alive + User-Agent: + - azsdk-python-storage-blob/12.9.0 Python/3.7.12 (Darwin-21.1.0-x86_64-i386-64bit) + x-ms-date: + - Wed, 15 Dec 2021 20:25:02 GMT + x-ms-range: + - bytes=0-33554431 + x-ms-version: + - '2020-10-02' + method: GET + uri: https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000000/rawOutputData?sv=PLACEHOLDER&sr=b&sig=PLACEHOLDER&se=PLACEHOLDER&sp=r&rscd=attachment%3B%20filename%3DQiskit%2BSample%2B-%2B3-qubit%2BGHZ%2Bcircuit-122ad3be-5de5-11ec-b449-3c7d0a1d68ec.output.json + response: + body: + string: '{"duration": 9282734, "histogram": {"0": 0.25, "7": 0.25, "8": 0.25, + "15": 0.25}, "access_token": "fake_token"}' + headers: + accept-ranges: + - bytes + content-length: + - '71' + content-range: + - bytes 0-70/71 + content-type: + - application/json + x-ms-blob-content-md5: + - XbzyRFphdUnfLPhWeHmaJg== + x-ms-blob-type: + - BlockBlob + x-ms-creation-time: + - Wed, 15 Dec 2021 20:24:58 GMT + x-ms-lease-state: + - available + x-ms-lease-status: + - unlocked + x-ms-server-encrypted: + - 'true' + x-ms-version: + - '2020-10-02' + status: + code: 206 + message: Partial Content +version: 1 diff --git a/azure-quantum/tests/unit/test_plugins.py b/azure-quantum/tests/unit/test_plugins.py index 908a189e6..9a29e9604 100644 --- a/azure-quantum/tests/unit/test_plugins.py +++ b/azure-quantum/tests/unit/test_plugins.py @@ -20,14 +20,14 @@ class TestQiskit(QuantumTestBase): Tests the azure.quantum.target.ionq module. """ - + mock_create_job_id_name = "create_job_id" create_job_id = Job.create_job_id def get_test_job_id(self): return ZERO_UID if self.is_playback \ else Job.create_job_id() - + def _3_qubit_ghz(self): circuit = QuantumCircuit(4, 3) circuit.name = "Qiskit Sample - 3-qubit GHZ circuit" @@ -44,7 +44,30 @@ def _3_qubit_ghz(self): def test_plugins_submit_qiskit_to_ionq(self): circuit = self._3_qubit_ghz() self._test_qiskit_submit_ionq(circuit=circuit, num_shots=500, num_shots_actual=500) - + + @pytest.mark.ionq + @pytest.mark.live_test + def test_plugins_submit_qiskit_circuit_as_list_to_ionq(self): + circuit = self._3_qubit_ghz() + self._test_qiskit_submit_ionq(circuit=[circuit], num_shots=500, num_shots_actual=500) + + @pytest.mark.ionq + @pytest.mark.live_test + def test_plugins_submit_qiskit_multi_circuit_experiment_to_ionq(self): + circuit = self._3_qubit_ghz() + + workspace = self.create_workspace() + provider = AzureQuantumProvider(workspace=workspace) + assert "azure-quantum-qiskit" in provider._workspace.user_agent + backend = provider.get_backend("ionq.simulator") + + with pytest.raises(NotImplementedError) as exc: + backend.run( + circuit=[circuit, circuit], + shots=500 + ) + assert str(exc.value) == "Multi-experiment jobs are not supported!" + @pytest.mark.ionq @pytest.mark.live_test def test_plugins_submit_qiskit_qobj_to_ionq(self): @@ -52,7 +75,7 @@ def test_plugins_submit_qiskit_qobj_to_ionq(self): circuit = self._3_qubit_ghz() qobj = assemble(circuit) self._test_qiskit_submit_ionq(circuit=qobj, num_shots=1024, num_shots_actual=1024) - + def _qiskit_wait_to_complete(self, qiskit_job, provider): job = qiskit_job._azure_job self.pause_recording() @@ -130,7 +153,7 @@ def test_plugins_retrieve_job(self): 'counts': { '000': 250, '111': 250 - }, + }, 'probabilities': { '000': 0.5, '111': 0.5 @@ -140,9 +163,34 @@ def test_plugins_retrieve_job(self): @pytest.mark.honeywell @pytest.mark.live_test def test_plugins_submit_qiskit_to_honeywell(self): - self._test_qiskit_submit_honeywell(num_shots=None) + circuit = self._3_qubit_ghz() + self._test_qiskit_submit_honeywell(circuit=circuit, num_shots=None) + + @pytest.mark.honeywell + @pytest.mark.live_test + def test_plugins_submit_qiskit_circuit_as_list_to_honeywell(self): + circuit = self._3_qubit_ghz() + self._test_qiskit_submit_honeywell(circuit=[circuit], num_shots=None) - def _test_qiskit_submit_honeywell(self, num_shots): + @pytest.mark.ionq + @pytest.mark.live_test + def test_plugins_submit_qiskit_multi_circuit_experiment_to_honeywell(self): + circuit = self._3_qubit_ghz() + + workspace = self.create_workspace() + provider = AzureQuantumProvider(workspace=workspace) + backend = provider.get_backend("honeywell.hqs-lt-s1-apival") + assert "honeywell.hqs-lt-s1-apival" in backend.backend_names + assert backend.backend_names[0] in [t.name for t in workspace.get_targets(provider_id="honeywell")] + + with pytest.raises(NotImplementedError) as exc: + backend.run( + circuit=[circuit, circuit], + shots=None + ) + assert str(exc.value) == "Multi-experiment jobs are not supported!" + + def _test_qiskit_submit_honeywell(self, circuit, num_shots): with unittest.mock.patch.object( Job, @@ -154,12 +202,12 @@ def _test_qiskit_submit_honeywell(self, num_shots): backend = provider.get_backend("honeywell.hqs-lt-s1-apival") assert "honeywell.hqs-lt-s1-apival" in backend.backend_names assert backend.backend_names[0] in [t.name for t in workspace.get_targets(provider_id="honeywell")] - circuit = self._3_qubit_ghz() + qiskit_job = backend.run( circuit=circuit, num_shots=num_shots ) - + # Make sure the job is completed before fetching the results # playback currently does not work for repeated calls # See: https://github.com/microsoft/qdk-python/issues/118