From 5d364f16e5e53b283b1d69fa04d74b442af4b6c0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 26 Mar 2024 10:26:14 +0100 Subject: [PATCH 1/5] Bump actions/deploy-pages from 4.0.4 to 4.0.5 (#77) Bumps [actions/deploy-pages](https://github.com/actions/deploy-pages) from 4.0.4 to 4.0.5. - [Release notes](https://github.com/actions/deploy-pages/releases) - [Commits](https://github.com/actions/deploy-pages/compare/v4.0.4...v4.0.5) --- updated-dependencies: - dependency-name: actions/deploy-pages dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/build_and_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index c957af7..d393b11 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -159,4 +159,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v4.0.4 + uses: actions/deploy-pages@v4.0.5 From fe012b354a1482e1fa47b61d2958728a9dd71837 Mon Sep 17 00:00:00 2001 From: cqc-melf <70640934+cqc-melf@users.noreply.github.com> Date: Wed, 17 Apr 2024 08:42:17 +0100 Subject: [PATCH 2/5] Update/fixmypydocs (#78) * fix mypy * remove copyright from documentation * update copyright notice * fix mypy ii --- .github/workflows/docs/build-docs | 2 -- .github/workflows/docs/conf.py | 2 +- pytket/extensions/pyquil/__init__.py | 2 +- pytket/extensions/pyquil/backends/__init__.py | 2 +- pytket/extensions/pyquil/backends/forest.py | 2 +- pytket/extensions/pyquil/pyquil_convert.py | 4 ++-- setup.py | 2 +- tests/pyquil_convert_test.py | 2 +- tests/qvm_backend_test.py | 2 +- 9 files changed, 9 insertions(+), 11 deletions(-) diff --git a/.github/workflows/docs/build-docs b/.github/workflows/docs/build-docs index e2b4cbd..d89f116 100755 --- a/.github/workflows/docs/build-docs +++ b/.github/workflows/docs/build-docs @@ -76,8 +76,6 @@ def build_module_docs(): "-D", f"project=pytket-{MODULE}", "-D", - f"copyright={datetime.date.today().year} Cambridge Quantum Computing", - "-D", f"version={'.'.join(v[:2])}", "-D", f"release={'.'.join(v)}", diff --git a/.github/workflows/docs/conf.py b/.github/workflows/docs/conf.py index 28c40bb..979a83c 100644 --- a/.github/workflows/docs/conf.py +++ b/.github/workflows/docs/conf.py @@ -3,7 +3,7 @@ # Configuration file for the Sphinx documentation builder. # See https://www.sphinx-doc.org/en/master/usage/configuration.html -author = "Cambridge Quantum Computing Ltd" +author = "Quantinuum" extensions = [ "sphinx.ext.autodoc", diff --git a/pytket/extensions/pyquil/__init__.py b/pytket/extensions/pyquil/__init__.py index 2013e32..81d1ad7 100644 --- a/pytket/extensions/pyquil/__init__.py +++ b/pytket/extensions/pyquil/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2019-2024 Cambridge Quantum Computing +# Copyright 2019-2024 Quantinuum # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/pytket/extensions/pyquil/backends/__init__.py b/pytket/extensions/pyquil/backends/__init__.py index 75e1c79..0d1e593 100644 --- a/pytket/extensions/pyquil/backends/__init__.py +++ b/pytket/extensions/pyquil/backends/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2019-2024 Cambridge Quantum Computing +# Copyright 2019-2024 Quantinuum # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/pytket/extensions/pyquil/backends/forest.py b/pytket/extensions/pyquil/backends/forest.py index 3fc2c8b..2895d24 100644 --- a/pytket/extensions/pyquil/backends/forest.py +++ b/pytket/extensions/pyquil/backends/forest.py @@ -1,4 +1,4 @@ -# Copyright 2019-2024 Cambridge Quantum Computing +# Copyright 2019-2024 Quantinuum # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/pytket/extensions/pyquil/pyquil_convert.py b/pytket/extensions/pyquil/pyquil_convert.py index 81bdd14..ad76d8f 100644 --- a/pytket/extensions/pyquil/pyquil_convert.py +++ b/pytket/extensions/pyquil/pyquil_convert.py @@ -1,4 +1,4 @@ -# Copyright 2019-2024 Cambridge Quantum Computing +# Copyright 2019-2024 Quantinuum # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -276,7 +276,7 @@ def tk_to_pyquil( + qbt.__repr__() + " after measurement" ) - bit = command.args[1] + bit = cast(Bit, command.args[1]) b = cregmap[bit.reg_name][bit.index[0]] # type: ignore measures.append(Measurement(qbt, b)) # type: ignore measured_qubits.append(qbt) diff --git a/setup.py b/setup.py index a393d41..2031333 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,4 @@ -# Copyright 2020-2024 Cambridge Quantum Computing +# Copyright 2020-2024 Quantinuum # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tests/pyquil_convert_test.py b/tests/pyquil_convert_test.py index 3066416..fe5fee8 100644 --- a/tests/pyquil_convert_test.py +++ b/tests/pyquil_convert_test.py @@ -1,4 +1,4 @@ -# Copyright 2019-2024 Cambridge Quantum Computing +# Copyright 2019-2024 Quantinuum # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tests/qvm_backend_test.py b/tests/qvm_backend_test.py index a5862c5..06a6c59 100644 --- a/tests/qvm_backend_test.py +++ b/tests/qvm_backend_test.py @@ -1,4 +1,4 @@ -# Copyright 2019-2024 Cambridge Quantum Computing +# Copyright 2019-2024 Quantinuum # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. From 97cd06c8312d4973b4a7a1004a4bf8f96d7d95dc Mon Sep 17 00:00:00 2001 From: Melf Date: Wed, 17 Apr 2024 10:38:26 +0100 Subject: [PATCH 3/5] update changelog --- docs/changelog.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/changelog.rst b/docs/changelog.rst index bb0e212..6516933 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -1,6 +1,11 @@ Changelog ~~~~~~~~~ +0.35.0 (April 2024) +------------------- + +* Updated pytket version requirement to 1.27. + 0.34.0 (March 2024) ------------------- From 90a91557c4655e89f3cbd3092ec3fe19565e259a Mon Sep 17 00:00:00 2001 From: Melf Date: Wed, 17 Apr 2024 10:41:42 +0100 Subject: [PATCH 4/5] update version --- _metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_metadata.py b/_metadata.py index b7aafbd..86052d5 100644 --- a/_metadata.py +++ b/_metadata.py @@ -1,2 +1,2 @@ -__extension_version__ = "0.34.0" +__extension_version__ = "0.35.0" __extension_name__ = "pytket-pyquil" From b643ad66e2f054e696a527da167194d2c6c2cb80 Mon Sep 17 00:00:00 2001 From: Melf Date: Wed, 17 Apr 2024 10:42:44 +0100 Subject: [PATCH 5/5] update pytket version --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 2031333..e910991 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.26", + "pytket ~= 1.27", "pyquil ~= 3.5", "typing-extensions ~= 4.2", ],