From 73c4f3c03f4f78ca1497886404917d9d1c83115f Mon Sep 17 00:00:00 2001 From: Xinyi Joffre Date: Fri, 3 Oct 2025 23:22:55 -0700 Subject: [PATCH] Deprecate num_shots parameter --- .../azure/quantum/cirq/targets/ionq.py | 2 +- .../azure/quantum/cirq/targets/quantinuum.py | 2 +- azure-quantum/azure/quantum/target/ionq.py | 13 +- .../azure/quantum/target/quantinuum.py | 13 +- azure-quantum/azure/quantum/target/target.py | 30 - ...q_100_shots_with_deprecated_num_shots.yaml | 662 ------------- ..._submit_ionq_with_shots_and_num_shots.yaml | 528 ----------- ..._quantinuum_with_deprecated_num_shots.yaml | 895 ------------------ ...m_with_shots_and_deprecated_num_shots.yaml | 713 -------------- azure-quantum/tests/unit/test_ionq.py | 40 +- azure-quantum/tests/unit/test_qiskit.py | 18 +- azure-quantum/tests/unit/test_quantinuum.py | 37 +- azure-quantum/tests/unit/test_rigetti.py | 12 +- 13 files changed, 21 insertions(+), 2944 deletions(-) delete mode 100644 azure-quantum/tests/unit/recordings/test_job_submit_ionq_100_shots_with_deprecated_num_shots.yaml delete mode 100644 azure-quantum/tests/unit/recordings/test_job_submit_ionq_with_shots_and_num_shots.yaml delete mode 100644 azure-quantum/tests/unit/recordings/test_job_submit_quantinuum_with_deprecated_num_shots.yaml delete mode 100644 azure-quantum/tests/unit/recordings/test_job_submit_quantinuum_with_shots_and_deprecated_num_shots.yaml diff --git a/azure-quantum/azure/quantum/cirq/targets/ionq.py b/azure-quantum/azure/quantum/cirq/targets/ionq.py index 78b012f2f..53a702c5e 100644 --- a/azure-quantum/azure/quantum/cirq/targets/ionq.py +++ b/azure-quantum/azure/quantum/cirq/targets/ionq.py @@ -146,7 +146,7 @@ def submit( azure_job = super().submit( circuit=serialized_program.body, name=name, - num_shots=repetitions, + shots=repetitions, metadata=metadata, **kwargs ) diff --git a/azure-quantum/azure/quantum/cirq/targets/quantinuum.py b/azure-quantum/azure/quantum/cirq/targets/quantinuum.py index 34dd76c57..2a907a1a4 100644 --- a/azure-quantum/azure/quantum/cirq/targets/quantinuum.py +++ b/azure-quantum/azure/quantum/cirq/targets/quantinuum.py @@ -105,7 +105,7 @@ def submit( azure_job = super().submit( circuit=serialized_program, name=name, - num_shots=repetitions, + shots=repetitions, metadata=metadata, **kwargs ) diff --git a/azure-quantum/azure/quantum/target/ionq.py b/azure-quantum/azure/quantum/target/ionq.py index 756e12a19..b79890f19 100644 --- a/azure-quantum/azure/quantum/target/ionq.py +++ b/azure-quantum/azure/quantum/target/ionq.py @@ -5,13 +5,9 @@ from typing import Any, Dict, List from warnings import warn -from azure.quantum.target.target import ( - Target, - _determine_shots_or_deprecated_num_shots, -) from azure.quantum.job.job import Job +from azure.quantum.target.target import Target from azure.quantum.workspace import Workspace -from azure.quantum._client.models import CostEstimate, UsageEvent from typing import Union @@ -91,13 +87,6 @@ def submit( ) if input_params is None: input_params = {} - - num_shots = kwargs.pop("num_shots", None) - - shots = _determine_shots_or_deprecated_num_shots( - shots=shots, - num_shots=num_shots, - ) return super().submit( input_data=input_data, diff --git a/azure-quantum/azure/quantum/target/quantinuum.py b/azure-quantum/azure/quantum/target/quantinuum.py index 4df0fa796..eeb72c767 100644 --- a/azure-quantum/azure/quantum/target/quantinuum.py +++ b/azure-quantum/azure/quantum/target/quantinuum.py @@ -5,13 +5,9 @@ from typing import Any, Dict, Union from warnings import warn -from azure.quantum.target.target import ( - Target, - _determine_shots_or_deprecated_num_shots, -) from azure.quantum.job.job import Job +from azure.quantum.target.target import Target from azure.quantum.workspace import Workspace -from azure.quantum._client.models import CostEstimate, UsageEvent class Quantinuum(Target): @@ -86,13 +82,6 @@ def submit( if input_params is None: input_params = {} - num_shots = kwargs.pop("num_shots", None) - - shots = _determine_shots_or_deprecated_num_shots( - shots=shots, - num_shots=num_shots, - ) - return super().submit( input_data=input_data, name=name, diff --git a/azure-quantum/azure/quantum/target/target.py b/azure-quantum/azure/quantum/target/target.py index d06549094..a9a069fec 100644 --- a/azure-quantum/azure/quantum/target/target.py +++ b/azure-quantum/azure/quantum/target/target.py @@ -390,33 +390,3 @@ def _calculate_qir_module_gate_stats(self, qir_module) -> GateStats: multi_qubit_gates, measurement_gates ) - - -def _determine_shots_or_deprecated_num_shots( - shots: int = None, - num_shots: int = None, -) -> int: - """ - This helper function checks if the deprecated 'num_shots' parameter is specified. - In earlier versions it was possible to pass this parameter to specify shots number for a job, - but now we only check for it for compatibility reasons. - """ - final_shots = None - if shots is not None and num_shots is not None: - warnings.warn( - "Both 'shots' and 'num_shots' parameters were specified. Defaulting to 'shots' parameter. " - "Please, use 'shots' since 'num_shots' will be deprecated.", - category=DeprecationWarning, - ) - final_shots = shots - - elif shots is not None: - final_shots = shots - elif num_shots is not None: - warnings.warn( - "The 'num_shots' parameter will be deprecated. Please, use 'shots' parameter instead.", - category=DeprecationWarning, - ) - final_shots = num_shots - - return final_shots \ No newline at end of file diff --git a/azure-quantum/tests/unit/recordings/test_job_submit_ionq_100_shots_with_deprecated_num_shots.yaml b/azure-quantum/tests/unit/recordings/test_job_submit_ionq_100_shots_with_deprecated_num_shots.yaml deleted file mode 100644 index 3c2fdc26f..000000000 --- a/azure-quantum/tests/unit/recordings/test_job_submit_ionq_100_shots_with_deprecated_num_shots.yaml +++ /dev/null @@ -1,662 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-identity/1.17.1 Python/3.9.19 (Windows-10-10.0.22631-SP0) - method: GET - uri: https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0/.well-known/openid-configuration - response: - body: - string: '{"token_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", - "token_endpoint_auth_methods_supported": ["client_secret_post", "private_key_jwt", - "client_secret_basic"], "jwks_uri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/discovery/v2.0/keys", - "response_modes_supported": ["query", "fragment", "form_post"], "subject_types_supported": - ["pairwise"], "id_token_signing_alg_values_supported": ["RS256"], "response_types_supported": - ["code", "id_token", "code id_token", "id_token token"], "scopes_supported": - ["openid", "profile", "email", "offline_access"], "issuer": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0", - "request_uri_parameter_supported": false, "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", - "authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/authorize", - "device_authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/devicecode", - "http_logout_supported": true, "frontchannel_logout_supported": true, "end_session_endpoint": - "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/logout", - "claims_supported": ["sub", "iss", "cloud_instance_name", "cloud_instance_host_name", - "cloud_graph_host_name", "msgraph_host", "aud", "exp", "iat", "auth_time", - "acr", "nonce", "preferred_username", "name", "tid", "ver", "at_hash", "c_hash", - "email"], "kerberos_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/kerberos", - "tenant_region_scope": "WW", "cloud_instance_name": "microsoftonline.com", - "cloud_graph_host_name": "graph.windows.net", "msgraph_host": "graph.microsoft.com", - "rbac_url": "https://pas.windows.net"}' - headers: - content-length: - - '1826' - content-type: - - application/json; charset=utf-8 - status: - code: 200 - message: OK -- request: - body: client_id=PLACEHOLDER&grant_type=client_credentials&client_assertion=PLACEHOLDER&client_info=1&client_assertion_type=PLACEHOLDER&scope=https%3A%2F%2Fquantum.microsoft.com%2F.default - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '181' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-identity/1.17.1 Python/3.9.19 (Windows-10-10.0.22631-SP0) - x-client-current-telemetry: - - 4|730,2| - x-client-os: - - win32 - x-client-sku: - - MSAL.Python - x-client-ver: - - 1.30.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": 1756429716, "ext_expires_in": - 1756429716, "refresh_in": 31536000, "access_token": "PLACEHOLDER"}' - headers: - content-length: - - '135' - content-type: - - application/json; charset=utf-8 - status: - code: 200 - message: OK -- request: - body: 'b''{"containerName": "job-00000000-0000-0000-0000-000000000001"}''' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '64' - Content-Type: - - application/json - User-Agent: - - azsdk-python-quantum/0.0.1 Python/3.9.20 (Windows-10-10.0.26100-SP0) - x-ms-quantum-api-key: - - PLACEHOLDER - method: POST - uri: https://eastus.quantum.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/storage/sasUri?api-version=2024-10-01-preview&test-sequence-id=1 - response: - body: - string: '{"sasUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001?sv=PLACEHOLDER&ss=b&srt=co&spr=https&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sp=rwlac&sig=PLACEHOLDER"}' - headers: - connection: - - keep-alive - content-length: - - '212' - 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 - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-blob/12.20.0 Python/3.9.20 (Windows-10-10.0.26100-SP0) - x-ms-date: - - Thu, 06 Feb 2025 21:55:13 GMT - x-ms-version: - - '2024-05-04' - method: GET - uri: https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001?restype=container&sv=PLACEHOLDER&ss=b&srt=co&spr=https&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sp=rwlac&sig=PLACEHOLDER - response: - body: - string: "\uFEFFContainerNotFoundThe - specified container does not exist.\nRequestId:9d25c757-c01e-0041-37e1-78cf82000000\nTime:2025-02-06T21:55:14.8849740Z" - headers: - content-length: - - '223' - content-type: - - application/xml - x-ms-version: - - '2024-05-04' - status: - code: 404 - message: The specified container does not exist. -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-blob/12.20.0 Python/3.9.20 (Windows-10-10.0.26100-SP0) - x-ms-date: - - Thu, 06 Feb 2025 21:55:14 GMT - x-ms-version: - - '2024-05-04' - method: PUT - uri: https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001?restype=container&sv=PLACEHOLDER&ss=b&srt=co&spr=https&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sp=rwlac&sig=PLACEHOLDER - response: - body: - string: '' - headers: - content-length: - - '0' - x-ms-version: - - '2024-05-04' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-blob/12.20.0 Python/3.9.20 (Windows-10-10.0.26100-SP0) - x-ms-date: - - Thu, 06 Feb 2025 21:55:14 GMT - x-ms-version: - - '2024-05-04' - method: GET - uri: https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001?restype=container&sv=PLACEHOLDER&ss=b&srt=co&spr=https&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sp=rwlac&sig=PLACEHOLDER - response: - body: - string: '' - headers: - content-length: - - '0' - x-ms-lease-state: - - available - x-ms-lease-status: - - unlocked - x-ms-version: - - '2024-05-04' - status: - code: 200 - message: OK -- request: - body: 'b''{"qubits": 3, "circuit": [{"gate": "h", "target": 0}, {"gate": "cnot", - "control": 0, "target": 1}, {"gate": "cnot", "control": 0, "target": 2}]}''' - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '147' - Content-Type: - - application/octet-stream - User-Agent: - - azsdk-python-storage-blob/12.20.0 Python/3.9.20 (Windows-10-10.0.26100-SP0) - x-ms-blob-type: - - BlockBlob - x-ms-date: - - Thu, 06 Feb 2025 21:55:15 GMT - x-ms-version: - - '2024-05-04' - method: PUT - uri: https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/inputData?sv=PLACEHOLDER&ss=b&srt=co&spr=https&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sp=rwlac&sig=PLACEHOLDER - response: - body: - string: '' - headers: - content-length: - - '0' - x-ms-version: - - '2024-05-04' - status: - code: 201 - message: Created -- request: - body: 'b''{"itemType": "Job", "name": "ionq-3ghz-job", "containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001?sv=PLACEHOLDER&ss=b&srt=co&spr=https&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sp=rwlac&sig=PLACEHOLDER", - "inputDataFormat": "ionq.circuit.v1", "outputDataFormat": "ionq.quantum-results.v1", - "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/inputData", - "providerId": "IonQ", "target": "ionq.simulator", "inputParams": {"shots": 100}}''' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '541' - Content-Type: - - application/json - User-Agent: - - azsdk-python-quantum/0.0.1 Python/3.9.20 (Windows-10-10.0.26100-SP0) - x-ms-quantum-api-key: - - PLACEHOLDER - method: PUT - uri: https://eastus.quantum.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000001?api-version=2024-10-01-preview&test-sequence-id=1 - response: - body: - string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001?sv=PLACEHOLDER&ss=b&srt=co&spr=https&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sp=rwlac&sig=PLACEHOLDER", - "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/inputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=rcw&sig=PLACEHOLDER", - "inputDataFormat": "ionq.circuit.v1", "inputParams": {"shots": 100}, "metadata": - null, "sessionId": null, "status": "Waiting", "jobType": "QuantumComputing", - "outputDataFormat": "ionq.quantum-results.v1", "outputDataUri": "https://mystorage.blob.core.windows.net:443/job-00000000-0000-0000-0000-000000000001/outputData?sv=PLACEHOLDER&ss=b&srt=co&spr=https&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sp=rwlac&sig=PLACEHOLDER", - "beginExecutionTime": null, "cancellationTime": null, "quantumComputingData": - null, "errorData": null, "isCancelling": false, "tags": [], "name": "ionq-3ghz-job", - "id": "00000000-0000-0000-0000-000000000001", "providerId": "ionq", "target": - "ionq.simulator", "creationTime": "2025-02-06T21:55:16.1680848+00:00", "endExecutionTime": - null, "costEstimate": null, "itemType": "Job"}' - headers: - connection: - - keep-alive - content-length: - - '1245' - content-type: - - application/json; charset=utf-8 - transfer-encoding: - - chunked - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-quantum/0.0.1 Python/3.9.20 (Windows-10-10.0.26100-SP0) - x-ms-quantum-api-key: - - PLACEHOLDER - method: GET - uri: https://eastus.quantum.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000001?api-version=2024-10-01-preview&test-sequence-id=1 - response: - body: - string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=c&sp=rcwl&sig=PLACEHOLDER", - "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/inputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dionq-3ghz-job-00000000-0000-0000-0000-000000000001.input.json&sig=PLACEHOLDER", - "inputDataFormat": "ionq.circuit.v1", "inputParams": {"shots": 100}, "metadata": - null, "sessionId": null, "status": "Waiting", "jobType": "QuantumComputing", - "outputDataFormat": "ionq.quantum-results.v1", "outputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/outputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dionq-3ghz-job-00000000-0000-0000-0000-000000000001.output.json&sig=PLACEHOLDER", - "beginExecutionTime": null, "cancellationTime": null, "quantumComputingData": - {"count": 1}, "errorData": null, "isCancelling": false, "tags": [], "name": - "ionq-3ghz-job", "id": "00000000-0000-0000-0000-000000000001", "providerId": - "ionq", "target": "ionq.simulator", "creationTime": "2025-02-06T21:55:16.1680848+00:00", - "endExecutionTime": null, "costEstimate": null, "itemType": "Job"}' - headers: - connection: - - keep-alive - content-length: - - '1393' - content-type: - - application/json; charset=utf-8 - transfer-encoding: - - chunked - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-quantum/0.0.1 Python/3.9.20 (Windows-10-10.0.26100-SP0) - x-ms-quantum-api-key: - - PLACEHOLDER - method: GET - uri: https://eastus.quantum.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000001?api-version=2024-10-01-preview&test-sequence-id=2 - response: - body: - string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=c&sp=rcwl&sig=PLACEHOLDER", - "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/inputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dionq-3ghz-job-00000000-0000-0000-0000-000000000001.input.json&sig=PLACEHOLDER", - "inputDataFormat": "ionq.circuit.v1", "inputParams": {"shots": 100}, "metadata": - null, "sessionId": null, "status": "Waiting", "jobType": "QuantumComputing", - "outputDataFormat": "ionq.quantum-results.v1", "outputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/outputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dionq-3ghz-job-00000000-0000-0000-0000-000000000001.output.json&sig=PLACEHOLDER", - "beginExecutionTime": null, "cancellationTime": null, "quantumComputingData": - {"count": 1}, "errorData": null, "isCancelling": false, "tags": [], "name": - "ionq-3ghz-job", "id": "00000000-0000-0000-0000-000000000001", "providerId": - "ionq", "target": "ionq.simulator", "creationTime": "2025-02-06T21:55:16.1680848+00:00", - "endExecutionTime": null, "costEstimate": null, "itemType": "Job"}' - headers: - connection: - - keep-alive - content-length: - - '1393' - content-type: - - application/json; charset=utf-8 - transfer-encoding: - - chunked - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-quantum/0.0.1 Python/3.9.20 (Windows-10-10.0.26100-SP0) - x-ms-quantum-api-key: - - PLACEHOLDER - method: GET - uri: https://eastus.quantum.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000001?api-version=2024-10-01-preview&test-sequence-id=3 - response: - body: - string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=c&sp=rcwl&sig=PLACEHOLDER", - "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/inputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dionq-3ghz-job-00000000-0000-0000-0000-000000000001.input.json&sig=PLACEHOLDER", - "inputDataFormat": "ionq.circuit.v1", "inputParams": {"shots": 100}, "metadata": - null, "sessionId": null, "status": "Waiting", "jobType": "QuantumComputing", - "outputDataFormat": "ionq.quantum-results.v1", "outputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/outputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dionq-3ghz-job-00000000-0000-0000-0000-000000000001.output.json&sig=PLACEHOLDER", - "beginExecutionTime": null, "cancellationTime": null, "quantumComputingData": - {"count": 1}, "errorData": null, "isCancelling": false, "tags": [], "name": - "ionq-3ghz-job", "id": "00000000-0000-0000-0000-000000000001", "providerId": - "ionq", "target": "ionq.simulator", "creationTime": "2025-02-06T21:55:16.1680848+00:00", - "endExecutionTime": null, "costEstimate": null, "itemType": "Job"}' - headers: - connection: - - keep-alive - content-length: - - '1393' - content-type: - - application/json; charset=utf-8 - transfer-encoding: - - chunked - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-quantum/0.0.1 Python/3.9.20 (Windows-10-10.0.26100-SP0) - x-ms-quantum-api-key: - - PLACEHOLDER - method: GET - uri: https://eastus.quantum.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000001?api-version=2024-10-01-preview&test-sequence-id=4 - response: - body: - string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=c&sp=rcwl&sig=PLACEHOLDER", - "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/inputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dionq-3ghz-job-00000000-0000-0000-0000-000000000001.input.json&sig=PLACEHOLDER", - "inputDataFormat": "ionq.circuit.v1", "inputParams": {"shots": 100}, "metadata": - null, "sessionId": null, "status": "Waiting", "jobType": "QuantumComputing", - "outputDataFormat": "ionq.quantum-results.v1", "outputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/outputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dionq-3ghz-job-00000000-0000-0000-0000-000000000001.output.json&sig=PLACEHOLDER", - "beginExecutionTime": null, "cancellationTime": null, "quantumComputingData": - {"count": 1}, "errorData": null, "isCancelling": false, "tags": [], "name": - "ionq-3ghz-job", "id": "00000000-0000-0000-0000-000000000001", "providerId": - "ionq", "target": "ionq.simulator", "creationTime": "2025-02-06T21:55:16.1680848+00:00", - "endExecutionTime": null, "costEstimate": null, "itemType": "Job"}' - headers: - connection: - - keep-alive - content-length: - - '1393' - content-type: - - application/json; charset=utf-8 - transfer-encoding: - - chunked - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-quantum/0.0.1 Python/3.9.20 (Windows-10-10.0.26100-SP0) - x-ms-quantum-api-key: - - PLACEHOLDER - method: GET - uri: https://eastus.quantum.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000001?api-version=2024-10-01-preview&test-sequence-id=5 - response: - body: - string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=c&sp=rcwl&sig=PLACEHOLDER", - "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/inputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dionq-3ghz-job-00000000-0000-0000-0000-000000000001.input.json&sig=PLACEHOLDER", - "inputDataFormat": "ionq.circuit.v1", "inputParams": {"shots": 100}, "metadata": - null, "sessionId": null, "status": "Waiting", "jobType": "QuantumComputing", - "outputDataFormat": "ionq.quantum-results.v1", "outputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/outputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dionq-3ghz-job-00000000-0000-0000-0000-000000000001.output.json&sig=PLACEHOLDER", - "beginExecutionTime": null, "cancellationTime": null, "quantumComputingData": - {"count": 1}, "errorData": null, "isCancelling": false, "tags": [], "name": - "ionq-3ghz-job", "id": "00000000-0000-0000-0000-000000000001", "providerId": - "ionq", "target": "ionq.simulator", "creationTime": "2025-02-06T21:55:16.1680848+00:00", - "endExecutionTime": null, "costEstimate": null, "itemType": "Job"}' - headers: - connection: - - keep-alive - content-length: - - '1393' - content-type: - - application/json; charset=utf-8 - transfer-encoding: - - chunked - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-quantum/0.0.1 Python/3.9.20 (Windows-10-10.0.26100-SP0) - x-ms-quantum-api-key: - - PLACEHOLDER - method: GET - uri: https://eastus.quantum.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000001?api-version=2024-10-01-preview&test-sequence-id=6 - response: - body: - string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=c&sp=rcwl&sig=PLACEHOLDER", - "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/inputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dionq-3ghz-job-00000000-0000-0000-0000-000000000001.input.json&sig=PLACEHOLDER", - "inputDataFormat": "ionq.circuit.v1", "inputParams": {"shots": 100}, "metadata": - null, "sessionId": null, "status": "Succeeded", "jobType": "QuantumComputing", - "outputDataFormat": "ionq.quantum-results.v1", "outputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/rawOutputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dionq-3ghz-job-00000000-0000-0000-0000-000000000001.output.json&sig=PLACEHOLDER", - "beginExecutionTime": "2025-02-06T21:55:17.918Z", "cancellationTime": null, - "quantumComputingData": {"count": 1}, "errorData": null, "isCancelling": false, - "tags": [], "name": "ionq-3ghz-job", "id": "00000000-0000-0000-0000-000000000001", - "providerId": "ionq", "target": "ionq.simulator", "creationTime": "2025-02-06T21:55:16.1680848+00:00", - "endExecutionTime": "2025-02-06T21:55:17.932Z", "costEstimate": {"currencyCode": - "USD", "events": [{"dimensionId": "gs1q", "dimensionName": "1Q Gate Shot", - "measureUnit": "1q gate shot", "amountBilled": 0.0, "amountConsumed": 0.0, - "unitPrice": 0.0}, {"dimensionId": "gs2q", "dimensionName": "2Q Gate Shot", - "measureUnit": "2q gate shot", "amountBilled": 0.0, "amountConsumed": 0.0, - "unitPrice": 0.0}], "estimatedTotal": 0.0}, "itemType": "Job"}' - headers: - connection: - - keep-alive - content-length: - - '1798' - content-type: - - application/json; charset=utf-8 - transfer-encoding: - - chunked - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-quantum/0.0.1 Python/3.9.20 (Windows-10-10.0.26100-SP0) - x-ms-quantum-api-key: - - PLACEHOLDER - method: GET - uri: https://eastus.quantum.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000001?api-version=2024-10-01-preview&test-sequence-id=7 - response: - body: - string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=c&sp=rcwl&sig=PLACEHOLDER", - "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/inputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dionq-3ghz-job-00000000-0000-0000-0000-000000000001.input.json&sig=PLACEHOLDER", - "inputDataFormat": "ionq.circuit.v1", "inputParams": {"shots": 100}, "metadata": - null, "sessionId": null, "status": "Succeeded", "jobType": "QuantumComputing", - "outputDataFormat": "ionq.quantum-results.v1", "outputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/rawOutputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dionq-3ghz-job-00000000-0000-0000-0000-000000000001.output.json&sig=PLACEHOLDER", - "beginExecutionTime": "2025-02-06T21:55:17.918Z", "cancellationTime": null, - "quantumComputingData": {"count": 1}, "errorData": null, "isCancelling": false, - "tags": [], "name": "ionq-3ghz-job", "id": "00000000-0000-0000-0000-000000000001", - "providerId": "ionq", "target": "ionq.simulator", "creationTime": "2025-02-06T21:55:16.1680848+00:00", - "endExecutionTime": "2025-02-06T21:55:17.932Z", "costEstimate": {"currencyCode": - "USD", "events": [{"dimensionId": "gs1q", "dimensionName": "1Q Gate Shot", - "measureUnit": "1q gate shot", "amountBilled": 0.0, "amountConsumed": 0.0, - "unitPrice": 0.0}, {"dimensionId": "gs2q", "dimensionName": "2Q Gate Shot", - "measureUnit": "2q gate shot", "amountBilled": 0.0, "amountConsumed": 0.0, - "unitPrice": 0.0}], "estimatedTotal": 0.0}, "itemType": "Job"}' - headers: - connection: - - keep-alive - content-length: - - '1798' - content-type: - - application/json; charset=utf-8 - transfer-encoding: - - chunked - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-quantum/0.0.1 Python/3.9.20 (Windows-10-10.0.26100-SP0) - x-ms-quantum-api-key: - - PLACEHOLDER - method: GET - uri: https://eastus.quantum.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000001?api-version=2024-10-01-preview&test-sequence-id=8 - response: - body: - string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=c&sp=rcwl&sig=PLACEHOLDER", - "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/inputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dionq-3ghz-job-00000000-0000-0000-0000-000000000001.input.json&sig=PLACEHOLDER", - "inputDataFormat": "ionq.circuit.v1", "inputParams": {"shots": 100}, "metadata": - null, "sessionId": null, "status": "Succeeded", "jobType": "QuantumComputing", - "outputDataFormat": "ionq.quantum-results.v1", "outputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/rawOutputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dionq-3ghz-job-00000000-0000-0000-0000-000000000001.output.json&sig=PLACEHOLDER", - "beginExecutionTime": "2025-02-06T21:55:17.918Z", "cancellationTime": null, - "quantumComputingData": {"count": 1}, "errorData": null, "isCancelling": false, - "tags": [], "name": "ionq-3ghz-job", "id": "00000000-0000-0000-0000-000000000001", - "providerId": "ionq", "target": "ionq.simulator", "creationTime": "2025-02-06T21:55:16.1680848+00:00", - "endExecutionTime": "2025-02-06T21:55:17.932Z", "costEstimate": {"currencyCode": - "USD", "events": [{"dimensionId": "gs1q", "dimensionName": "1Q Gate Shot", - "measureUnit": "1q gate shot", "amountBilled": 0.0, "amountConsumed": 0.0, - "unitPrice": 0.0}, {"dimensionId": "gs2q", "dimensionName": "2Q Gate Shot", - "measureUnit": "2q gate shot", "amountBilled": 0.0, "amountConsumed": 0.0, - "unitPrice": 0.0}], "estimatedTotal": 0.0}, "itemType": "Job"}' - headers: - connection: - - keep-alive - content-length: - - '1798' - 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 - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-blob/12.20.0 Python/3.9.20 (Windows-10-10.0.26100-SP0) - x-ms-date: - - Thu, 06 Feb 2025 21:55:20 GMT - x-ms-range: - - bytes=0-33554431 - x-ms-version: - - '2024-05-04' - method: GET - uri: https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/rawOutputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B%20filename%3Dionq-3ghz-job-00000000-0000-0000-0000-000000000001.output.json&sig=PLACEHOLDER - response: - body: - string: '{"histogram": {"0": 0.5, "7": 0.5}}' - headers: - accept-ranges: - - bytes - content-length: - - '35' - content-range: - - bytes 0-46/47 - content-type: - - application/json - x-ms-blob-type: - - BlockBlob - x-ms-creation-time: - - Thu, 06 Feb 2025 21:55:16 GMT - x-ms-lease-state: - - available - x-ms-lease-status: - - unlocked - x-ms-server-encrypted: - - 'true' - x-ms-version: - - '2024-05-04' - status: - code: 206 - message: Partial Content -version: 1 diff --git a/azure-quantum/tests/unit/recordings/test_job_submit_ionq_with_shots_and_num_shots.yaml b/azure-quantum/tests/unit/recordings/test_job_submit_ionq_with_shots_and_num_shots.yaml deleted file mode 100644 index ad98fe894..000000000 --- a/azure-quantum/tests/unit/recordings/test_job_submit_ionq_with_shots_and_num_shots.yaml +++ /dev/null @@ -1,528 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-identity/1.17.1 Python/3.9.19 (Windows-10-10.0.22631-SP0) - method: GET - uri: https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0/.well-known/openid-configuration - response: - body: - string: '{"token_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", - "token_endpoint_auth_methods_supported": ["client_secret_post", "private_key_jwt", - "client_secret_basic"], "jwks_uri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/discovery/v2.0/keys", - "response_modes_supported": ["query", "fragment", "form_post"], "subject_types_supported": - ["pairwise"], "id_token_signing_alg_values_supported": ["RS256"], "response_types_supported": - ["code", "id_token", "code id_token", "id_token token"], "scopes_supported": - ["openid", "profile", "email", "offline_access"], "issuer": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0", - "request_uri_parameter_supported": false, "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", - "authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/authorize", - "device_authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/devicecode", - "http_logout_supported": true, "frontchannel_logout_supported": true, "end_session_endpoint": - "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/logout", - "claims_supported": ["sub", "iss", "cloud_instance_name", "cloud_instance_host_name", - "cloud_graph_host_name", "msgraph_host", "aud", "exp", "iat", "auth_time", - "acr", "nonce", "preferred_username", "name", "tid", "ver", "at_hash", "c_hash", - "email"], "kerberos_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/kerberos", - "tenant_region_scope": "WW", "cloud_instance_name": "microsoftonline.com", - "cloud_graph_host_name": "graph.windows.net", "msgraph_host": "graph.microsoft.com", - "rbac_url": "https://pas.windows.net"}' - headers: - content-length: - - '1826' - content-type: - - application/json; charset=utf-8 - status: - code: 200 - message: OK -- request: - body: client_id=PLACEHOLDER&grant_type=client_credentials&client_assertion=PLACEHOLDER&client_info=1&client_assertion_type=PLACEHOLDER&scope=https%3A%2F%2Fquantum.microsoft.com%2F.default - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '181' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-identity/1.17.1 Python/3.9.19 (Windows-10-10.0.22631-SP0) - x-client-current-telemetry: - - 4|730,2| - x-client-os: - - win32 - x-client-sku: - - MSAL.Python - x-client-ver: - - 1.30.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": 1756429716, "ext_expires_in": - 1756429716, "refresh_in": 31536000, "access_token": "PLACEHOLDER"}' - headers: - content-length: - - '135' - content-type: - - application/json; charset=utf-8 - status: - code: 200 - message: OK -- request: - body: 'b''{"containerName": "job-00000000-0000-0000-0000-000000000001"}''' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '64' - Content-Type: - - application/json - User-Agent: - - azsdk-python-quantum/0.0.1 Python/3.9.20 (Windows-10-10.0.26100-SP0) - x-ms-quantum-api-key: - - PLACEHOLDER - method: POST - uri: https://eastus.quantum.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/storage/sasUri?api-version=2024-10-01-preview&test-sequence-id=1 - response: - body: - string: '{"sasUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001?sv=PLACEHOLDER&ss=b&srt=co&spr=https&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sp=rwlac&sig=PLACEHOLDER"}' - headers: - connection: - - keep-alive - content-length: - - '212' - 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 - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-blob/12.20.0 Python/3.9.20 (Windows-10-10.0.26100-SP0) - x-ms-date: - - Thu, 06 Feb 2025 21:55:32 GMT - x-ms-version: - - '2024-05-04' - method: GET - uri: https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001?restype=container&sv=PLACEHOLDER&ss=b&srt=co&spr=https&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sp=rwlac&sig=PLACEHOLDER - response: - body: - string: "\uFEFFContainerNotFoundThe - specified container does not exist.\nRequestId:9ca1f211-801e-008b-3ce1-78930b000000\nTime:2025-02-06T21:55:33.6080432Z" - headers: - content-length: - - '223' - content-type: - - application/xml - x-ms-version: - - '2024-05-04' - status: - code: 404 - message: The specified container does not exist. -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-blob/12.20.0 Python/3.9.20 (Windows-10-10.0.26100-SP0) - x-ms-date: - - Thu, 06 Feb 2025 21:55:33 GMT - x-ms-version: - - '2024-05-04' - method: PUT - uri: https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001?restype=container&sv=PLACEHOLDER&ss=b&srt=co&spr=https&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sp=rwlac&sig=PLACEHOLDER - response: - body: - string: '' - headers: - content-length: - - '0' - x-ms-version: - - '2024-05-04' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-blob/12.20.0 Python/3.9.20 (Windows-10-10.0.26100-SP0) - x-ms-date: - - Thu, 06 Feb 2025 21:55:33 GMT - x-ms-version: - - '2024-05-04' - method: GET - uri: https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001?restype=container&sv=PLACEHOLDER&ss=b&srt=co&spr=https&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sp=rwlac&sig=PLACEHOLDER - response: - body: - string: '' - headers: - content-length: - - '0' - x-ms-lease-state: - - available - x-ms-lease-status: - - unlocked - x-ms-version: - - '2024-05-04' - status: - code: 200 - message: OK -- request: - body: 'b''{"qubits": 3, "circuit": [{"gate": "h", "target": 0}, {"gate": "cnot", - "control": 0, "target": 1}, {"gate": "cnot", "control": 0, "target": 2}]}''' - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '147' - Content-Type: - - application/octet-stream - User-Agent: - - azsdk-python-storage-blob/12.20.0 Python/3.9.20 (Windows-10-10.0.26100-SP0) - x-ms-blob-type: - - BlockBlob - x-ms-date: - - Thu, 06 Feb 2025 21:55:34 GMT - x-ms-version: - - '2024-05-04' - method: PUT - uri: https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/inputData?sv=PLACEHOLDER&ss=b&srt=co&spr=https&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sp=rwlac&sig=PLACEHOLDER - response: - body: - string: '' - headers: - content-length: - - '0' - x-ms-version: - - '2024-05-04' - status: - code: 201 - message: Created -- request: - body: 'b''{"itemType": "Job", "name": "ionq-job", "containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001?sv=PLACEHOLDER&ss=b&srt=co&spr=https&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sp=rwlac&sig=PLACEHOLDER", - "inputDataFormat": "ionq.circuit.v1", "outputDataFormat": "ionq.quantum-results.v1", - "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/inputData", - "providerId": "IonQ", "target": "ionq.simulator", "inputParams": {"shots": 100}}''' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '536' - Content-Type: - - application/json - User-Agent: - - azsdk-python-quantum/0.0.1 Python/3.9.20 (Windows-10-10.0.26100-SP0) - x-ms-quantum-api-key: - - PLACEHOLDER - method: PUT - uri: https://eastus.quantum.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000001?api-version=2024-10-01-preview&test-sequence-id=1 - response: - body: - string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001?sv=PLACEHOLDER&ss=b&srt=co&spr=https&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sp=rwlac&sig=PLACEHOLDER", - "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/inputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=rcw&sig=PLACEHOLDER", - "inputDataFormat": "ionq.circuit.v1", "inputParams": {"shots": 100}, "metadata": - null, "sessionId": null, "status": "Waiting", "jobType": "QuantumComputing", - "outputDataFormat": "ionq.quantum-results.v1", "outputDataUri": "https://mystorage.blob.core.windows.net:443/job-00000000-0000-0000-0000-000000000001/outputData?sv=PLACEHOLDER&ss=b&srt=co&spr=https&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sp=rwlac&sig=PLACEHOLDER", - "beginExecutionTime": null, "cancellationTime": null, "quantumComputingData": - null, "errorData": null, "isCancelling": false, "tags": [], "name": "ionq-job", - "id": "00000000-0000-0000-0000-000000000001", "providerId": "ionq", "target": - "ionq.simulator", "creationTime": "2025-02-06T21:55:34.8279503+00:00", "endExecutionTime": - null, "costEstimate": null, "itemType": "Job"}' - headers: - connection: - - keep-alive - content-length: - - '1240' - content-type: - - application/json; charset=utf-8 - transfer-encoding: - - chunked - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-quantum/0.0.1 Python/3.9.20 (Windows-10-10.0.26100-SP0) - x-ms-quantum-api-key: - - PLACEHOLDER - method: GET - uri: https://eastus.quantum.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000001?api-version=2024-10-01-preview&test-sequence-id=1 - response: - body: - string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=c&sp=rcwl&sig=PLACEHOLDER", - "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/inputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dionq-job-00000000-0000-0000-0000-000000000001.input.json&sig=PLACEHOLDER", - "inputDataFormat": "ionq.circuit.v1", "inputParams": {"shots": 100}, "metadata": - null, "sessionId": null, "status": "Waiting", "jobType": "QuantumComputing", - "outputDataFormat": "ionq.quantum-results.v1", "outputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/outputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dionq-job-00000000-0000-0000-0000-000000000001.output.json&sig=PLACEHOLDER", - "beginExecutionTime": null, "cancellationTime": null, "quantumComputingData": - {"count": 1}, "errorData": null, "isCancelling": false, "tags": [], "name": - "ionq-job", "id": "00000000-0000-0000-0000-000000000001", "providerId": "ionq", - "target": "ionq.simulator", "creationTime": "2025-02-06T21:55:34.8279503+00:00", - "endExecutionTime": null, "costEstimate": null, "itemType": "Job"}' - headers: - connection: - - keep-alive - content-length: - - '1378' - content-type: - - application/json; charset=utf-8 - transfer-encoding: - - chunked - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-quantum/0.0.1 Python/3.9.20 (Windows-10-10.0.26100-SP0) - x-ms-quantum-api-key: - - PLACEHOLDER - method: GET - uri: https://eastus.quantum.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000001?api-version=2024-10-01-preview&test-sequence-id=2 - response: - body: - string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=c&sp=rcwl&sig=PLACEHOLDER", - "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/inputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dionq-job-00000000-0000-0000-0000-000000000001.input.json&sig=PLACEHOLDER", - "inputDataFormat": "ionq.circuit.v1", "inputParams": {"shots": 100}, "metadata": - null, "sessionId": null, "status": "Waiting", "jobType": "QuantumComputing", - "outputDataFormat": "ionq.quantum-results.v1", "outputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/outputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dionq-job-00000000-0000-0000-0000-000000000001.output.json&sig=PLACEHOLDER", - "beginExecutionTime": null, "cancellationTime": null, "quantumComputingData": - {"count": 1}, "errorData": null, "isCancelling": false, "tags": [], "name": - "ionq-job", "id": "00000000-0000-0000-0000-000000000001", "providerId": "ionq", - "target": "ionq.simulator", "creationTime": "2025-02-06T21:55:34.8279503+00:00", - "endExecutionTime": null, "costEstimate": null, "itemType": "Job"}' - headers: - connection: - - keep-alive - content-length: - - '1378' - content-type: - - application/json; charset=utf-8 - transfer-encoding: - - chunked - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-quantum/0.0.1 Python/3.9.20 (Windows-10-10.0.26100-SP0) - x-ms-quantum-api-key: - - PLACEHOLDER - method: GET - uri: https://eastus.quantum.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000001?api-version=2024-10-01-preview&test-sequence-id=3 - response: - body: - string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=c&sp=rcwl&sig=PLACEHOLDER", - "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/inputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dionq-job-00000000-0000-0000-0000-000000000001.input.json&sig=PLACEHOLDER", - "inputDataFormat": "ionq.circuit.v1", "inputParams": {"shots": 100}, "metadata": - null, "sessionId": null, "status": "Waiting", "jobType": "QuantumComputing", - "outputDataFormat": "ionq.quantum-results.v1", "outputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/outputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dionq-job-00000000-0000-0000-0000-000000000001.output.json&sig=PLACEHOLDER", - "beginExecutionTime": null, "cancellationTime": null, "quantumComputingData": - {"count": 1}, "errorData": null, "isCancelling": false, "tags": [], "name": - "ionq-job", "id": "00000000-0000-0000-0000-000000000001", "providerId": "ionq", - "target": "ionq.simulator", "creationTime": "2025-02-06T21:55:34.8279503+00:00", - "endExecutionTime": null, "costEstimate": null, "itemType": "Job"}' - headers: - connection: - - keep-alive - content-length: - - '1378' - content-type: - - application/json; charset=utf-8 - transfer-encoding: - - chunked - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-quantum/0.0.1 Python/3.9.20 (Windows-10-10.0.26100-SP0) - x-ms-quantum-api-key: - - PLACEHOLDER - method: GET - uri: https://eastus.quantum.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000001?api-version=2024-10-01-preview&test-sequence-id=4 - response: - body: - string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=c&sp=rcwl&sig=PLACEHOLDER", - "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/inputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dionq-job-00000000-0000-0000-0000-000000000001.input.json&sig=PLACEHOLDER", - "inputDataFormat": "ionq.circuit.v1", "inputParams": {"shots": 100}, "metadata": - null, "sessionId": null, "status": "Waiting", "jobType": "QuantumComputing", - "outputDataFormat": "ionq.quantum-results.v1", "outputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/outputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dionq-job-00000000-0000-0000-0000-000000000001.output.json&sig=PLACEHOLDER", - "beginExecutionTime": null, "cancellationTime": null, "quantumComputingData": - {"count": 1}, "errorData": null, "isCancelling": false, "tags": [], "name": - "ionq-job", "id": "00000000-0000-0000-0000-000000000001", "providerId": "ionq", - "target": "ionq.simulator", "creationTime": "2025-02-06T21:55:34.8279503+00:00", - "endExecutionTime": null, "costEstimate": null, "itemType": "Job"}' - headers: - connection: - - keep-alive - content-length: - - '1378' - content-type: - - application/json; charset=utf-8 - transfer-encoding: - - chunked - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-quantum/0.0.1 Python/3.9.20 (Windows-10-10.0.26100-SP0) - x-ms-quantum-api-key: - - PLACEHOLDER - method: GET - uri: https://eastus.quantum.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000001?api-version=2024-10-01-preview&test-sequence-id=5 - response: - body: - string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=c&sp=rcwl&sig=PLACEHOLDER", - "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/inputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dionq-job-00000000-0000-0000-0000-000000000001.input.json&sig=PLACEHOLDER", - "inputDataFormat": "ionq.circuit.v1", "inputParams": {"shots": 100}, "metadata": - null, "sessionId": null, "status": "Waiting", "jobType": "QuantumComputing", - "outputDataFormat": "ionq.quantum-results.v1", "outputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/outputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dionq-job-00000000-0000-0000-0000-000000000001.output.json&sig=PLACEHOLDER", - "beginExecutionTime": null, "cancellationTime": null, "quantumComputingData": - {"count": 1}, "errorData": null, "isCancelling": false, "tags": [], "name": - "ionq-job", "id": "00000000-0000-0000-0000-000000000001", "providerId": "ionq", - "target": "ionq.simulator", "creationTime": "2025-02-06T21:55:34.8279503+00:00", - "endExecutionTime": null, "costEstimate": null, "itemType": "Job"}' - headers: - connection: - - keep-alive - content-length: - - '1378' - content-type: - - application/json; charset=utf-8 - transfer-encoding: - - chunked - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-quantum/0.0.1 Python/3.9.20 (Windows-10-10.0.26100-SP0) - x-ms-quantum-api-key: - - PLACEHOLDER - method: GET - uri: https://eastus.quantum.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000001?api-version=2024-10-01-preview&test-sequence-id=6 - response: - body: - string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=c&sp=rcwl&sig=PLACEHOLDER", - "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/inputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dionq-job-00000000-0000-0000-0000-000000000001.input.json&sig=PLACEHOLDER", - "inputDataFormat": "ionq.circuit.v1", "inputParams": {"shots": 100}, "metadata": - null, "sessionId": null, "status": "Succeeded", "jobType": "QuantumComputing", - "outputDataFormat": "ionq.quantum-results.v1", "outputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/rawOutputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dionq-job-00000000-0000-0000-0000-000000000001.output.json&sig=PLACEHOLDER", - "beginExecutionTime": "2025-02-06T21:55:36.429Z", "cancellationTime": null, - "quantumComputingData": {"count": 1}, "errorData": null, "isCancelling": false, - "tags": [], "name": "ionq-job", "id": "00000000-0000-0000-0000-000000000001", - "providerId": "ionq", "target": "ionq.simulator", "creationTime": "2025-02-06T21:55:34.8279503+00:00", - "endExecutionTime": "2025-02-06T21:55:36.441Z", "costEstimate": {"currencyCode": - "USD", "events": [{"dimensionId": "gs1q", "dimensionName": "1Q Gate Shot", - "measureUnit": "1q gate shot", "amountBilled": 0.0, "amountConsumed": 0.0, - "unitPrice": 0.0}, {"dimensionId": "gs2q", "dimensionName": "2Q Gate Shot", - "measureUnit": "2q gate shot", "amountBilled": 0.0, "amountConsumed": 0.0, - "unitPrice": 0.0}], "estimatedTotal": 0.0}, "itemType": "Job"}' - headers: - connection: - - keep-alive - content-length: - - '1783' - content-type: - - application/json; charset=utf-8 - transfer-encoding: - - chunked - status: - code: 200 - message: OK -version: 1 diff --git a/azure-quantum/tests/unit/recordings/test_job_submit_quantinuum_with_deprecated_num_shots.yaml b/azure-quantum/tests/unit/recordings/test_job_submit_quantinuum_with_deprecated_num_shots.yaml deleted file mode 100644 index c8726a2d5..000000000 --- a/azure-quantum/tests/unit/recordings/test_job_submit_quantinuum_with_deprecated_num_shots.yaml +++ /dev/null @@ -1,895 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-identity/1.17.1 Python/3.9.19 (Windows-10-10.0.22631-SP0) - method: GET - uri: https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0/.well-known/openid-configuration - response: - body: - string: '{"token_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", - "token_endpoint_auth_methods_supported": ["client_secret_post", "private_key_jwt", - "client_secret_basic"], "jwks_uri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/discovery/v2.0/keys", - "response_modes_supported": ["query", "fragment", "form_post"], "subject_types_supported": - ["pairwise"], "id_token_signing_alg_values_supported": ["RS256"], "response_types_supported": - ["code", "id_token", "code id_token", "id_token token"], "scopes_supported": - ["openid", "profile", "email", "offline_access"], "issuer": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0", - "request_uri_parameter_supported": false, "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", - "authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/authorize", - "device_authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/devicecode", - "http_logout_supported": true, "frontchannel_logout_supported": true, "end_session_endpoint": - "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/logout", - "claims_supported": ["sub", "iss", "cloud_instance_name", "cloud_instance_host_name", - "cloud_graph_host_name", "msgraph_host", "aud", "exp", "iat", "auth_time", - "acr", "nonce", "preferred_username", "name", "tid", "ver", "at_hash", "c_hash", - "email"], "kerberos_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/kerberos", - "tenant_region_scope": "WW", "cloud_instance_name": "microsoftonline.com", - "cloud_graph_host_name": "graph.windows.net", "msgraph_host": "graph.microsoft.com", - "rbac_url": "https://pas.windows.net"}' - headers: - content-length: - - '1826' - content-type: - - application/json; charset=utf-8 - status: - code: 200 - message: OK -- request: - body: client_id=PLACEHOLDER&grant_type=client_credentials&client_assertion=PLACEHOLDER&client_info=1&client_assertion_type=PLACEHOLDER&scope=https%3A%2F%2Fquantum.microsoft.com%2F.default - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '181' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-identity/1.17.1 Python/3.9.19 (Windows-10-10.0.22631-SP0) - x-client-current-telemetry: - - 4|730,2| - x-client-os: - - win32 - x-client-sku: - - MSAL.Python - x-client-ver: - - 1.30.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": 1756450181, "ext_expires_in": - 1756450181, "refresh_in": 31536000, "access_token": "PLACEHOLDER"}' - headers: - content-length: - - '135' - content-type: - - application/json; charset=utf-8 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - testapp azsdk-python-quantum/0.0.1 Python/3.9.19 (Windows-10-10.0.22631-SP0) - method: GET - uri: https://eastus.quantum.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/providerStatus?api-version=2024-10-01-preview&test-sequence-id=1 - response: - body: - string: '{"value": [{"id": "ionq", "currentAvailability": "Degraded", - "targets": [{"id": "ionq.qpu", "currentAvailability": "Unavailable", "averageQueueTime": - 0, "statusPage": null}, {"id": "ionq.qpu.aria-1", "currentAvailability": "Available", - "averageQueueTime": 3274919, "statusPage": "https://status.ionq.co"}, {"id": - "ionq.qpu.aria-2", "currentAvailability": "Unavailable", "averageQueueTime": - 2556777, "statusPage": "https://status.ionq.co"}, {"id": "ionq.simulator", - "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": "https://status.ionq.co"}]}, - {"id": "microsoft-qc", "currentAvailability": "Available", "targets": [{"id": - "microsoft.estimator", "currentAvailability": "Available", "averageQueueTime": - 0, "statusPage": null}]}, {"id": "pasqal", "currentAvailability": "Degraded", - "targets": [{"id": "pasqal.sim.emu-tn", "currentAvailability": "Available", - "averageQueueTime": 273, "statusPage": "https://pasqal.com"}, {"id": "pasqal.qpu.fresnel", - "currentAvailability": "Degraded", "averageQueueTime": 0, "statusPage": "https://pasqal.com"}]}, - {"id": "quantinuum", "currentAvailability": "Available", "targets": [{"id": - "quantinuum.qpu.h1-1", "currentAvailability": "Available", "averageQueueTime": - 48526, "statusPage": "https://www.quantinuum.com/hardware/h1"}, {"id": "quantinuum.sim.h1-1sc", - "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": "https://www.quantinuum.com/hardware/h1"}, - {"id": "quantinuum.sim.h1-1e", "currentAvailability": "Available", "averageQueueTime": - 10, "statusPage": "https://www.quantinuum.com/hardware/h1"}, {"id": "quantinuum.qpu.h2-1", - "currentAvailability": "Available", "averageQueueTime": 134417, "statusPage": - "https://www.quantinuum.com/hardware/h2"}, {"id": "quantinuum.sim.h2-1sc", - "currentAvailability": "Available", "averageQueueTime": 2, "statusPage": "https://www.quantinuum.com/hardware/h2"}, - {"id": "quantinuum.sim.h2-1e", "currentAvailability": "Available", "averageQueueTime": - 53521, "statusPage": "https://www.quantinuum.com/hardware/h2"}, {"id": "quantinuum.sim.h1-1sc-preview", - "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": "https://www.quantinuum.com/hardware/h1"}, - {"id": "quantinuum.sim.h1-1e-preview", "currentAvailability": "Available", - "averageQueueTime": 10, "statusPage": "https://www.quantinuum.com/hardware/h1"}, - {"id": "quantinuum.sim.h1-2e-preview", "currentAvailability": "Available", - "averageQueueTime": 0, "statusPage": "https://www.quantinuum.com/hardware/h1"}, - {"id": "quantinuum.qpu.h1-1-preview", "currentAvailability": "Available", - "averageQueueTime": 48526, "statusPage": "https://www.quantinuum.com/hardware/h1"}]}, - {"id": "rigetti", "currentAvailability": "Available", "targets": [{"id": "rigetti.sim.qvm", - "currentAvailability": "Available", "averageQueueTime": 5, "statusPage": "https://rigetti.statuspage.io/"}, - {"id": "rigetti.qpu.ankaa-2", "currentAvailability": "Available", "averageQueueTime": - 5, "statusPage": "https://rigetti.statuspage.io/"}]}, {"id": "qci", "currentAvailability": - "Degraded", "targets": [{"id": "qci.simulator", "currentAvailability": "Available", - "averageQueueTime": 1, "statusPage": "https://quantumcircuits.com"}, {"id": - "qci.machine1", "currentAvailability": "Unavailable", "averageQueueTime": - 1, "statusPage": "https://quantumcircuits.com"}, {"id": "qci.simulator.noisy", - "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": "https://quantumcircuits.com"}]}, - {"id": "Microsoft.Test", "currentAvailability": "Available", "targets": [{"id": - "echo-rigetti", "currentAvailability": "Available", "averageQueueTime": 1, - "statusPage": ""}, {"id": "echo-quantinuum", "currentAvailability": "Available", - "averageQueueTime": 1, "statusPage": ""}, {"id": "echo-qci", "currentAvailability": - "Available", "averageQueueTime": 1, "statusPage": ""}, {"id": "echo-ionq", - "currentAvailability": "Available", "averageQueueTime": 1, "statusPage": ""}, - {"id": "echo-aquarius", "currentAvailability": "Available", "averageQueueTime": - 1, "statusPage": ""}, {"id": "sparse-sim-rigetti", "currentAvailability": - "Available", "averageQueueTime": 1, "statusPage": ""}, {"id": "sparse-sim-quantinuum", - "currentAvailability": "Available", "averageQueueTime": 1, "statusPage": ""}, - {"id": "sparse-sim-qci", "currentAvailability": "Available", "averageQueueTime": - 1, "statusPage": ""}, {"id": "sparse-sim-ionq", "currentAvailability": "Available", - "averageQueueTime": 1, "statusPage": ""}, {"id": "echo-output", "currentAvailability": - "Available", "averageQueueTime": 1, "statusPage": ""}]}], "nextLink": null}' - headers: - connection: - - keep-alive - content-length: - - '4757' - content-type: - - application/json; charset=utf-8 - transfer-encoding: - - chunked - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-identity/1.17.1 Python/3.9.19 (Windows-10-10.0.22631-SP0) - method: GET - uri: https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0/.well-known/openid-configuration - response: - body: - string: '{"token_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", - "token_endpoint_auth_methods_supported": ["client_secret_post", "private_key_jwt", - "client_secret_basic"], "jwks_uri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/discovery/v2.0/keys", - "response_modes_supported": ["query", "fragment", "form_post"], "subject_types_supported": - ["pairwise"], "id_token_signing_alg_values_supported": ["RS256"], "response_types_supported": - ["code", "id_token", "code id_token", "id_token token"], "scopes_supported": - ["openid", "profile", "email", "offline_access"], "issuer": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0", - "request_uri_parameter_supported": false, "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", - "authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/authorize", - "device_authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/devicecode", - "http_logout_supported": true, "frontchannel_logout_supported": true, "end_session_endpoint": - "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/logout", - "claims_supported": ["sub", "iss", "cloud_instance_name", "cloud_instance_host_name", - "cloud_graph_host_name", "msgraph_host", "aud", "exp", "iat", "auth_time", - "acr", "nonce", "preferred_username", "name", "tid", "ver", "at_hash", "c_hash", - "email"], "kerberos_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/kerberos", - "tenant_region_scope": "WW", "cloud_instance_name": "microsoftonline.com", - "cloud_graph_host_name": "graph.windows.net", "msgraph_host": "graph.microsoft.com", - "rbac_url": "https://pas.windows.net"}' - headers: - content-length: - - '1826' - content-type: - - application/json; charset=utf-8 - status: - code: 200 - message: OK -- request: - body: client_id=PLACEHOLDER&grant_type=client_credentials&client_assertion=PLACEHOLDER&client_info=1&client_assertion_type=PLACEHOLDER&scope=https%3A%2F%2Fquantum.microsoft.com%2F.default - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '181' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-identity/1.17.1 Python/3.9.19 (Windows-10-10.0.22631-SP0) - x-client-current-telemetry: - - 4|730,2| - x-client-os: - - win32 - x-client-sku: - - MSAL.Python - x-client-ver: - - 1.30.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": 1756450181, "ext_expires_in": - 1756450181, "refresh_in": 31536000, "access_token": "PLACEHOLDER"}' - headers: - content-length: - - '135' - content-type: - - application/json; charset=utf-8 - status: - code: 200 - message: OK -- request: - body: 'b''{"containerName": "job-00000000-0000-0000-0000-000000000001"}''' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '64' - Content-Type: - - application/json - User-Agent: - - azsdk-python-quantum/0.0.1 Python/3.9.19 (Windows-10-10.0.22631-SP0) - method: POST - uri: https://eastus.quantum.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/storage/sasUri?api-version=2024-10-01-preview&test-sequence-id=1 - response: - body: - string: '{"sasUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001?sv=PLACEHOLDER&ss=b&srt=co&spr=https&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sp=rwlac&sig=PLACEHOLDER"}' - headers: - connection: - - keep-alive - content-length: - - '212' - 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 - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-blob/12.20.0 Python/3.9.19 (Windows-10-10.0.22631-SP0) - x-ms-date: - - Thu, 29 Aug 2024 06:49:42 GMT - x-ms-version: - - '2024-05-04' - method: GET - uri: https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001?restype=container&sv=PLACEHOLDER&ss=b&srt=co&spr=https&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sp=rwlac&sig=PLACEHOLDER - response: - body: - string: "\uFEFFContainerNotFoundThe - specified container does not exist.\nRequestId:3ab46c5f-401e-004d-06df-f98c86000000\nTime:2024-08-29T06:49:43.1090006Z" - headers: - content-length: - - '223' - content-type: - - application/xml - x-ms-version: - - '2024-05-04' - status: - code: 404 - message: The specified container does not exist. -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-blob/12.20.0 Python/3.9.19 (Windows-10-10.0.22631-SP0) - x-ms-date: - - Thu, 29 Aug 2024 06:49:42 GMT - x-ms-version: - - '2024-05-04' - method: PUT - uri: https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001?restype=container&sv=PLACEHOLDER&ss=b&srt=co&spr=https&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sp=rwlac&sig=PLACEHOLDER - response: - body: - string: '' - headers: - content-length: - - '0' - x-ms-version: - - '2024-05-04' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-blob/12.20.0 Python/3.9.19 (Windows-10-10.0.22631-SP0) - x-ms-date: - - Thu, 29 Aug 2024 06:49:42 GMT - x-ms-version: - - '2024-05-04' - method: GET - uri: https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001?restype=container&sv=PLACEHOLDER&ss=b&srt=co&spr=https&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sp=rwlac&sig=PLACEHOLDER - response: - body: - string: '' - headers: - content-length: - - '0' - x-ms-lease-state: - - available - x-ms-lease-status: - - unlocked - x-ms-version: - - '2024-05-04' - status: - code: 200 - message: OK -- request: - body: b'OPENQASM 2.0;\n include "qelib1.inc";\n\n qreg q[3];\n creg - c0[1];\n creg c1[1];\n creg c2[1];\n\n h q[0];\n cx - q[0], q[1];\n x q[2];\n h q[2];\n cx q[2], q[0];\n h - q[2];\n measure q[0] -> c0[0];\n if (c0==1) x q[1];\n measure - q[2] -> c1[0];\n if (c1==1) z q[1];\n h q[1];\n measure - q[1] -> c2[0];\n ' - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '429' - Content-Type: - - application/octet-stream - User-Agent: - - azsdk-python-storage-blob/12.20.0 Python/3.9.19 (Windows-10-10.0.22631-SP0) - x-ms-blob-type: - - BlockBlob - x-ms-date: - - Thu, 29 Aug 2024 06:49:42 GMT - x-ms-version: - - '2024-05-04' - method: PUT - uri: https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/inputData?sv=PLACEHOLDER&ss=b&srt=co&spr=https&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sp=rwlac&sig=PLACEHOLDER - response: - body: - string: '' - headers: - content-length: - - '0' - x-ms-version: - - '2024-05-04' - status: - code: 201 - message: Created -- request: - body: 'b''{"id": "00000000-0000-0000-0000-000000000001", "name": "quantinuum-job", - "providerId": "quantinuum", "target": "quantinuum.sim.h1-1e", "itemType": "Job", - "containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001?sv=PLACEHOLDER&ss=b&srt=co&spr=https&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sp=rwlac&sig=PLACEHOLDER", - "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/inputData", - "inputDataFormat": "honeywell.openqasm.v1", "inputParams": {"count": 100}, "outputDataFormat": - "honeywell.quantum-results.v1"}''' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '611' - Content-Type: - - application/json - User-Agent: - - azsdk-python-quantum/0.0.1 Python/3.9.19 (Windows-10-10.0.22631-SP0) - method: PUT - uri: https://eastus.quantum.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000001?api-version=2024-10-01-preview&test-sequence-id=1 - response: - body: - string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001?sv=PLACEHOLDER&ss=b&srt=co&spr=https&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sp=rwlac&sig=PLACEHOLDER", - "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/inputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=rcw&sig=PLACEHOLDER", - "inputDataFormat": "honeywell.openqasm.v1", "inputParams": {"count": 100}, - "metadata": null, "sessionId": null, "status": "Waiting", "jobType": "QuantumComputing", - "outputDataFormat": "honeywell.quantum-results.v1", "outputDataUri": "https://mystorage.blob.core.windows.net:443/job-00000000-0000-0000-0000-000000000001/outputData?sv=PLACEHOLDER&ss=b&srt=co&spr=https&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sp=rwlac&sig=PLACEHOLDER", - "beginExecutionTime": null, "cancellationTime": null, "quantumComputingData": - null, "errorData": null, "isCancelling": false, "tags": [], "name": "quantinuum-job", - "id": "00000000-0000-0000-0000-000000000001", "providerId": "quantinuum", - "target": "quantinuum.sim.h1-1e", "creationTime": "2024-08-29T06:49:43.655637+00:00", - "endExecutionTime": null, "costEstimate": null, "itemType": "Job"}' - headers: - connection: - - keep-alive - content-length: - - '1268' - content-type: - - application/json; charset=utf-8 - transfer-encoding: - - chunked - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-quantum/0.0.1 Python/3.9.19 (Windows-10-10.0.22631-SP0) - method: GET - uri: https://eastus.quantum.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000001?api-version=2024-10-01-preview&test-sequence-id=1 - response: - body: - string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=c&sp=rcwl&sig=PLACEHOLDER", - "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/inputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dquantinuum-job-00000000-0000-0000-0000-000000000001.input.json&sig=PLACEHOLDER", - "inputDataFormat": "honeywell.openqasm.v1", "inputParams": {"count": 100}, - "metadata": null, "sessionId": null, "status": "Waiting", "jobType": "QuantumComputing", - "outputDataFormat": "honeywell.quantum-results.v1", "outputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/outputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dquantinuum-job-00000000-0000-0000-0000-000000000001.output.json&sig=PLACEHOLDER", - "beginExecutionTime": null, "cancellationTime": null, "quantumComputingData": - null, "errorData": null, "isCancelling": false, "tags": [], "name": "quantinuum-job", - "id": "00000000-0000-0000-0000-000000000001", "providerId": "quantinuum", - "target": "quantinuum.sim.h1-1e", "creationTime": "2024-08-29T06:49:43.655637+00:00", - "endExecutionTime": null, "costEstimate": null, "itemType": "Job"}' - headers: - connection: - - keep-alive - content-length: - - '1410' - content-type: - - application/json; charset=utf-8 - transfer-encoding: - - chunked - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-quantum/0.0.1 Python/3.9.19 (Windows-10-10.0.22631-SP0) - method: GET - uri: https://eastus.quantum.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000001?api-version=2024-10-01-preview&test-sequence-id=2 - response: - body: - string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=c&sp=rcwl&sig=PLACEHOLDER", - "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/inputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dquantinuum-job-00000000-0000-0000-0000-000000000001.input.json&sig=PLACEHOLDER", - "inputDataFormat": "honeywell.openqasm.v1", "inputParams": {"count": 100}, - "metadata": null, "sessionId": null, "status": "Waiting", "jobType": "QuantumComputing", - "outputDataFormat": "honeywell.quantum-results.v1", "outputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/outputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dquantinuum-job-00000000-0000-0000-0000-000000000001.output.json&sig=PLACEHOLDER", - "beginExecutionTime": null, "cancellationTime": null, "quantumComputingData": - {"count": 1}, "errorData": null, "isCancelling": false, "tags": [], "name": - "quantinuum-job", "id": "00000000-0000-0000-0000-000000000001", "providerId": - "quantinuum", "target": "quantinuum.sim.h1-1e", "creationTime": "2024-08-29T06:49:43.655637+00:00", - "endExecutionTime": null, "costEstimate": null, "itemType": "Job"}' - headers: - connection: - - keep-alive - content-length: - - '1418' - content-type: - - application/json; charset=utf-8 - transfer-encoding: - - chunked - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-quantum/0.0.1 Python/3.9.19 (Windows-10-10.0.22631-SP0) - method: GET - uri: https://eastus.quantum.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000001?api-version=2024-10-01-preview&test-sequence-id=3 - response: - body: - string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=c&sp=rcwl&sig=PLACEHOLDER", - "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/inputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dquantinuum-job-00000000-0000-0000-0000-000000000001.input.json&sig=PLACEHOLDER", - "inputDataFormat": "honeywell.openqasm.v1", "inputParams": {"count": 100}, - "metadata": null, "sessionId": null, "status": "Waiting", "jobType": "QuantumComputing", - "outputDataFormat": "honeywell.quantum-results.v1", "outputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/outputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dquantinuum-job-00000000-0000-0000-0000-000000000001.output.json&sig=PLACEHOLDER", - "beginExecutionTime": null, "cancellationTime": null, "quantumComputingData": - {"count": 1}, "errorData": null, "isCancelling": false, "tags": [], "name": - "quantinuum-job", "id": "00000000-0000-0000-0000-000000000001", "providerId": - "quantinuum", "target": "quantinuum.sim.h1-1e", "creationTime": "2024-08-29T06:49:43.655637+00:00", - "endExecutionTime": null, "costEstimate": null, "itemType": "Job"}' - headers: - connection: - - keep-alive - content-length: - - '1418' - content-type: - - application/json; charset=utf-8 - transfer-encoding: - - chunked - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-quantum/0.0.1 Python/3.9.19 (Windows-10-10.0.22631-SP0) - method: GET - uri: https://eastus.quantum.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000001?api-version=2024-10-01-preview&test-sequence-id=4 - response: - body: - string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=c&sp=rcwl&sig=PLACEHOLDER", - "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/inputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dquantinuum-job-00000000-0000-0000-0000-000000000001.input.json&sig=PLACEHOLDER", - "inputDataFormat": "honeywell.openqasm.v1", "inputParams": {"count": 100}, - "metadata": null, "sessionId": null, "status": "Waiting", "jobType": "QuantumComputing", - "outputDataFormat": "honeywell.quantum-results.v1", "outputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/outputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dquantinuum-job-00000000-0000-0000-0000-000000000001.output.json&sig=PLACEHOLDER", - "beginExecutionTime": null, "cancellationTime": null, "quantumComputingData": - {"count": 1}, "errorData": null, "isCancelling": false, "tags": [], "name": - "quantinuum-job", "id": "00000000-0000-0000-0000-000000000001", "providerId": - "quantinuum", "target": "quantinuum.sim.h1-1e", "creationTime": "2024-08-29T06:49:43.655637+00:00", - "endExecutionTime": null, "costEstimate": null, "itemType": "Job"}' - headers: - connection: - - keep-alive - content-length: - - '1418' - content-type: - - application/json; charset=utf-8 - transfer-encoding: - - chunked - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-quantum/0.0.1 Python/3.9.19 (Windows-10-10.0.22631-SP0) - method: GET - uri: https://eastus.quantum.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000001?api-version=2024-10-01-preview&test-sequence-id=5 - response: - body: - string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=c&sp=rcwl&sig=PLACEHOLDER", - "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/inputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dquantinuum-job-00000000-0000-0000-0000-000000000001.input.json&sig=PLACEHOLDER", - "inputDataFormat": "honeywell.openqasm.v1", "inputParams": {"count": 100}, - "metadata": null, "sessionId": null, "status": "Waiting", "jobType": "QuantumComputing", - "outputDataFormat": "honeywell.quantum-results.v1", "outputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/outputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dquantinuum-job-00000000-0000-0000-0000-000000000001.output.json&sig=PLACEHOLDER", - "beginExecutionTime": null, "cancellationTime": null, "quantumComputingData": - {"count": 1}, "errorData": null, "isCancelling": false, "tags": [], "name": - "quantinuum-job", "id": "00000000-0000-0000-0000-000000000001", "providerId": - "quantinuum", "target": "quantinuum.sim.h1-1e", "creationTime": "2024-08-29T06:49:43.655637+00:00", - "endExecutionTime": null, "costEstimate": null, "itemType": "Job"}' - headers: - connection: - - keep-alive - content-length: - - '1418' - content-type: - - application/json; charset=utf-8 - transfer-encoding: - - chunked - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-quantum/0.0.1 Python/3.9.19 (Windows-10-10.0.22631-SP0) - method: GET - uri: https://eastus.quantum.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000001?api-version=2024-10-01-preview&test-sequence-id=6 - response: - body: - string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=c&sp=rcwl&sig=PLACEHOLDER", - "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/inputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dquantinuum-job-00000000-0000-0000-0000-000000000001.input.json&sig=PLACEHOLDER", - "inputDataFormat": "honeywell.openqasm.v1", "inputParams": {"count": 100}, - "metadata": null, "sessionId": null, "status": "Waiting", "jobType": "QuantumComputing", - "outputDataFormat": "honeywell.quantum-results.v1", "outputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/outputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dquantinuum-job-00000000-0000-0000-0000-000000000001.output.json&sig=PLACEHOLDER", - "beginExecutionTime": null, "cancellationTime": null, "quantumComputingData": - {"count": 1}, "errorData": null, "isCancelling": false, "tags": [], "name": - "quantinuum-job", "id": "00000000-0000-0000-0000-000000000001", "providerId": - "quantinuum", "target": "quantinuum.sim.h1-1e", "creationTime": "2024-08-29T06:49:43.655637+00:00", - "endExecutionTime": null, "costEstimate": null, "itemType": "Job"}' - headers: - connection: - - keep-alive - content-length: - - '1418' - content-type: - - application/json; charset=utf-8 - transfer-encoding: - - chunked - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-quantum/0.0.1 Python/3.9.19 (Windows-10-10.0.22631-SP0) - method: GET - uri: https://eastus.quantum.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000001?api-version=2024-10-01-preview&test-sequence-id=7 - response: - body: - string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=c&sp=rcwl&sig=PLACEHOLDER", - "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/inputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dquantinuum-job-00000000-0000-0000-0000-000000000001.input.json&sig=PLACEHOLDER", - "inputDataFormat": "honeywell.openqasm.v1", "inputParams": {"count": 100}, - "metadata": null, "sessionId": null, "status": "Waiting", "jobType": "QuantumComputing", - "outputDataFormat": "honeywell.quantum-results.v1", "outputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/outputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dquantinuum-job-00000000-0000-0000-0000-000000000001.output.json&sig=PLACEHOLDER", - "beginExecutionTime": null, "cancellationTime": null, "quantumComputingData": - {"count": 1}, "errorData": null, "isCancelling": false, "tags": [], "name": - "quantinuum-job", "id": "00000000-0000-0000-0000-000000000001", "providerId": - "quantinuum", "target": "quantinuum.sim.h1-1e", "creationTime": "2024-08-29T06:49:43.655637+00:00", - "endExecutionTime": null, "costEstimate": null, "itemType": "Job"}' - headers: - connection: - - keep-alive - content-length: - - '1418' - content-type: - - application/json; charset=utf-8 - transfer-encoding: - - chunked - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-quantum/0.0.1 Python/3.9.19 (Windows-10-10.0.22631-SP0) - method: GET - uri: https://eastus.quantum.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000001?api-version=2024-10-01-preview&test-sequence-id=8 - response: - body: - string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=c&sp=rcwl&sig=PLACEHOLDER", - "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/inputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dquantinuum-job-00000000-0000-0000-0000-000000000001.input.json&sig=PLACEHOLDER", - "inputDataFormat": "honeywell.openqasm.v1", "inputParams": {"count": 100}, - "metadata": null, "sessionId": null, "status": "Waiting", "jobType": "QuantumComputing", - "outputDataFormat": "honeywell.quantum-results.v1", "outputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/outputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dquantinuum-job-00000000-0000-0000-0000-000000000001.output.json&sig=PLACEHOLDER", - "beginExecutionTime": null, "cancellationTime": null, "quantumComputingData": - {"count": 1}, "errorData": null, "isCancelling": false, "tags": [], "name": - "quantinuum-job", "id": "00000000-0000-0000-0000-000000000001", "providerId": - "quantinuum", "target": "quantinuum.sim.h1-1e", "creationTime": "2024-08-29T06:49:43.655637+00:00", - "endExecutionTime": null, "costEstimate": null, "itemType": "Job"}' - headers: - connection: - - keep-alive - content-length: - - '1418' - content-type: - - application/json; charset=utf-8 - transfer-encoding: - - chunked - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-quantum/0.0.1 Python/3.9.19 (Windows-10-10.0.22631-SP0) - method: GET - uri: https://eastus.quantum.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000001?api-version=2024-10-01-preview&test-sequence-id=9 - response: - body: - string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=c&sp=rcwl&sig=PLACEHOLDER", - "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/inputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dquantinuum-job-00000000-0000-0000-0000-000000000001.input.json&sig=PLACEHOLDER", - "inputDataFormat": "honeywell.openqasm.v1", "inputParams": {"count": 100}, - "metadata": null, "sessionId": null, "status": "Succeeded", "jobType": "QuantumComputing", - "outputDataFormat": "honeywell.quantum-results.v1", "outputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/rawOutputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dquantinuum-job-00000000-0000-0000-0000-000000000001.output.json&sig=PLACEHOLDER", - "beginExecutionTime": "2024-08-29T06:49:50.30535+00:00", "cancellationTime": - null, "quantumComputingData": {"count": 1}, "errorData": null, "isCancelling": - false, "tags": [], "name": "quantinuum-job", "id": "00000000-0000-0000-0000-000000000001", - "providerId": "quantinuum", "target": "quantinuum.sim.h1-1e", "creationTime": - "2024-08-29T06:49:43.655637+00:00", "endExecutionTime": "2024-08-29T06:49:50.609447+00:00", - "costEstimate": {"currencyCode": "USD", "events": [{"dimensionId": "ehqc", - "dimensionName": "EHQC", "measureUnit": "hqc", "amountBilled": 6.2, "amountConsumed": - 6.2, "unitPrice": 0.0}], "estimatedTotal": 0.0}, "itemType": "Job"}' - headers: - connection: - - keep-alive - content-length: - - '1670' - content-type: - - application/json; charset=utf-8 - transfer-encoding: - - chunked - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-quantum/0.0.1 Python/3.9.19 (Windows-10-10.0.22631-SP0) - method: GET - uri: https://eastus.quantum.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000001?api-version=2024-10-01-preview&test-sequence-id=10 - response: - body: - string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=c&sp=rcwl&sig=PLACEHOLDER", - "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/inputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dquantinuum-job-00000000-0000-0000-0000-000000000001.input.json&sig=PLACEHOLDER", - "inputDataFormat": "honeywell.openqasm.v1", "inputParams": {"count": 100}, - "metadata": null, "sessionId": null, "status": "Succeeded", "jobType": "QuantumComputing", - "outputDataFormat": "honeywell.quantum-results.v1", "outputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/rawOutputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dquantinuum-job-00000000-0000-0000-0000-000000000001.output.json&sig=PLACEHOLDER", - "beginExecutionTime": "2024-08-29T06:49:50.30535+00:00", "cancellationTime": - null, "quantumComputingData": {"count": 1}, "errorData": null, "isCancelling": - false, "tags": [], "name": "quantinuum-job", "id": "00000000-0000-0000-0000-000000000001", - "providerId": "quantinuum", "target": "quantinuum.sim.h1-1e", "creationTime": - "2024-08-29T06:49:43.655637+00:00", "endExecutionTime": "2024-08-29T06:49:50.609447+00:00", - "costEstimate": {"currencyCode": "USD", "events": [{"dimensionId": "ehqc", - "dimensionName": "EHQC", "measureUnit": "hqc", "amountBilled": 6.2, "amountConsumed": - 6.2, "unitPrice": 0.0}], "estimatedTotal": 0.0}, "itemType": "Job"}' - headers: - connection: - - keep-alive - content-length: - - '1670' - 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 - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-blob/12.20.0 Python/3.9.19 (Windows-10-10.0.22631-SP0) - x-ms-date: - - Thu, 29 Aug 2024 06:49:53 GMT - x-ms-range: - - bytes=0-33554431 - x-ms-version: - - '2024-05-04' - method: GET - uri: https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/rawOutputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B%20filename%3Dquantinuum-job-00000000-0000-0000-0000-000000000001.output.json&sig=PLACEHOLDER - response: - body: - string: '{"c0": ["0", "0", "1", "0", "0", "0", "0", "1", "0", "1", "1", "1", - "0", "0", "0", "1", "1", "1", "0", "0", "0", "0", "0", "1", "1", "0", "0", - "0", "0", "1", "1", "0", "0", "0", "1", "1", "0", "1", "0", "1", "1", "1", - "1", "0", "0", "0", "0", "0", "1", "1", "0", "0", "1", "1", "1", "1", "1", - "1", "0", "0", "1", "0", "1", "0", "0", "0", "0", "0", "0", "1", "0", "1", - "0", "0", "1", "1", "1", "0", "0", "1", "1", "1", "1", "0", "0", "1", "0", - "1", "1", "0", "0", "0", "0", "0", "0", "1", "0", "0", "0", "0"], "c1": ["0", - "1", "1", "0", "0", "0", "1", "0", "1", "0", "0", "0", "1", "1", "0", "0", - "1", "1", "0", "0", "0", "0", "0", "1", "1", "1", "1", "0", "1", "0", "1", - "1", "1", "1", "0", "0", "1", "0", "0", "1", "0", "0", "0", "0", "1", "1", - "0", "0", "0", "0", "0", "1", "1", "0", "1", "1", "1", "0", "0", "0", "1", - "0", "0", "0", "1", "0", "0", "0", "0", "0", "0", "0", "1", "0", "1", "0", - "1", "1", "1", "0", "0", "0", "0", "0", "0", "1", "1", "1", "1", "1", "0", - "1", "1", "1", "1", "1", "0", "1", "1", "0"], "c2": ["1", "1", "1", "1", "1", - "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", - "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", - "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", - "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", - "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", - "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", - "1", "1", "1", "1", "1"]}' - headers: - accept-ranges: - - bytes - content-length: - - '1524' - content-range: - - bytes 0-1523/1524 - content-type: - - application/octet-stream - x-ms-blob-content-md5: - - 4d5vKZW/wAoJ064UpIFURg== - x-ms-blob-type: - - BlockBlob - x-ms-creation-time: - - Thu, 29 Aug 2024 06:49:43 GMT - x-ms-lease-state: - - available - x-ms-lease-status: - - unlocked - x-ms-server-encrypted: - - 'true' - x-ms-version: - - '2024-05-04' - status: - code: 206 - message: Partial Content -version: 1 diff --git a/azure-quantum/tests/unit/recordings/test_job_submit_quantinuum_with_shots_and_deprecated_num_shots.yaml b/azure-quantum/tests/unit/recordings/test_job_submit_quantinuum_with_shots_and_deprecated_num_shots.yaml deleted file mode 100644 index c62ad6b68..000000000 --- a/azure-quantum/tests/unit/recordings/test_job_submit_quantinuum_with_shots_and_deprecated_num_shots.yaml +++ /dev/null @@ -1,713 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-identity/1.17.1 Python/3.9.19 (Windows-10-10.0.22631-SP0) - method: GET - uri: https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0/.well-known/openid-configuration - response: - body: - string: '{"token_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", - "token_endpoint_auth_methods_supported": ["client_secret_post", "private_key_jwt", - "client_secret_basic"], "jwks_uri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/discovery/v2.0/keys", - "response_modes_supported": ["query", "fragment", "form_post"], "subject_types_supported": - ["pairwise"], "id_token_signing_alg_values_supported": ["RS256"], "response_types_supported": - ["code", "id_token", "code id_token", "id_token token"], "scopes_supported": - ["openid", "profile", "email", "offline_access"], "issuer": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0", - "request_uri_parameter_supported": false, "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", - "authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/authorize", - "device_authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/devicecode", - "http_logout_supported": true, "frontchannel_logout_supported": true, "end_session_endpoint": - "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/logout", - "claims_supported": ["sub", "iss", "cloud_instance_name", "cloud_instance_host_name", - "cloud_graph_host_name", "msgraph_host", "aud", "exp", "iat", "auth_time", - "acr", "nonce", "preferred_username", "name", "tid", "ver", "at_hash", "c_hash", - "email"], "kerberos_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/kerberos", - "tenant_region_scope": "WW", "cloud_instance_name": "microsoftonline.com", - "cloud_graph_host_name": "graph.windows.net", "msgraph_host": "graph.microsoft.com", - "rbac_url": "https://pas.windows.net"}' - headers: - content-length: - - '1826' - content-type: - - application/json; charset=utf-8 - status: - code: 200 - message: OK -- request: - body: client_id=PLACEHOLDER&grant_type=client_credentials&client_assertion=PLACEHOLDER&client_info=1&client_assertion_type=PLACEHOLDER&scope=https%3A%2F%2Fquantum.microsoft.com%2F.default - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '181' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-identity/1.17.1 Python/3.9.19 (Windows-10-10.0.22631-SP0) - x-client-current-telemetry: - - 4|730,2| - x-client-os: - - win32 - x-client-sku: - - MSAL.Python - x-client-ver: - - 1.30.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": 1756450226, "ext_expires_in": - 1756450226, "refresh_in": 31536000, "access_token": "PLACEHOLDER"}' - headers: - content-length: - - '135' - content-type: - - application/json; charset=utf-8 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - testapp azsdk-python-quantum/0.0.1 Python/3.9.19 (Windows-10-10.0.22631-SP0) - method: GET - uri: https://eastus.quantum.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/providerStatus?api-version=2024-10-01-preview&test-sequence-id=1 - response: - body: - string: '{"value": [{"id": "ionq", "currentAvailability": "Degraded", - "targets": [{"id": "ionq.qpu", "currentAvailability": "Unavailable", "averageQueueTime": - 0, "statusPage": null}, {"id": "ionq.qpu.aria-1", "currentAvailability": "Available", - "averageQueueTime": 3274919, "statusPage": "https://status.ionq.co"}, {"id": - "ionq.qpu.aria-2", "currentAvailability": "Unavailable", "averageQueueTime": - 2556777, "statusPage": "https://status.ionq.co"}, {"id": "ionq.simulator", - "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": "https://status.ionq.co"}]}, - {"id": "microsoft-qc", "currentAvailability": "Available", "targets": [{"id": - "microsoft.estimator", "currentAvailability": "Available", "averageQueueTime": - 0, "statusPage": null}]}, {"id": "pasqal", "currentAvailability": "Degraded", - "targets": [{"id": "pasqal.sim.emu-tn", "currentAvailability": "Available", - "averageQueueTime": 273, "statusPage": "https://pasqal.com"}, {"id": "pasqal.qpu.fresnel", - "currentAvailability": "Degraded", "averageQueueTime": 0, "statusPage": "https://pasqal.com"}]}, - {"id": "quantinuum", "currentAvailability": "Available", "targets": [{"id": - "quantinuum.qpu.h1-1", "currentAvailability": "Available", "averageQueueTime": - 48526, "statusPage": "https://www.quantinuum.com/hardware/h1"}, {"id": "quantinuum.sim.h1-1sc", - "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": "https://www.quantinuum.com/hardware/h1"}, - {"id": "quantinuum.sim.h1-1e", "currentAvailability": "Available", "averageQueueTime": - 8, "statusPage": "https://www.quantinuum.com/hardware/h1"}, {"id": "quantinuum.qpu.h2-1", - "currentAvailability": "Available", "averageQueueTime": 134417, "statusPage": - "https://www.quantinuum.com/hardware/h2"}, {"id": "quantinuum.sim.h2-1sc", - "currentAvailability": "Available", "averageQueueTime": 2, "statusPage": "https://www.quantinuum.com/hardware/h2"}, - {"id": "quantinuum.sim.h2-1e", "currentAvailability": "Available", "averageQueueTime": - 53521, "statusPage": "https://www.quantinuum.com/hardware/h2"}, {"id": "quantinuum.sim.h1-1sc-preview", - "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": "https://www.quantinuum.com/hardware/h1"}, - {"id": "quantinuum.sim.h1-1e-preview", "currentAvailability": "Available", - "averageQueueTime": 8, "statusPage": "https://www.quantinuum.com/hardware/h1"}, - {"id": "quantinuum.sim.h1-2e-preview", "currentAvailability": "Available", - "averageQueueTime": 0, "statusPage": "https://www.quantinuum.com/hardware/h1"}, - {"id": "quantinuum.qpu.h1-1-preview", "currentAvailability": "Available", - "averageQueueTime": 48526, "statusPage": "https://www.quantinuum.com/hardware/h1"}]}, - {"id": "rigetti", "currentAvailability": "Available", "targets": [{"id": "rigetti.sim.qvm", - "currentAvailability": "Available", "averageQueueTime": 5, "statusPage": "https://rigetti.statuspage.io/"}, - {"id": "rigetti.qpu.ankaa-2", "currentAvailability": "Available", "averageQueueTime": - 5, "statusPage": "https://rigetti.statuspage.io/"}]}, {"id": "qci", "currentAvailability": - "Degraded", "targets": [{"id": "qci.simulator", "currentAvailability": "Available", - "averageQueueTime": 1, "statusPage": "https://quantumcircuits.com"}, {"id": - "qci.machine1", "currentAvailability": "Unavailable", "averageQueueTime": - 1, "statusPage": "https://quantumcircuits.com"}, {"id": "qci.simulator.noisy", - "currentAvailability": "Available", "averageQueueTime": 0, "statusPage": "https://quantumcircuits.com"}]}, - {"id": "Microsoft.Test", "currentAvailability": "Available", "targets": [{"id": - "echo-rigetti", "currentAvailability": "Available", "averageQueueTime": 1, - "statusPage": ""}, {"id": "echo-quantinuum", "currentAvailability": "Available", - "averageQueueTime": 1, "statusPage": ""}, {"id": "echo-qci", "currentAvailability": - "Available", "averageQueueTime": 1, "statusPage": ""}, {"id": "echo-ionq", - "currentAvailability": "Available", "averageQueueTime": 1, "statusPage": ""}, - {"id": "echo-aquarius", "currentAvailability": "Available", "averageQueueTime": - 1, "statusPage": ""}, {"id": "sparse-sim-rigetti", "currentAvailability": - "Available", "averageQueueTime": 1, "statusPage": ""}, {"id": "sparse-sim-quantinuum", - "currentAvailability": "Available", "averageQueueTime": 1, "statusPage": ""}, - {"id": "sparse-sim-qci", "currentAvailability": "Available", "averageQueueTime": - 1, "statusPage": ""}, {"id": "sparse-sim-ionq", "currentAvailability": "Available", - "averageQueueTime": 1, "statusPage": ""}, {"id": "echo-output", "currentAvailability": - "Available", "averageQueueTime": 1, "statusPage": ""}]}], "nextLink": null}' - headers: - connection: - - keep-alive - content-length: - - '4755' - content-type: - - application/json; charset=utf-8 - transfer-encoding: - - chunked - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-identity/1.17.1 Python/3.9.19 (Windows-10-10.0.22631-SP0) - method: GET - uri: https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0/.well-known/openid-configuration - response: - body: - string: '{"token_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", - "token_endpoint_auth_methods_supported": ["client_secret_post", "private_key_jwt", - "client_secret_basic"], "jwks_uri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/discovery/v2.0/keys", - "response_modes_supported": ["query", "fragment", "form_post"], "subject_types_supported": - ["pairwise"], "id_token_signing_alg_values_supported": ["RS256"], "response_types_supported": - ["code", "id_token", "code id_token", "id_token token"], "scopes_supported": - ["openid", "profile", "email", "offline_access"], "issuer": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0", - "request_uri_parameter_supported": false, "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", - "authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/authorize", - "device_authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/devicecode", - "http_logout_supported": true, "frontchannel_logout_supported": true, "end_session_endpoint": - "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/logout", - "claims_supported": ["sub", "iss", "cloud_instance_name", "cloud_instance_host_name", - "cloud_graph_host_name", "msgraph_host", "aud", "exp", "iat", "auth_time", - "acr", "nonce", "preferred_username", "name", "tid", "ver", "at_hash", "c_hash", - "email"], "kerberos_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/kerberos", - "tenant_region_scope": "WW", "cloud_instance_name": "microsoftonline.com", - "cloud_graph_host_name": "graph.windows.net", "msgraph_host": "graph.microsoft.com", - "rbac_url": "https://pas.windows.net"}' - headers: - content-length: - - '1826' - content-type: - - application/json; charset=utf-8 - status: - code: 200 - message: OK -- request: - body: client_id=PLACEHOLDER&grant_type=client_credentials&client_assertion=PLACEHOLDER&client_info=1&client_assertion_type=PLACEHOLDER&scope=https%3A%2F%2Fquantum.microsoft.com%2F.default - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '181' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-identity/1.17.1 Python/3.9.19 (Windows-10-10.0.22631-SP0) - x-client-current-telemetry: - - 4|730,2| - x-client-os: - - win32 - x-client-sku: - - MSAL.Python - x-client-ver: - - 1.30.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": 1756450227, "ext_expires_in": - 1756450227, "refresh_in": 31536000, "access_token": "PLACEHOLDER"}' - headers: - content-length: - - '135' - content-type: - - application/json; charset=utf-8 - status: - code: 200 - message: OK -- request: - body: 'b''{"containerName": "job-00000000-0000-0000-0000-000000000001"}''' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '64' - Content-Type: - - application/json - User-Agent: - - azsdk-python-quantum/0.0.1 Python/3.9.19 (Windows-10-10.0.22631-SP0) - method: POST - uri: https://eastus.quantum.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/storage/sasUri?api-version=2024-10-01-preview&test-sequence-id=1 - response: - body: - string: '{"sasUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001?sv=PLACEHOLDER&ss=b&srt=co&spr=https&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sp=rwlac&sig=PLACEHOLDER"}' - headers: - connection: - - keep-alive - content-length: - - '212' - 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 - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-blob/12.20.0 Python/3.9.19 (Windows-10-10.0.22631-SP0) - x-ms-date: - - Thu, 29 Aug 2024 06:50:27 GMT - x-ms-version: - - '2024-05-04' - method: GET - uri: https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001?restype=container&sv=PLACEHOLDER&ss=b&srt=co&spr=https&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sp=rwlac&sig=PLACEHOLDER - response: - body: - string: "\uFEFFContainerNotFoundThe - specified container does not exist.\nRequestId:f6ceb693-001e-002e-1cdf-f9117d000000\nTime:2024-08-29T06:50:28.1163725Z" - headers: - content-length: - - '223' - content-type: - - application/xml - x-ms-version: - - '2024-05-04' - status: - code: 404 - message: The specified container does not exist. -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-blob/12.20.0 Python/3.9.19 (Windows-10-10.0.22631-SP0) - x-ms-date: - - Thu, 29 Aug 2024 06:50:27 GMT - x-ms-version: - - '2024-05-04' - method: PUT - uri: https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001?restype=container&sv=PLACEHOLDER&ss=b&srt=co&spr=https&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sp=rwlac&sig=PLACEHOLDER - response: - body: - string: '' - headers: - content-length: - - '0' - x-ms-version: - - '2024-05-04' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-blob/12.20.0 Python/3.9.19 (Windows-10-10.0.22631-SP0) - x-ms-date: - - Thu, 29 Aug 2024 06:50:27 GMT - x-ms-version: - - '2024-05-04' - method: GET - uri: https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001?restype=container&sv=PLACEHOLDER&ss=b&srt=co&spr=https&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sp=rwlac&sig=PLACEHOLDER - response: - body: - string: '' - headers: - content-length: - - '0' - x-ms-lease-state: - - available - x-ms-lease-status: - - unlocked - x-ms-version: - - '2024-05-04' - status: - code: 200 - message: OK -- request: - body: b'OPENQASM 2.0;\n include "qelib1.inc";\n\n qreg q[3];\n creg - c0[1];\n creg c1[1];\n creg c2[1];\n\n h q[0];\n cx - q[0], q[1];\n x q[2];\n h q[2];\n cx q[2], q[0];\n h - q[2];\n measure q[0] -> c0[0];\n if (c0==1) x q[1];\n measure - q[2] -> c1[0];\n if (c1==1) z q[1];\n h q[1];\n measure - q[1] -> c2[0];\n ' - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '429' - Content-Type: - - application/octet-stream - User-Agent: - - azsdk-python-storage-blob/12.20.0 Python/3.9.19 (Windows-10-10.0.22631-SP0) - x-ms-blob-type: - - BlockBlob - x-ms-date: - - Thu, 29 Aug 2024 06:50:27 GMT - x-ms-version: - - '2024-05-04' - method: PUT - uri: https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/inputData?sv=PLACEHOLDER&ss=b&srt=co&spr=https&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sp=rwlac&sig=PLACEHOLDER - response: - body: - string: '' - headers: - content-length: - - '0' - x-ms-version: - - '2024-05-04' - status: - code: 201 - message: Created -- request: - body: 'b''{"id": "00000000-0000-0000-0000-000000000001", "name": "quantinuum-job", - "providerId": "quantinuum", "target": "quantinuum.sim.h1-1e", "itemType": "Job", - "containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001?sv=PLACEHOLDER&ss=b&srt=co&spr=https&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sp=rwlac&sig=PLACEHOLDER", - "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/inputData", - "inputDataFormat": "honeywell.openqasm.v1", "inputParams": {"count": 100}, "outputDataFormat": - "honeywell.quantum-results.v1"}''' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '611' - Content-Type: - - application/json - User-Agent: - - azsdk-python-quantum/0.0.1 Python/3.9.19 (Windows-10-10.0.22631-SP0) - method: PUT - uri: https://eastus.quantum.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000001?api-version=2024-10-01-preview&test-sequence-id=1 - response: - body: - string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001?sv=PLACEHOLDER&ss=b&srt=co&spr=https&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sp=rwlac&sig=PLACEHOLDER", - "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/inputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=rcw&sig=PLACEHOLDER", - "inputDataFormat": "honeywell.openqasm.v1", "inputParams": {"count": 100}, - "metadata": null, "sessionId": null, "status": "Waiting", "jobType": "QuantumComputing", - "outputDataFormat": "honeywell.quantum-results.v1", "outputDataUri": "https://mystorage.blob.core.windows.net:443/job-00000000-0000-0000-0000-000000000001/outputData?sv=PLACEHOLDER&ss=b&srt=co&spr=https&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sp=rwlac&sig=PLACEHOLDER", - "beginExecutionTime": null, "cancellationTime": null, "quantumComputingData": - null, "errorData": null, "isCancelling": false, "tags": [], "name": "quantinuum-job", - "id": "00000000-0000-0000-0000-000000000001", "providerId": "quantinuum", - "target": "quantinuum.sim.h1-1e", "creationTime": "2024-08-29T06:50:28.7347976+00:00", - "endExecutionTime": null, "costEstimate": null, "itemType": "Job"}' - headers: - connection: - - keep-alive - content-length: - - '1269' - content-type: - - application/json; charset=utf-8 - transfer-encoding: - - chunked - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-quantum/0.0.1 Python/3.9.19 (Windows-10-10.0.22631-SP0) - method: GET - uri: https://eastus.quantum.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000001?api-version=2024-10-01-preview&test-sequence-id=1 - response: - body: - string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=c&sp=rcwl&sig=PLACEHOLDER", - "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/inputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dquantinuum-job-00000000-0000-0000-0000-000000000001.input.json&sig=PLACEHOLDER", - "inputDataFormat": "honeywell.openqasm.v1", "inputParams": {"count": 100}, - "metadata": null, "sessionId": null, "status": "Waiting", "jobType": "QuantumComputing", - "outputDataFormat": "honeywell.quantum-results.v1", "outputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/outputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dquantinuum-job-00000000-0000-0000-0000-000000000001.output.json&sig=PLACEHOLDER", - "beginExecutionTime": null, "cancellationTime": null, "quantumComputingData": - {"count": 1}, "errorData": null, "isCancelling": false, "tags": [], "name": - "quantinuum-job", "id": "00000000-0000-0000-0000-000000000001", "providerId": - "quantinuum", "target": "quantinuum.sim.h1-1e", "creationTime": "2024-08-29T06:50:28.7347976+00:00", - "endExecutionTime": null, "costEstimate": null, "itemType": "Job"}' - headers: - connection: - - keep-alive - content-length: - - '1419' - content-type: - - application/json; charset=utf-8 - transfer-encoding: - - chunked - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-quantum/0.0.1 Python/3.9.19 (Windows-10-10.0.22631-SP0) - method: GET - uri: https://eastus.quantum.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000001?api-version=2024-10-01-preview&test-sequence-id=2 - response: - body: - string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=c&sp=rcwl&sig=PLACEHOLDER", - "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/inputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dquantinuum-job-00000000-0000-0000-0000-000000000001.input.json&sig=PLACEHOLDER", - "inputDataFormat": "honeywell.openqasm.v1", "inputParams": {"count": 100}, - "metadata": null, "sessionId": null, "status": "Waiting", "jobType": "QuantumComputing", - "outputDataFormat": "honeywell.quantum-results.v1", "outputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/outputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dquantinuum-job-00000000-0000-0000-0000-000000000001.output.json&sig=PLACEHOLDER", - "beginExecutionTime": null, "cancellationTime": null, "quantumComputingData": - {"count": 1}, "errorData": null, "isCancelling": false, "tags": [], "name": - "quantinuum-job", "id": "00000000-0000-0000-0000-000000000001", "providerId": - "quantinuum", "target": "quantinuum.sim.h1-1e", "creationTime": "2024-08-29T06:50:28.7347976+00:00", - "endExecutionTime": null, "costEstimate": null, "itemType": "Job"}' - headers: - connection: - - keep-alive - content-length: - - '1419' - content-type: - - application/json; charset=utf-8 - transfer-encoding: - - chunked - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-quantum/0.0.1 Python/3.9.19 (Windows-10-10.0.22631-SP0) - method: GET - uri: https://eastus.quantum.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000001?api-version=2024-10-01-preview&test-sequence-id=3 - response: - body: - string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=c&sp=rcwl&sig=PLACEHOLDER", - "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/inputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dquantinuum-job-00000000-0000-0000-0000-000000000001.input.json&sig=PLACEHOLDER", - "inputDataFormat": "honeywell.openqasm.v1", "inputParams": {"count": 100}, - "metadata": null, "sessionId": null, "status": "Waiting", "jobType": "QuantumComputing", - "outputDataFormat": "honeywell.quantum-results.v1", "outputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/outputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dquantinuum-job-00000000-0000-0000-0000-000000000001.output.json&sig=PLACEHOLDER", - "beginExecutionTime": null, "cancellationTime": null, "quantumComputingData": - {"count": 1}, "errorData": null, "isCancelling": false, "tags": [], "name": - "quantinuum-job", "id": "00000000-0000-0000-0000-000000000001", "providerId": - "quantinuum", "target": "quantinuum.sim.h1-1e", "creationTime": "2024-08-29T06:50:28.7347976+00:00", - "endExecutionTime": null, "costEstimate": null, "itemType": "Job"}' - headers: - connection: - - keep-alive - content-length: - - '1419' - content-type: - - application/json; charset=utf-8 - transfer-encoding: - - chunked - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-quantum/0.0.1 Python/3.9.19 (Windows-10-10.0.22631-SP0) - method: GET - uri: https://eastus.quantum.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000001?api-version=2024-10-01-preview&test-sequence-id=4 - response: - body: - string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=c&sp=rcwl&sig=PLACEHOLDER", - "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/inputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dquantinuum-job-00000000-0000-0000-0000-000000000001.input.json&sig=PLACEHOLDER", - "inputDataFormat": "honeywell.openqasm.v1", "inputParams": {"count": 100}, - "metadata": null, "sessionId": null, "status": "Waiting", "jobType": "QuantumComputing", - "outputDataFormat": "honeywell.quantum-results.v1", "outputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/outputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dquantinuum-job-00000000-0000-0000-0000-000000000001.output.json&sig=PLACEHOLDER", - "beginExecutionTime": null, "cancellationTime": null, "quantumComputingData": - {"count": 1}, "errorData": null, "isCancelling": false, "tags": [], "name": - "quantinuum-job", "id": "00000000-0000-0000-0000-000000000001", "providerId": - "quantinuum", "target": "quantinuum.sim.h1-1e", "creationTime": "2024-08-29T06:50:28.7347976+00:00", - "endExecutionTime": null, "costEstimate": null, "itemType": "Job"}' - headers: - connection: - - keep-alive - content-length: - - '1419' - content-type: - - application/json; charset=utf-8 - transfer-encoding: - - chunked - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-quantum/0.0.1 Python/3.9.19 (Windows-10-10.0.22631-SP0) - method: GET - uri: https://eastus.quantum.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000001?api-version=2024-10-01-preview&test-sequence-id=5 - response: - body: - string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=c&sp=rcwl&sig=PLACEHOLDER", - "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/inputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dquantinuum-job-00000000-0000-0000-0000-000000000001.input.json&sig=PLACEHOLDER", - "inputDataFormat": "honeywell.openqasm.v1", "inputParams": {"count": 100}, - "metadata": null, "sessionId": null, "status": "Waiting", "jobType": "QuantumComputing", - "outputDataFormat": "honeywell.quantum-results.v1", "outputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/outputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dquantinuum-job-00000000-0000-0000-0000-000000000001.output.json&sig=PLACEHOLDER", - "beginExecutionTime": null, "cancellationTime": null, "quantumComputingData": - {"count": 1}, "errorData": null, "isCancelling": false, "tags": [], "name": - "quantinuum-job", "id": "00000000-0000-0000-0000-000000000001", "providerId": - "quantinuum", "target": "quantinuum.sim.h1-1e", "creationTime": "2024-08-29T06:50:28.7347976+00:00", - "endExecutionTime": null, "costEstimate": null, "itemType": "Job"}' - headers: - connection: - - keep-alive - content-length: - - '1419' - content-type: - - application/json; charset=utf-8 - transfer-encoding: - - chunked - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-quantum/0.0.1 Python/3.9.19 (Windows-10-10.0.22631-SP0) - method: GET - uri: https://eastus.quantum.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000001?api-version=2024-10-01-preview&test-sequence-id=6 - response: - body: - string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=c&sp=rcwl&sig=PLACEHOLDER", - "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/inputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dquantinuum-job-00000000-0000-0000-0000-000000000001.input.json&sig=PLACEHOLDER", - "inputDataFormat": "honeywell.openqasm.v1", "inputParams": {"count": 100}, - "metadata": null, "sessionId": null, "status": "Waiting", "jobType": "QuantumComputing", - "outputDataFormat": "honeywell.quantum-results.v1", "outputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/outputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dquantinuum-job-00000000-0000-0000-0000-000000000001.output.json&sig=PLACEHOLDER", - "beginExecutionTime": null, "cancellationTime": null, "quantumComputingData": - {"count": 1}, "errorData": null, "isCancelling": false, "tags": [], "name": - "quantinuum-job", "id": "00000000-0000-0000-0000-000000000001", "providerId": - "quantinuum", "target": "quantinuum.sim.h1-1e", "creationTime": "2024-08-29T06:50:28.7347976+00:00", - "endExecutionTime": null, "costEstimate": null, "itemType": "Job"}' - headers: - connection: - - keep-alive - content-length: - - '1419' - content-type: - - application/json; charset=utf-8 - transfer-encoding: - - chunked - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-quantum/0.0.1 Python/3.9.19 (Windows-10-10.0.22631-SP0) - method: GET - uri: https://eastus.quantum.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Quantum/workspaces/myworkspace/jobs/00000000-0000-0000-0000-000000000001?api-version=2024-10-01-preview&test-sequence-id=7 - response: - body: - string: '{"containerUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=c&sp=rcwl&sig=PLACEHOLDER", - "inputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/inputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dquantinuum-job-00000000-0000-0000-0000-000000000001.input.json&sig=PLACEHOLDER", - "inputDataFormat": "honeywell.openqasm.v1", "inputParams": {"count": 100}, - "metadata": null, "sessionId": null, "status": "Succeeded", "jobType": "QuantumComputing", - "outputDataFormat": "honeywell.quantum-results.v1", "outputDataUri": "https://mystorage.blob.core.windows.net/job-00000000-0000-0000-0000-000000000001/rawOutputData?sv=PLACEHOLDER&st=2000-01-01T00%3A00%3A00Z&se=2050-01-01T00%3A00%3A00Z&sr=b&sp=r&rscd=attachment%3B+filename%3Dquantinuum-job-00000000-0000-0000-0000-000000000001.output.json&sig=PLACEHOLDER", - "beginExecutionTime": "2024-08-29T06:50:31.749261+00:00", "cancellationTime": - null, "quantumComputingData": {"count": 1}, "errorData": null, "isCancelling": - false, "tags": [], "name": "quantinuum-job", "id": "00000000-0000-0000-0000-000000000001", - "providerId": "quantinuum", "target": "quantinuum.sim.h1-1e", "creationTime": - "2024-08-29T06:50:28.7347976+00:00", "endExecutionTime": "2024-08-29T06:50:32.021879+00:00", - "costEstimate": {"currencyCode": "USD", "events": [{"dimensionId": "ehqc", - "dimensionName": "EHQC", "measureUnit": "hqc", "amountBilled": 6.2, "amountConsumed": - 6.2, "unitPrice": 0.0}], "estimatedTotal": 0.0}, "itemType": "Job"}' - headers: - connection: - - keep-alive - content-length: - - '1672' - content-type: - - application/json; charset=utf-8 - transfer-encoding: - - chunked - status: - code: 200 - message: OK -version: 1 diff --git a/azure-quantum/tests/unit/test_ionq.py b/azure-quantum/tests/unit/test_ionq.py index 15ceb922b..ae5ddc13e 100644 --- a/azure-quantum/tests/unit/test_ionq.py +++ b/azure-quantum/tests/unit/test_ionq.py @@ -43,40 +43,6 @@ def test_job_submit_ionq(self): @pytest.mark.live_test def test_job_submit_ionq_100_shots(self): self._test_job_submit_ionq(shots=100) - - - @pytest.mark.ionq - @pytest.mark.live_test - def test_job_submit_ionq_100_shots_with_deprecated_num_shots(self): - # Call submit with a deprecated 'num_shots' argument, need to emit a deprecation warning. - with pytest.warns( - DeprecationWarning, - match="The 'num_shots' parameter will be deprecated. Please, use 'shots' parameter instead." - ): - self._test_job_submit_ionq(shots=100, shots_as_deprecated_num_shots=True) - - @pytest.mark.ionq - @pytest.mark.live_test - def test_job_submit_ionq_with_shots_and_num_shots(self): - workspace = self.create_workspace() - circuit = self._3_qubit_ghz() - target = IonQ(workspace=workspace) - - shots = 100 - - with pytest.warns( - DeprecationWarning, - match="Both 'shots' and 'num_shots' parameters were specified. Defaulting to 'shots' parameter. " - "Please, use 'shots' since 'num_shots' will be deprecated." - ): - job = target.submit( - circuit=circuit, - shots=shots, - num_shots=10, - ) - - job.wait_until_completed(timeout_secs=DEFAULT_TIMEOUT_SECS) - assert job.details.input_params["shots"] == shots @pytest.mark.ionq @pytest.mark.live_test @@ -132,7 +98,6 @@ def test_job_submit_ionq_cost_estimate(self): def _test_job_submit_ionq( self, shots: int = None, - shots_as_deprecated_num_shots: bool = False, circuit=None ): workspace = self.create_workspace() @@ -149,10 +114,7 @@ def _test_job_submit_ionq( additional_kwargs = {} if shots is not None: - if shots_as_deprecated_num_shots: - additional_kwargs["num_shots"] = shots - else: - additional_kwargs["shots"] = shots + additional_kwargs["shots"] = shots job = target.submit( diff --git a/azure-quantum/tests/unit/test_qiskit.py b/azure-quantum/tests/unit/test_qiskit.py index 87d88f067..30615a470 100644 --- a/azure-quantum/tests/unit/test_qiskit.py +++ b/azure-quantum/tests/unit/test_qiskit.py @@ -283,12 +283,12 @@ def test_qiskit_submit_ionq_5_qubit_superposition(self): self.assertIn("azure-quantum-qiskit", provider._workspace.user_agent) backend = provider.get_backend("ionq.simulator") self.assertIsInstance(backend, IonQSimulatorQirBackend) - num_shots = 1000 + shots = 1000 circuit = self._5_qubit_superposition() circuit.metadata = {"some": "data"} - qiskit_job = backend.run(circuit, shots=num_shots) + qiskit_job = backend.run(circuit, shots=shots) # Check job metadata: self.assertEqual(qiskit_job._azure_job.details.target, "ionq.simulator") @@ -304,8 +304,8 @@ def test_qiskit_submit_ionq_5_qubit_superposition(self): if JobStatus.DONE == qiskit_job.status(): result = qiskit_job.result() - self.assertAlmostEqual(result.data()["counts"]["0"], num_shots // 2, delta=50) - self.assertAlmostEqual(result.data()["counts"]["1"], num_shots // 2, delta=50) + self.assertAlmostEqual(result.data()["counts"]["0"], shots // 2, delta=50) + self.assertAlmostEqual(result.data()["counts"]["1"], shots // 2, delta=50) self.assertEqual(result.data()["probabilities"], {"0": 0.5, "1": 0.5}) counts = result.get_counts() self.assertEqual(counts, result.data()["counts"]) @@ -317,12 +317,12 @@ def test_qiskit_submit_ionq_5_qubit_superposition_passthrough(self): provider = AzureQuantumProvider(workspace=workspace) self.assertIn("azure-quantum-qiskit", provider._workspace.user_agent) backend = provider.get_backend("ionq.simulator", input_data_format="ionq.circuit.v1", gateset="qis") - num_shots = 1000 + shots = 1000 circuit = self._5_qubit_superposition() circuit.metadata = {"some": "data"} - qiskit_job = backend.run(circuit, shots=num_shots) + qiskit_job = backend.run(circuit, shots=shots) # Check job metadata: self.assertEqual(qiskit_job._azure_job.details.target, "ionq.simulator") @@ -339,9 +339,9 @@ def test_qiskit_submit_ionq_5_qubit_superposition_passthrough(self): if JobStatus.DONE == qiskit_job.status(): result = qiskit_job.result() - self.assertEqual(sum(result.data()["counts"].values()), num_shots) - self.assertAlmostEqual(result.data()["counts"]["0"], num_shots // 2, delta=50) - self.assertAlmostEqual(result.data()["counts"]["1"], num_shots // 2, delta=50) + self.assertEqual(sum(result.data()["counts"].values()), shots) + self.assertAlmostEqual(result.data()["counts"]["0"], shots // 2, delta=50) + self.assertAlmostEqual(result.data()["counts"]["1"], shots // 2, delta=50) self.assertEqual(result.data()["probabilities"], {"0": 0.5, "1": 0.5}) counts = result.get_counts() self.assertEqual(counts, result.data()["counts"]) diff --git a/azure-quantum/tests/unit/test_quantinuum.py b/azure-quantum/tests/unit/test_quantinuum.py index bb7af3722..2bc80cca9 100644 --- a/azure-quantum/tests/unit/test_quantinuum.py +++ b/azure-quantum/tests/unit/test_quantinuum.py @@ -46,37 +46,6 @@ def test_job_submit_quantinuum_with_none_shots(self): self._test_job_submit_quantinuum("quantinuum.sim.h2-1sc", shots=None) - @pytest.mark.quantinuum - @pytest.mark.live_test - def test_job_submit_quantinuum_with_deprecated_num_shots(self): - with pytest.warns( - DeprecationWarning, - match="The 'num_shots' parameter will be deprecated. Please, use 'shots' parameter instead." - ): - self._test_job_submit_quantinuum("quantinuum.sim.h2-1sc", shots=100, shots_as_deprecated_num_shots=True) - - @pytest.mark.quantinuum - @pytest.mark.live_test - def test_job_submit_quantinuum_with_shots_and_deprecated_num_shots(self): - workspace = self.create_workspace() - circuit = self._teleport() - target = workspace.get_targets("quantinuum.sim.h2-1sc") - - shots = 100 - - with pytest.warns( - DeprecationWarning, - match="Both 'shots' and 'num_shots' parameters were specified. Defaulting to 'shots' parameter. " - "Please, use 'shots' since 'num_shots' will be deprecated." - ): - job = target.submit( - circuit, - shots=shots, - num_shots=10, - ) - job.wait_until_completed(timeout_secs=DEFAULT_TIMEOUT_SECS) - assert job.details.input_params["count"] == shots - @pytest.mark.quantinuum @pytest.mark.live_test def test_job_submit_quantinuum_with_conflictin_shots_and_count_from_input_params(self): @@ -132,7 +101,6 @@ def _test_job_submit_quantinuum( self, target_name, shots: int = None, - shots_as_deprecated_num_shots: bool = False ): workspace = self.create_workspace() circuit = self._teleport() @@ -140,10 +108,7 @@ def _test_job_submit_quantinuum( additional_kwargs = {} if shots: - if shots_as_deprecated_num_shots: - additional_kwargs["num_shots"] = shots - else: - additional_kwargs["shots"] = shots + additional_kwargs["shots"] = shots job = target.submit( circuit, diff --git a/azure-quantum/tests/unit/test_rigetti.py b/azure-quantum/tests/unit/test_rigetti.py index 1176b2c44..245638f62 100644 --- a/azure-quantum/tests/unit/test_rigetti.py +++ b/azure-quantum/tests/unit/test_rigetti.py @@ -65,11 +65,11 @@ def _run_job( return Result(job) def test_job_submit_rigetti_typed_input_params(self) -> None: - num_shots = 5 - result = self._run_job(BELL_STATE_QUIL, InputParams(count=num_shots)) + shots = 5 + result = self._run_job(BELL_STATE_QUIL, InputParams(count=shots)) self.assertIsNotNone(result) readout = result[READOUT] - self.assertEqual(len(readout), num_shots) + self.assertEqual(len(readout), shots) for shot in readout: self.assertEqual(len(shot), 2, "Bell state program should only measure 2 qubits") @@ -102,11 +102,11 @@ def test_job_submit_rigetti_with_conflicting_shots_and_count_from_input_params(s def test_job_submit_rigetti_dict_input_params(self) -> None: - num_shots = 5 - result = self._run_job(BELL_STATE_QUIL, {"count": num_shots}) + shots = 5 + result = self._run_job(BELL_STATE_QUIL, {"count": shots}) self.assertIsNotNone(result) readout = result[READOUT] - self.assertEqual(len(readout), num_shots) + self.assertEqual(len(readout), shots) for shot in readout: self.assertEqual(len(shot), 2, "Bell state program should only measure 2 qubits")