From 3cdbd9caedd4f469e10ac8607d021e793041f6bc Mon Sep 17 00:00:00 2001 From: Joe Rixon Date: Mon, 5 Aug 2024 12:32:27 +0200 Subject: [PATCH 1/2] Update qiskit-aqt-provider to 1.8.x --- pyproject.toml | 3 ++- pytket/extensions/aqt/backends/aqt_api.py | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 5f65962..2f652ab 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,7 +33,7 @@ types-requests = "*" pydantic = "^2.0" networkx = "^3.0" sympy = ">=1.6" -qiskit-aqt-provider = "1.5.0" +qiskit-aqt-provider = "~1.8.1" [tool.poetry.group.tests] optional = true @@ -44,6 +44,7 @@ pytest-timeout = ">=1.4.2,<3.0.0" hypothesis = "*" requests_mock = "*" numpy = "*" +qiskit-aqt-provider = {version = "~1.8.1", extras = ["test"]} [tool.poetry.group.mypy] optional = true diff --git a/pytket/extensions/aqt/backends/aqt_api.py b/pytket/extensions/aqt/backends/aqt_api.py index 7baf5ff..abede74 100644 --- a/pytket/extensions/aqt/backends/aqt_api.py +++ b/pytket/extensions/aqt/backends/aqt_api.py @@ -204,10 +204,10 @@ def cancel_job(self, job_id: str) -> None: def _aqt_job_from_pytket_aqt_job( job: PytketAqtJob, -) -> api_models.JobSubmission: - """Create AQT JobSubmission from a list of circuits +) -> api_models.SubmitJobRequest: + """Create AQT SubmitJobRequest from a list of circuits and corresponding numbers of shots""" - return api_models.JobSubmission( + return api_models.SubmitJobRequest( job_type="quantum_circuit", label="pytket", payload=api_models.QuantumCircuits( From e547fdf9541a82bba673d0951652efa6853f87f9 Mon Sep 17 00:00:00 2001 From: Joe Rixon Date: Mon, 5 Aug 2024 13:40:12 +0200 Subject: [PATCH 2/2] Add changelog entry --- docs/changelog.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/changelog.rst b/docs/changelog.rst index 855071c..363d207 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -6,6 +6,7 @@ Unreleased * Implement new aqt api * Fix handling of ``simplify_initial`` kwarg in ``process_circuits()``. +* Updated Qiskit AQT Provider to v1.8. 0.33.0 (March 2024) -------------------