Skip to content
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
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.55.2"
__extension_version__ = "0.55.3rc0"
__extension_name__ = "pytket-quantinuum"
2 changes: 1 addition & 1 deletion pytket/extensions/quantinuum/backends/api_wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def __init__( # noqa: PLR0913
"""
self.online = True

self.url = f"{api_url if api_url else self.DEFAULT_API_URL}v{api_version}/"
self.url = f"{api_url if api_url else self.DEFAULT_API_URL}v{api_version}/" # noqa: FURB110

if session is None:
self.session = Session()
Expand Down
2 changes: 1 addition & 1 deletion pytket/extensions/quantinuum/backends/quantinuum.py
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ def default_compilation_pass(
assert optimisation_level in range(4)
passlist = [
DecomposeBoxes(),
scratch_reg_resize_pass(),
scratch_reg_resize_pass(max_size=63),
]
squash = AutoSquash({OpType.PhasedX, OpType.Rz})
target_2qb_gate = self.compilation_config.target_2qb_gate
Expand Down
10 changes: 7 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
packages=find_namespace_packages(include=["pytket.*"]),
include_package_data=True,
install_requires=[
"pytket >= 2.9.3",
"pytket-qir >= 0.25.0",
"pytket >= 2.14.0",
"pytket-qir >= 1.0.0",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we also want < 2 here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like this to automatically pic up 2.0 after that is released.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yes I forgot it's backwards-compatible.

"requests >= 2.32.2",
"types-requests",
"websockets >= 13.1",
Expand All @@ -56,7 +56,11 @@
"numpy >= 1.26.4",
],
extras_require={
"pecos": ["pytket-pecos ~= 0.2.2", "quantum-pecos == 0.7.0.dev4"],
"pecos": [
"pytket-pecos ~= 0.3.2",
"pytket-phir ~= 0.10.1",
"quantum-pecos == 0.8.0.dev3",
],
"calendar": ["matplotlib >= 3.8.3,< 3.11.0", "pandas >= 2.2.1,< 2.4.0"],
},
classifiers=[
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/backend_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def test_cancel(
# will raise HTTP error if job is already completed
b.cancel(handle)
time.sleep(1.0)
assert b.circuit_status(handle).status in [StatusEnum.CANCELLED]
assert b.circuit_status(handle).status in [StatusEnum.CANCELLED] # noqa: FURB171
except QuantinuumAPIError as err:
check_completed = "job has completed already" in str(err)
assert check_completed
Expand Down