Skip to content

Commit

Permalink
Update python support to 3.10, 3.11 and 3.12 (#324)
Browse files Browse the repository at this point in the history
* Update setup.py

* Update README.md

* Update mypy.ini

* Update Quantinuum_circuit_submissions.py

* Update intro.txt

* Update check-examples.yml

* Update build_and_test.yml

* Update Quantinuum_circuit_submissions.ipynb

* Update setup.py

* Update changelog.rst

* Update build_and_test.yml

* Update build_and_test.yml

* Update intro.txt

* Update build_and_test.yml

* Update build_and_test.yml
  • Loading branch information
sjdilkes authored Jan 17, 2024
1 parent 991130c commit 7f11406
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 20 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,21 +42,21 @@ jobs:
with:
fetch-depth: '0'
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* +refs/heads/*:refs/remotes/origin/*
- name: Set up Python 3.9
- name: Set up Python 3.10
if: github.event_name == 'push' || github.event_name == 'schedule'
uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Build and test (3.9)
python-version: '3.10'
- name: Build and test (3.10)
if: github.event_name == 'push' || github.event_name == 'schedule'
shell: bash
run: |
./.github/workflows/build-test nomypy
- name: Set up Python 3.10
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Build and test (3.10) mypy
python-version: '3.11'
- name: Build and test (3.11) mypy
shell: bash
if: |
matrix.os == 'macos-12' &&
Expand All @@ -74,7 +74,7 @@ jobs:
)
run: |
./.github/workflows/build-test mypy
- name: Build and test (3.10) nomypy
- name: Build and test (3.11) nomypy
if: |
matrix.os != 'macos-12' &&
(
Expand All @@ -92,7 +92,7 @@ jobs:
shell: bash
run: |
./.github/workflows/build-test nomypy
- name: Build and test including integration (3.10) nomypy
- name: Build and test including integration (3.11) nomypy
if: |
matrix.os == 'ubuntu-22.04' &&
(
Expand Down Expand Up @@ -226,10 +226,10 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: '0'
- name: Set up Python 3.10
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: '3.11'
- name: Download all wheels
uses: actions/download-artifact@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11']
python-version: ['3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ be executed on Quantinuum's quantum devices.

## Getting started

`pytket-quantinuum` is available for Python 3.9, 3.10 and 3.11, on Linux, MacOS
`pytket-quantinuum` is available for Python 3.10, 3.11 and 3.12, on Linux, MacOS
and Windows. To install, run:

```shell
Expand Down
8 changes: 8 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
Changelog
~~~~~~~~~

Unreleased
----------

General:

* Python 3.12 support added, 3.9 dropped.
* pytket dependency updated to 1.24

0.27.0 (January 2024)
---------------------

Expand Down
5 changes: 3 additions & 2 deletions docs/intro.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pytket-quantinuum
``pytket-quantinuum`` is an extension to ``pytket`` that allows ``pytket`` circuits to
be executed on Quantinuum's quantum devices.

``pytket-quantinuum`` is available for Python 3.9, 3.10 and 3.11, on Linux, MacOS
``pytket-quantinuum`` is available for Python 3.10, 3.11 and 3.12, on Linux, MacOS
and Windows. To install, run:

::
Expand Down Expand Up @@ -254,7 +254,8 @@ If ``pytket-quantinuum`` is installed with the ``pecos`` option:
pip install pytket-quantinuum[pecos]

then it is possible to run circuits on an emulator running on the local machine
instead of using the remote emulator.
instead of using the remote emulator. Note that that installation option is only
available for python 3.10 and 3.11.

For example, the "H1-1" device would have a counterpart device called "H1-1LE".
Running circuits on this device would be similar to using the "H1-1" device or
Expand Down
2 changes: 1 addition & 1 deletion examples/Quantinuum_circuit_submissions.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/python/Quantinuum_circuit_submissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

# The TKET framework (pronounced "ticket") is a software platform for the development and execution of gate-level quantum computation, providing state-of-the-art performance in circuit compilation. It was created and is maintained by Quantinuum. The toolset is designed to extract the most out of the available NISQ devices of today and is platform-agnostic.

# In python, the `pytket` packages is available for python 3.9+. The `pytket` and `pytket-quantinuum` packages are included as part of the installation instructions on the user portal.
# In python, the `pytket` packages is available for python 3.10+. The `pytket` and `pytket-quantinuum` packages are included as part of the installation instructions on the user portal.

# For more information on TKET, see the following links:
# - [TKET user manual](https://tket.quantinuum.com/user-manual/manual_intro.html)
Expand Down
2 changes: 1 addition & 1 deletion mypy.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[mypy]
python_version = 3.9
python_version = 3.10
warn_unused_configs = True

disallow_untyped_decorators = False
Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
version=metadata["__extension_version__"],
author="TKET development team",
author_email="[email protected]",
python_requires=">=3.9",
python_requires=">=3.10",
project_urls={
"Documentation": "https://tket.quantinuum.com/extensions/pytket-quantinuum/index.html",
"Source": "https://github.com/CQCL/pytket-quantinuum",
Expand All @@ -43,7 +43,7 @@
packages=find_namespace_packages(include=["pytket.*"]),
include_package_data=True,
install_requires=[
"pytket ~= 1.23",
"pytket ~= 1.24",
"requests >= 2.2",
"types-requests",
"websockets >= 7.0",
Expand All @@ -54,9 +54,9 @@
extras_require={"pecos": ["pytket-pecos ~= 0.1.8"]},
classifiers=[
"Environment :: Console",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: Apache Software License",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX :: Linux",
Expand Down

0 comments on commit 7f11406

Please sign in to comment.