Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Add IQM changes #178

Merged
merged 4 commits into from
May 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
Loading