From d4c2615d3bcfa00ef28c53b01b495f5387fabd8d Mon Sep 17 00:00:00 2001 From: cqc-melf <70640934+cqc-melf@users.noreply.github.com> Date: Tue, 21 Nov 2023 17:13:48 +0000 Subject: [PATCH 1/7] Update/dependabot docs (#69) * addtketwebsite * updateextlink * updatedependabot * replaceallgithublinks --- .github/dependabot.yml | 10 +++++++++- .github/workflows/docs/build-docs | 6 ++++-- .github/workflows/docs/conf.py | 2 +- README.md | 6 +++--- setup.py | 2 +- 5 files changed, 18 insertions(+), 8 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index ac1560a..f384d36 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -5,4 +5,12 @@ updates: - package-ecosystem: "github-actions" directory: "/" schedule: - interval: "weekly" + interval: "daily" + - package-ecosystem: pip + directory: "/" + schedule: + interval: "daily" + groups: + python-packages: + patterns: + - "*" diff --git a/.github/workflows/docs/build-docs b/.github/workflows/docs/build-docs index b256ac7..875a1ae 100755 --- a/.github/workflows/docs/build-docs +++ b/.github/workflows/docs/build-docs @@ -10,8 +10,9 @@ import sys DOCS_DIR = Path(sys.argv[0]).absolute().parent MODULES_DIR = DOCS_DIR.parent.parent.parent -PYTKET_DOCS_LINK = "https://cqcl.github.io/tket/pytket/api/index.html" -PYTKET_EX_DOCS_LINK = "https://cqcl.github.io/pytket-extensions/api/index.html" +TKET_WEBSITE_LINK = "https://tket.quantinuum.com/" +PYTKET_DOCS_LINK = "https://tket.quantinuum.com/api-docs/" +PYTKET_EX_DOCS_LINK = "https://tket.quantinuum.com/api-docs/extensions.html" MODULE = "iqm" PYTKET_IQM_PYPI_LINK = "https://pypi.org/project/pytket-iqm/" PYTKET_IQM_GITHUB = "https://github.com/CQCL/pytket-iqm" @@ -52,6 +53,7 @@ def build_module_docs(): content.append( "\n.. toctree::\n\t:caption: More documentation:\n\t:maxdepth: 1\n\n" ) + content.append(f"\tTKET website <{TKET_WEBSITE_LINK}>\n") content.append(f"\tpytket <{PYTKET_DOCS_LINK}>\n") content.append(f"\tpytket extensions <{PYTKET_EX_DOCS_LINK}>\n") content.append("\n.. toctree::\n\t:caption: Links:\n\t:maxdepth: 1\n\n") diff --git a/.github/workflows/docs/conf.py b/.github/workflows/docs/conf.py index 99c1e64..6872621 100644 --- a/.github/workflows/docs/conf.py +++ b/.github/workflows/docs/conf.py @@ -32,7 +32,7 @@ # -- Extension configuration ------------------------------------------------- -pytketdoc_base = "https://cqcl.github.io/tket/pytket/api/" +pytketdoc_base = "https://tket.quantinuum.com/api-docs/" intersphinx_mapping = { "https://docs.python.org/3/": None, diff --git a/README.md b/README.md index bc24485..297f27d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # pytket-iqm -[Pytket](https://cqcl.github.io/tket/pytket/api/index.html) is a python module +[Pytket](https://tket.quantinuum.com/api-docs/index.html) is a python module providing an extensive set of tools for compiling and executing quantum circuits. `pytket-iqm` is an extension to `pytket` that allows `pytket` circuits to be @@ -19,11 +19,11 @@ This will install `pytket` if it isn't already installed, and add new classes and methods into the `pytket.extensions` namespace. API documentation is available -[here](https://cqcl.github.io/pytket-iqm/api/index.html). +[here](https://tket.quantinuum.com/extensions/pytket-iqm/api/index.html). Under the hood, `pytket-iqm` uses `iqm-client` to interact with the devices. See the IQM Client [documentation](https://iqm-finland.github.io/iqm-client/) and -Pytket [documentation](https://cqcl.github.io/tket/pytket/api/) for more info. +Pytket [documentation](https://tket.quantinuum.com/api-docs/) for more info. To use the integration, initialise an `IQMBackend`, construct a Pytket circuit, compile it and run. Here is a small example of running a GHZ state circuit: diff --git a/setup.py b/setup.py index a4af4aa..37080e6 100644 --- a/setup.py +++ b/setup.py @@ -32,7 +32,7 @@ author_email="tket-support@cambridgequantum.com", python_requires=">=3.9", project_urls={ - "Documentation": "https://cqcl.github.io/pytket-iqm/api/index.html", + "Documentation": "https://tket.quantinuum.com/extensions/pytket-iqm/api/index.html", "Source": "https://github.com/CQCL/pytket-iqm", "Tracker": "https://github.com/CQCL/pytket-iqm/issues", }, From 3a63772d9db327dadc6efcbd937f4cd9b306e7de Mon Sep 17 00:00:00 2001 From: Alec Edgington <54802828+cqc-alec@users.noreply.github.com> Date: Wed, 22 Nov 2023 10:10:13 +0000 Subject: [PATCH 2/7] Bump the python-packages group with 1 update (#71) Updates the requirements on [pytest-timeout](https://github.com/pytest-dev/pytest-timeout) to permit the latest version. - [Commits](https://github.com/pytest-dev/pytest-timeout/compare/1.4.2...2.2.0) --- updated-dependencies: - dependency-name: pytest-timeout dependency-type: direct:production dependency-group: python-packages ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- tests/test-requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test-requirements.txt b/tests/test-requirements.txt index bf9dafa..d26f671 100644 --- a/tests/test-requirements.txt +++ b/tests/test-requirements.txt @@ -1,5 +1,5 @@ pytest -pytest-timeout ~= 1.4.2 +pytest-timeout ~= 2.2.0 hypothesis requests_mock types-requests From e3b2c1e4bcad1b420a5b46c42e608e1ebf612035 Mon Sep 17 00:00:00 2001 From: cqc-melf <70640934+cqc-melf@users.noreply.github.com> Date: Wed, 22 Nov 2023 18:12:10 +0000 Subject: [PATCH 3/7] update links in documentation (#72) --- .github/workflows/docs/build-docs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docs/build-docs b/.github/workflows/docs/build-docs index 875a1ae..09ca6ab 100755 --- a/.github/workflows/docs/build-docs +++ b/.github/workflows/docs/build-docs @@ -10,6 +10,8 @@ import sys DOCS_DIR = Path(sys.argv[0]).absolute().parent MODULES_DIR = DOCS_DIR.parent.parent.parent +TKET_EXAMPLES_LINK = "https://tket.quantinuum.com/examples/" +TKET_MANUAL_LINK = "https://tket.quantinuum.com/user-manual/" TKET_WEBSITE_LINK = "https://tket.quantinuum.com/" PYTKET_DOCS_LINK = "https://tket.quantinuum.com/api-docs/" PYTKET_EX_DOCS_LINK = "https://tket.quantinuum.com/api-docs/extensions.html" @@ -51,11 +53,13 @@ def build_module_docs(): with open(mod_docs / "intro.txt", "r") as f: content = f.readlines() content.append( - "\n.. toctree::\n\t:caption: More documentation:\n\t:maxdepth: 1\n\n" + "\n.. toctree::\n\t:caption: pytket documentation:\n\t:maxdepth: 1\n\n" ) - content.append(f"\tTKET website <{TKET_WEBSITE_LINK}>\n") - content.append(f"\tpytket <{PYTKET_DOCS_LINK}>\n") + content.append(f"\tpytket API docs <{PYTKET_DOCS_LINK}>\n") content.append(f"\tpytket extensions <{PYTKET_EX_DOCS_LINK}>\n") + content.append(f"\tManual <{TKET_MANUAL_LINK}>\n") + content.append(f"\tExample notebooks <{TKET_EXAMPLES_LINK}>\n") + content.append(f"\tTKET website <{TKET_WEBSITE_LINK}>\n") content.append("\n.. toctree::\n\t:caption: Links:\n\t:maxdepth: 1\n\n") content.append(f"\tbug tracker <{PYTKET_IQM_GITHUB}/issues>\n") content.append(f"\tGitHub <{PYTKET_IQM_GITHUB}>\n") From 0abf26fc6f3d7b16845594a5bb63190c6089293d Mon Sep 17 00:00:00 2001 From: CalMacCQ <93673602+CalMacCQ@users.noreply.github.com> Date: Thu, 23 Nov 2023 10:09:09 +0000 Subject: [PATCH 4/7] Fix pytket-iqm link in README (#73) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 297f27d..d4d07bb 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ This will install `pytket` if it isn't already installed, and add new classes and methods into the `pytket.extensions` namespace. API documentation is available -[here](https://tket.quantinuum.com/extensions/pytket-iqm/api/index.html). +[here](https://tket.quantinuum.com/extensions/pytket-iqm/). Under the hood, `pytket-iqm` uses `iqm-client` to interact with the devices. See the IQM Client [documentation](https://iqm-finland.github.io/iqm-client/) and From 7bbb212a149415ebc335c46c0ffbf3f5a789efbc Mon Sep 17 00:00:00 2001 From: Melf Date: Thu, 23 Nov 2023 18:16:57 +0000 Subject: [PATCH 5/7] update pytket version --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 37080e6..c8655b4 100644 --- a/setup.py +++ b/setup.py @@ -42,7 +42,7 @@ license="Apache 2", packages=find_namespace_packages(include=["pytket.*"]), include_package_data=True, - install_requires=["pytket ~= 1.21", "iqm-client ~= 14.0"], + install_requires=["pytket ~= 1.22", "iqm-client ~= 14.0"], classifiers=[ "Environment :: Console", "Programming Language :: Python :: 3.9", From 819e6b0198d7e0079f9d2c3345ff1784dbd09886 Mon Sep 17 00:00:00 2001 From: Melf Date: Thu, 23 Nov 2023 18:17:19 +0000 Subject: [PATCH 6/7] update changelog --- docs/changelog.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/changelog.rst b/docs/changelog.rst index d3e9177..29310be 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -1,6 +1,11 @@ Changelog ~~~~~~~~~ +0.9.0 (November 2023) +--------------------- + +* Updated pytket version requirement to 1.22. + 0.8.0 (October 2023) -------------------- From ce431a1aaf51f1963b78c3b05a6c28d40d937a7e Mon Sep 17 00:00:00 2001 From: Melf Date: Thu, 23 Nov 2023 18:26:13 +0000 Subject: [PATCH 7/7] update extension version --- _metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_metadata.py b/_metadata.py index 567207f..55d0e56 100644 --- a/_metadata.py +++ b/_metadata.py @@ -1,2 +1,2 @@ -__extension_version__ = "0.8.0" +__extension_version__ = "0.9.0" __extension_name__ = "pytket-iqm"