Skip to main content

pytket-qiskit

Slack Stack Exchange

Pytket is a python module for interfacing with tket, a quantum computing toolkit and optimising compiler developed by Quantinuum.

pytket-qiskit is an extension to pytket that allows pytket circuits to be executed on IBM Quantum backends and simulators via Qiskit, and provides conversion utilities between pytket and Qiskit circuit representations.

Some useful links:

Getting started

pytket-qiskit is compatible with Python versions 3.10 to 3.13 on Linux, MacOS and Windows. To install, run:

pip install pytket-qiskit

This will install pytket if it isn't already installed, and add new classes and methods into the pytket.extensions namespace.

To use Aer simulators and IBMQ emulators with pytket-qiskit, install with the aer option:

pip install pytket-qiskit[aer]

However, note that qiskit_aer is no longer actively maintained and will not be compatible with the most recent Python versions.

Bugs, support and feature requests

Please file bugs and feature requests on the Github issue tracker.

Development

To install an extension in editable mode run:

pip install -e .

We have set up the repo to be used with uv. You can use also:

uv sync --python 3.12

to install the package. This will automatically pick up all requirements for the tests as well.

Contributing

Pull requests are welcome. To make a PR, first fork the repo, make your proposed changes on the main branch, and open a PR from your fork. If it passes tests and is accepted after review, it will be merged in.

Code style

Formatting

All code should be formatted using ruff, with default options. This is checked on the CI.

Type annotation

On the CI, mypy is used as a static type checker and all submissions must pass its checks. You should therefore run mypy locally on any changed files before submitting a PR. You can run them with:

uv run mypy --config-file=mypy.ini --no-incremental --explicit-package-bases pytket tests

Linting

We use ruff on the CI to check compliance with a set of style requirements (listed in ruff.toml). You should run ruff over any changed files before submitting a PR, to catch any issues.

An easy way to meet all formatting and linting requirements is to issue pre-commit run --all-files.

If you are using uv running uv run pre-commit run --all-files --show-diff-on-failure will install the package and run all the checks.

Tests

To run the tests for this module:

  1. ensure you have installed pytest, hypothesis, and any modules listed in the dev-dependencies section of the pyproject.toml file; (If you are using uv this will be picked up automatically.)
  2. run pytest.

When adding a new feature, please add a test for it. When fixing a bug, please add a test that demonstrates the fix.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytket_qiskit-0.78.0-py3-none-any.whl (91.9 kB view details)

Uploaded Python 3

File details

Details for the file pytket_qiskit-0.78.0-py3-none-any.whl.

File metadata

  • Download URL: pytket_qiskit-0.78.0-py3-none-any.whl
  • Upload date:
  • Size: 91.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for pytket_qiskit-0.78.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4143a5da822ff8dcbe17a3189d7d8be18cde3f292368e9ba568987794f14e333
MD5 4257b126918d66e6feb572ca39c4d196
BLAKE2b-256 bf9fcbf51a4f3e8a7b3aafd33d6fb311eaa15af12ab26e0875d9581f615eb5fb

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.78.0 This release

1 file

0.77.0

1 file

0.76.0

1 file

0.75.0

1 file

0.74.0

1 file

0.73.0

1 file

0.72.0

1 file

0.71.1

1 file

0.71.0

1 file

0.70.0

1 file

0.69.0

1 file

0.68.3

1 file

0.68.2

1 file

0.68.0

1 file

0.67.0

1 file

0.66.0

1 file

0.65.0

1 file

0.64.0

1 file

0.63.0

1 file

0.62.0

1 file

0.60.0

1 file

0.59.0

1 file

0.58.0

1 file

0.57.0

1 file

0.56.0

1 file

0.55.0

1 file

0.54.1

1 file

0.54.0

1 file

0.53.0

1 file

0.52.0

1 file

0.51.0

1 file

0.50.0

1 file

0.49.0

1 file

0.48.0

1 file

0.47.0

1 file

0.46.0

1 file

0.45.0

1 file

0.44.0

1 file

0.43.0

1 file

0.42.0

1 file

0.41.0

1 file

0.40.0

1 file

0.39.0

1 file

0.38.0

1 file

0.37.1

1 file

0.37.0

1 file

0.36.0

1 file

0.35.0

1 file

0.34.0

1 file

0.33.0

1 file

0.32.0

1 file

0.31.0

1 file

0.30.0

1 file

0.29.0

1 file

0.28.0

1 file

0.27.0

1 file

0.26.0

1 file

0.25.0

1 file

0.24.0

1 file

0.23.0

1 file

0.22.2

1 file

0.22.1

1 file

0.22.0

1 file

0.21.0

1 file

0.20.0

1 file

0.19.0

1 file

0.18.0

1 file

0.17.0

1 file

0.16.1

1 file

0.16.0

1 file

0.15.1

1 file

0.15.0

1 file

0.14.1

1 file

0.13.0

1 file

0.10.0

1 file

0.9.1

1 file

0.9.0

1 file

0.8.0

1 file

0.7.1

1 file

0.7.0

1 file

0.6.1

1 file

0.6.0

1 file

0.4.2

1 file

0.4.1

1 file

0.4

1 file

0.3.6

1 file

0.3.4

1 file

0.3.3

1 file

0.3.2

1 file

0.3.0

1 file

0.2.0

1 file

0.1.4

1 file

0.1.3

2 files

0.1.2

2 files

0.1.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page