Skip to content

Commit

Permalink
Merge pull request #76 from CQCL/release/1.17.0
Browse files Browse the repository at this point in the history
Release/1.17.0
  • Loading branch information
cqc-melf committed Jul 6, 2023
2 parents 6b15e57 + ae12cf0 commit 917457f
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 7 deletions.
2 changes: 1 addition & 1 deletion _metadata.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__extension_version__ = "0.28.0"
__extension_version__ = "0.29.0"
__extension_name__ = "pytket-braket"
5 changes: 5 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Changelog
~~~~~~~~~

0.29.0 (July 2023)
------------------

* Update pytket version requirement to 1.17.

0.28.0 (June 2023)
------------------

Expand Down
2 changes: 1 addition & 1 deletion docs/intro.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ pytket-braket
=============

``pytket-braket`` is an extension to ``pytket`` that allows ``pytket`` circuits to
be executed on quantum devices and simulators via Amazon's Braket service.
be executed on gate-model quantum devices and simulators via Amazon's Braket service.

``pytket-braket`` is available for Python 3.9, 3.10 and 3.11, on Linux, MacOS
and Windows. To install, run:
Expand Down
8 changes: 5 additions & 3 deletions pytket/extensions/braket/backends/braket.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,9 +356,11 @@ def __init__(
else:
raise ValueError(f"Unsupported device type {aws_device_type}")
props = self._device.properties.dict()
try:
device_info = props["action"][DeviceActionType.JAQCD]
except KeyError:
action = props["action"]
device_info = action.get(DeviceActionType.JAQCD)
if device_info is None:
device_info = action.get(DeviceActionType.OPENQASM)
if device_info is None:
# This can happen with quantum anealers (e.g. D-Wave devices)
raise ValueError(f"Unsupported device {device}")

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
packages=find_namespace_packages(include=["pytket.*"]),
include_package_data=True,
install_requires=[
"pytket ~= 1.16",
"pytket ~= 1.17",
"amazon-braket-sdk ~= 1.31",
"amazon-braket-schemas ~= 1.10",
"amazon-braket-default-simulator ~= 1.9",
Expand Down
8 changes: 7 additions & 1 deletion tests/backend_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,13 @@ def test_tn1_simulator(authenticated_braket_backend: BraketBackend) -> None:
"region": "us-east-1",
"provider": "ionq",
"device": "Harmony",
}
},
{
"device_type": "qpu",
"region": "us-east-1",
"provider": "ionq",
"device": "Aria-1",
},
],
indirect=True,
)
Expand Down

0 comments on commit 917457f

Please sign in to comment.