From e3cf228335d70a8947c0449b875ee82f10ead1ac Mon Sep 17 00:00:00 2001 From: Melf Date: Mon, 5 Aug 2024 14:58:39 +0100 Subject: [PATCH 1/2] update version, changelog and pytketversion --- _metadata.py | 2 +- docs/changelog.rst | 6 ++++++ setup.py | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/_metadata.py b/_metadata.py index 847b366..f7f4772 100644 --- a/_metadata.py +++ b/_metadata.py @@ -1,2 +1,2 @@ -__extension_version__ = "0.36.0" +__extension_version__ = "0.37.0" __extension_name__ = "pytket-pyquil" diff --git a/docs/changelog.rst b/docs/changelog.rst index fd73a72..3fe8909 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -1,6 +1,12 @@ Changelog ~~~~~~~~~ +0.37.0 (August 2024) +-------------------- + +* Update pytket version requirement to 1.31. +* add CH and CY to the supported gateset. + 0.36.0 (July 2024) ------------------ diff --git a/setup.py b/setup.py index 356f96e..e4cef21 100644 --- a/setup.py +++ b/setup.py @@ -44,7 +44,7 @@ packages=find_namespace_packages(include=["pytket.*"]), include_package_data=True, install_requires=[ - "pytket >= 1.30.0", + "pytket >= 1.31.0", "pyquil >= 4.13.0", "typing-extensions >= 4.12.2", ], From 98e2dc8cfce92f6aa6657de1d14826d01093a2a2 Mon Sep 17 00:00:00 2001 From: Melf Date: Mon, 5 Aug 2024 15:02:13 +0100 Subject: [PATCH 2/2] fix mypy --- tests/pyquil_convert_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/pyquil_convert_test.py b/tests/pyquil_convert_test.py index b9ee8ec..ab8225c 100644 --- a/tests/pyquil_convert_test.py +++ b/tests/pyquil_convert_test.py @@ -138,8 +138,8 @@ def test_conversion_of_controlled_y() -> None: {"name": "H", "qubits": [1, 0]}, ] c = Circuit(2, 2) - c.CY(*single_controlled_gates_attributes[0]["qubits"]) - c.CH(*single_controlled_gates_attributes[1]["qubits"]) + c.CY(*single_controlled_gates_attributes[0]["qubits"]) # type: ignore + c.CH(*single_controlled_gates_attributes[1]["qubits"]) # type: ignore p = tk_to_pyquil(c)