From 0bb0086972edd3aac28a49e72abe843617349f70 Mon Sep 17 00:00:00 2001 From: Abe Coull <85974725+math411@users.noreply.github.com> Date: Wed, 22 May 2024 14:53:59 -0700 Subject: [PATCH] fix: Add IQM changes (#178) Co-authored-by: Coull Co-authored-by: Cody Wang --- qiskit_braket_provider/providers/adapter.py | 13 +++++++++++-- qiskit_braket_provider/version.py | 2 +- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/qiskit_braket_provider/providers/adapter.py b/qiskit_braket_provider/providers/adapter.py index 7ce1ddf..4254530 100644 --- a/qiskit_braket_provider/providers/adapter.py +++ b/qiskit_braket_provider/providers/adapter.py @@ -17,6 +17,7 @@ ) from braket.device_schema import DeviceActionType, OpenQASMDeviceActionProperties from braket.device_schema.ionq import IonqDeviceCapabilities +from braket.device_schema.iqm import IqmDeviceCapabilities from braket.device_schema.oqc import OqcDeviceCapabilities from braket.device_schema.rigetti import RigettiDeviceCapabilities from braket.device_schema.simulators import GateModelSimulatorDeviceCapabilities @@ -269,7 +270,12 @@ def aws_device_to_target(device: AwsDevice) -> Target: ) elif isinstance( properties, - (IonqDeviceCapabilities, RigettiDeviceCapabilities, OqcDeviceCapabilities), + ( + IonqDeviceCapabilities, + RigettiDeviceCapabilities, + OqcDeviceCapabilities, + IqmDeviceCapabilities, + ), ): return _qpu_target(f"Target for Amazon Braket QPU: {device.name}", properties) @@ -299,7 +305,10 @@ def _simulator_target( def _qpu_target( description: str, properties: Union[ - IonqDeviceCapabilities, RigettiDeviceCapabilities, OqcDeviceCapabilities + IonqDeviceCapabilities, + RigettiDeviceCapabilities, + OqcDeviceCapabilities, + IqmDeviceCapabilities, ], ): qubit_count = properties.paradigm.qubitCount diff --git a/qiskit_braket_provider/version.py b/qiskit_braket_provider/version.py index cd8cfa8..584179d 100644 --- a/qiskit_braket_provider/version.py +++ b/qiskit_braket_provider/version.py @@ -1,3 +1,3 @@ """Qiskit-Braket provider version.""" -__version__ = "0.3.1" +__version__ = "0.4.0"