Skip to content

Commit

Permalink
fix: Add IQM changes (#178)
Browse files Browse the repository at this point in the history
Co-authored-by: Coull <accoull@amazon.com>
Co-authored-by: Cody Wang <speller26@gmail.com>
  • Loading branch information
3 people authored May 22, 2024
1 parent 371da9b commit 0bb0086
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
13 changes: 11 additions & 2 deletions qiskit_braket_provider/providers/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)

Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion qiskit_braket_provider/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Qiskit-Braket provider version."""

__version__ = "0.3.1"
__version__ = "0.4.0"

0 comments on commit 0bb0086

Please sign in to comment.