tket2


Nametket2 JSON
Version 0.6.0 PyPI version JSON
download
home_pagehttps://github.com/CQCL/tket2
SummaryQuantinuum's TKET2 Quantum Compiler
upload_time2024-12-16 17:48:52
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10
licenseApache-2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # tket2

[![pypi][]](https://pypi.org/project/tket2/)
[![codecov][]](https://codecov.io/gh/CQCL/tket2)
[![py-version][]](https://pypi.org/project/tket2/)

  [codecov]: https://img.shields.io/codecov/c/gh/CQCL/tket2?logo=codecov
  [py-version]: https://img.shields.io/pypi/pyversions/tket2
  [pypi]: https://img.shields.io/pypi/v/tket2

TKET2 is an open source quantum compiler developed by Quantinuum. Central to
TKET2's design is its hardware agnosticism which allows researchers and quantum
software developers to take advantage of its powerful compilation for many
different quantum architectures.

This is the Python front-end for TKET2, providing a high-level interface for working with quantum circuits.
See also the Rust library with the same name on [crates.io](https://crates.io/crates/tket2).


## Install

TKET2 can be installed via `pip`. Requires Python >= 3.10.

```sh
pip install tket2
```

## Usage

See the [Getting Started][getting-started] guide and the other [examples].

  [getting-started]: https://github.com/CQCL/tket2/blob/main/tket2-py/examples/1-Getting-Started.ipynb
  [examples]: https://github.com/CQCL/tket2/blob/main/tket2-py/examples/

## Development

This package uses [pyo3](https://pyo3.rs/latest/) and
[maturin](https://github.com/PyO3/maturin) to bind TKET2 functionality to
python as the `tket2` package.

Recommended:

A clean python 3.10 environment with `maturin` installed. At which point running
`maturin develop` in this directory should build and install the package in the
environment. Run `pytest` in this directory to test everything is working.

Don't forget to use the `--release` flag when using Badger and other heavy
computational workloads.

See [DEVELOPMENT.md] for more information.

  [DEVELOPMENT.md]: https://github.com/CQCL/tket2/blob/main/DEVELOPMENT.md


## License

This project is licensed under Apache License, Version 2.0 ([LICENCE][] or http://www.apache.org/licenses/LICENSE-2.0).

  [LICENCE]: https://github.com/CQCL/tket2/blob/main/LICENCE


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/CQCL/tket2",
    "name": "tket2",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": "TKET development team <tket-support@quantinuum.com>",
    "keywords": null,
    "author": null,
    "author_email": "TKET development team <tket-support@quantinuum.com>",
    "download_url": "https://files.pythonhosted.org/packages/22/27/285392537150ee0472cd6f0bf615ed512823497b2d5b9e51726e3cdd922a/tket2-0.6.0.tar.gz",
    "platform": null,
    "description": "# tket2\n\n[![pypi][]](https://pypi.org/project/tket2/)\n[![codecov][]](https://codecov.io/gh/CQCL/tket2)\n[![py-version][]](https://pypi.org/project/tket2/)\n\n  [codecov]: https://img.shields.io/codecov/c/gh/CQCL/tket2?logo=codecov\n  [py-version]: https://img.shields.io/pypi/pyversions/tket2\n  [pypi]: https://img.shields.io/pypi/v/tket2\n\nTKET2 is an open source quantum compiler developed by Quantinuum. Central to\nTKET2's design is its hardware agnosticism which allows researchers and quantum\nsoftware developers to take advantage of its powerful compilation for many\ndifferent quantum architectures.\n\nThis is the Python front-end for TKET2, providing a high-level interface for working with quantum circuits.\nSee also the Rust library with the same name on [crates.io](https://crates.io/crates/tket2).\n\n\n## Install\n\nTKET2 can be installed via `pip`. Requires Python >= 3.10.\n\n```sh\npip install tket2\n```\n\n## Usage\n\nSee the [Getting Started][getting-started] guide and the other [examples].\n\n  [getting-started]: https://github.com/CQCL/tket2/blob/main/tket2-py/examples/1-Getting-Started.ipynb\n  [examples]: https://github.com/CQCL/tket2/blob/main/tket2-py/examples/\n\n## Development\n\nThis package uses [pyo3](https://pyo3.rs/latest/) and\n[maturin](https://github.com/PyO3/maturin) to bind TKET2 functionality to\npython as the `tket2` package.\n\nRecommended:\n\nA clean python 3.10 environment with `maturin` installed. At which point running\n`maturin develop` in this directory should build and install the package in the\nenvironment. Run `pytest` in this directory to test everything is working.\n\nDon't forget to use the `--release` flag when using Badger and other heavy\ncomputational workloads.\n\nSee [DEVELOPMENT.md] for more information.\n\n  [DEVELOPMENT.md]: https://github.com/CQCL/tket2/blob/main/DEVELOPMENT.md\n\n\n## License\n\nThis project is licensed under Apache License, Version 2.0 ([LICENCE][] or http://www.apache.org/licenses/LICENSE-2.0).\n\n  [LICENCE]: https://github.com/CQCL/tket2/blob/main/LICENCE\n\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "Quantinuum's TKET2 Quantum Compiler",
    "version": "0.6.0",
    "project_urls": {
        "Homepage": "https://github.com/CQCL/tket2",
        "homepage": "https://github.com/CQCL/tket2/tree/main/tket2-py",
        "repository": "https://github.com/CQCL/tket2/tree/main/tket2-py"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "cefc8fbcc8c98a9243231c6380bcccdfef28c8461a675c6f758309746f316691",
                "md5": "28e9ab961d21f06e839c14e073aa0365",
                "sha256": "e618e8a99b1ddd62b8f09061f83e8206dc877643426844157eb2414f1eefd601"
            },
            "downloads": -1,
            "filename": "tket2-0.6.0-cp310-abi3-macosx_10_12_x86_64.whl",
            "has_sig": false,
            "md5_digest": "28e9ab961d21f06e839c14e073aa0365",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.10",
            "size": 3718551,
            "upload_time": "2024-12-16T17:48:42",
            "upload_time_iso_8601": "2024-12-16T17:48:42.182377Z",
            "url": "https://files.pythonhosted.org/packages/ce/fc/8fbcc8c98a9243231c6380bcccdfef28c8461a675c6f758309746f316691/tket2-0.6.0-cp310-abi3-macosx_10_12_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "66cd79c10b82415ee04a12b333511c133eddbea081c0f195ee133391b182d385",
                "md5": "b57baf7321ff82e0fbc915c0dc19e45a",
                "sha256": "5a49e63c64588190c197ef9dc3ec12c82eb538347f5d3019f26783e3ec61c018"
            },
            "downloads": -1,
            "filename": "tket2-0.6.0-cp310-abi3-macosx_11_0_arm64.whl",
            "has_sig": false,
            "md5_digest": "b57baf7321ff82e0fbc915c0dc19e45a",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.10",
            "size": 3463405,
            "upload_time": "2024-12-16T17:48:39",
            "upload_time_iso_8601": "2024-12-16T17:48:39.287174Z",
            "url": "https://files.pythonhosted.org/packages/66/cd/79c10b82415ee04a12b333511c133eddbea081c0f195ee133391b182d385/tket2-0.6.0-cp310-abi3-macosx_11_0_arm64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "2aea143b95c373a4d104f5f2cab3b361e29083c9a746b047fe4ff7a62fbc6559",
                "md5": "369a2bc206cf10808594ddbcbcec369d",
                "sha256": "27fa940f30333ca004ce487b3398bd5166312551fb6ed62b5545a4d7d4b822d6"
            },
            "downloads": -1,
            "filename": "tket2-0.6.0-cp310-abi3-manylinux_2_12_i686.manylinux2010_i686.whl",
            "has_sig": false,
            "md5_digest": "369a2bc206cf10808594ddbcbcec369d",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.10",
            "size": 4096055,
            "upload_time": "2024-12-16T17:48:35",
            "upload_time_iso_8601": "2024-12-16T17:48:35.670341Z",
            "url": "https://files.pythonhosted.org/packages/2a/ea/143b95c373a4d104f5f2cab3b361e29083c9a746b047fe4ff7a62fbc6559/tket2-0.6.0-cp310-abi3-manylinux_2_12_i686.manylinux2010_i686.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "be44dd35eb58f23e0844cfc4b1c26f7842cf9725f5373ac9a86dabc8aa00214c",
                "md5": "23ee15f3d5bc0a2480c014b3e58ab276",
                "sha256": "c5065b42d2e4efe9f308a6e4715c2aeb58be8a7b050e4545724d3e20564e9d6f"
            },
            "downloads": -1,
            "filename": "tket2-0.6.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
            "has_sig": false,
            "md5_digest": "23ee15f3d5bc0a2480c014b3e58ab276",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.10",
            "size": 3547117,
            "upload_time": "2024-12-16T17:48:25",
            "upload_time_iso_8601": "2024-12-16T17:48:25.517106Z",
            "url": "https://files.pythonhosted.org/packages/be/44/dd35eb58f23e0844cfc4b1c26f7842cf9725f5373ac9a86dabc8aa00214c/tket2-0.6.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "4dd15c026c9acd5f26c33cf837fee30abcfe0776bbf66e0c78b1b66a76321682",
                "md5": "9826f27c41180b35939fa32fca9d2e86",
                "sha256": "cbe6bece4e07e08cc92da4083505c02771bc7e91e3c256fbab3bd47bd02d4af2"
            },
            "downloads": -1,
            "filename": "tket2-0.6.0-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl",
            "has_sig": false,
            "md5_digest": "9826f27c41180b35939fa32fca9d2e86",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.10",
            "size": 3546947,
            "upload_time": "2024-12-16T17:48:28",
            "upload_time_iso_8601": "2024-12-16T17:48:28.862415Z",
            "url": "https://files.pythonhosted.org/packages/4d/d1/5c026c9acd5f26c33cf837fee30abcfe0776bbf66e0c78b1b66a76321682/tket2-0.6.0-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "fe0c32a8e929a0e1154fbc3456c5d6fec2ee3dfdd192e8306b9e1027ef5f7bc8",
                "md5": "1308beaf660ac33799531ebb66e1960e",
                "sha256": "6cb2d7ac3aa2863cbd76389bedf9c3018d58a88e34948776a0ea6c46f4d48c2d"
            },
            "downloads": -1,
            "filename": "tket2-0.6.0-cp310-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl",
            "has_sig": false,
            "md5_digest": "1308beaf660ac33799531ebb66e1960e",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.10",
            "size": 4089364,
            "upload_time": "2024-12-16T17:48:30",
            "upload_time_iso_8601": "2024-12-16T17:48:30.819900Z",
            "url": "https://files.pythonhosted.org/packages/fe/0c/32a8e929a0e1154fbc3456c5d6fec2ee3dfdd192e8306b9e1027ef5f7bc8/tket2-0.6.0-cp310-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "fe06a6bec50a1aa155a8f29dc4771956f33307e6799475bd10e84bd8d9f11b96",
                "md5": "dcbdd3c0e3a3b5a7d5648ca75124323d",
                "sha256": "06b05957afc0bb816c585ebde367655dfa822087f69699b89d6a8be889af9e64"
            },
            "downloads": -1,
            "filename": "tket2-0.6.0-cp310-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl",
            "has_sig": false,
            "md5_digest": "dcbdd3c0e3a3b5a7d5648ca75124323d",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.10",
            "size": 5021661,
            "upload_time": "2024-12-16T17:48:33",
            "upload_time_iso_8601": "2024-12-16T17:48:33.830256Z",
            "url": "https://files.pythonhosted.org/packages/fe/06/a6bec50a1aa155a8f29dc4771956f33307e6799475bd10e84bd8d9f11b96/tket2-0.6.0-cp310-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "944d7e4120d4df554a0cc2649fe8911703577af51b7abe770f7258ea8057793d",
                "md5": "85e311deb150c2b7bed2d272009b5799",
                "sha256": "1454eee61c8c264adaf9f0370966373ba796484efe94cd1377bc3e67ae8f8867"
            },
            "downloads": -1,
            "filename": "tket2-0.6.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "85e311deb150c2b7bed2d272009b5799",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.10",
            "size": 3905811,
            "upload_time": "2024-12-16T17:48:37",
            "upload_time_iso_8601": "2024-12-16T17:48:37.420102Z",
            "url": "https://files.pythonhosted.org/packages/94/4d/7e4120d4df554a0cc2649fe8911703577af51b7abe770f7258ea8057793d/tket2-0.6.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "58bc3e20b2398f72721962c5319ffb2c0b803e4df0b719b173133e79667f0d4a",
                "md5": "3c98eaabdfca9684629a625ad513d593",
                "sha256": "15721b5904673aeba0b53901de3977d83a7c5b4bb21d042f48ee4f15f2fad995"
            },
            "downloads": -1,
            "filename": "tket2-0.6.0-cp310-abi3-musllinux_1_2_aarch64.whl",
            "has_sig": false,
            "md5_digest": "3c98eaabdfca9684629a625ad513d593",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.10",
            "size": 3759781,
            "upload_time": "2024-12-16T17:48:43",
            "upload_time_iso_8601": "2024-12-16T17:48:43.922279Z",
            "url": "https://files.pythonhosted.org/packages/58/bc/3e20b2398f72721962c5319ffb2c0b803e4df0b719b173133e79667f0d4a/tket2-0.6.0-cp310-abi3-musllinux_1_2_aarch64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "f439e22d159182c6054801387ab06d3303eadd4ec013696b674cc7ef11a76ebe",
                "md5": "eec61c8f2b541250118d34b1eb109458",
                "sha256": "2db38472d4988f8ae4b1e0711b1b65b636b9a3faa7aa4c255c8258515d88e5d5"
            },
            "downloads": -1,
            "filename": "tket2-0.6.0-cp310-abi3-musllinux_1_2_armv7l.whl",
            "has_sig": false,
            "md5_digest": "eec61c8f2b541250118d34b1eb109458",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.10",
            "size": 3836709,
            "upload_time": "2024-12-16T17:48:47",
            "upload_time_iso_8601": "2024-12-16T17:48:47.416836Z",
            "url": "https://files.pythonhosted.org/packages/f4/39/e22d159182c6054801387ab06d3303eadd4ec013696b674cc7ef11a76ebe/tket2-0.6.0-cp310-abi3-musllinux_1_2_armv7l.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "269dd23b0e657d8e7295b33439d1846a858a1b5e7cacaf2477cbe05beed0b9cb",
                "md5": "437fac162d717a9b0cd8dad6975c77a6",
                "sha256": "1255831d7f0fc65291cb50abc96041529679c3abbe7431eee4e3e6ecfbb41fad"
            },
            "downloads": -1,
            "filename": "tket2-0.6.0-cp310-abi3-musllinux_1_2_i686.whl",
            "has_sig": false,
            "md5_digest": "437fac162d717a9b0cd8dad6975c77a6",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.10",
            "size": 4074652,
            "upload_time": "2024-12-16T17:48:49",
            "upload_time_iso_8601": "2024-12-16T17:48:49.469227Z",
            "url": "https://files.pythonhosted.org/packages/26/9d/d23b0e657d8e7295b33439d1846a858a1b5e7cacaf2477cbe05beed0b9cb/tket2-0.6.0-cp310-abi3-musllinux_1_2_i686.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "b10ff4562bf397365cff2cf13e2c745f66a5275e10992a8d8b07e45e622e7ada",
                "md5": "0a55e2338ba6262c14a993a456cb9974",
                "sha256": "a56af6cfa1f4e8ae4ea5be60477b8bf0501972885d985dcd85c7c498b494bdc7"
            },
            "downloads": -1,
            "filename": "tket2-0.6.0-cp310-abi3-musllinux_1_2_x86_64.whl",
            "has_sig": false,
            "md5_digest": "0a55e2338ba6262c14a993a456cb9974",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.10",
            "size": 4079034,
            "upload_time": "2024-12-16T17:48:51",
            "upload_time_iso_8601": "2024-12-16T17:48:51.227494Z",
            "url": "https://files.pythonhosted.org/packages/b1/0f/f4562bf397365cff2cf13e2c745f66a5275e10992a8d8b07e45e622e7ada/tket2-0.6.0-cp310-abi3-musllinux_1_2_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "0bc160ff719894882db83220e2e99d54e2c50ec3e274aac60b741a67dee1a0c9",
                "md5": "76130e5887bced2141d50530e7b67ed1",
                "sha256": "80f59a9242d7e05af13564bd872b3a90476089a5fe6b1da95b5538019f9b2639"
            },
            "downloads": -1,
            "filename": "tket2-0.6.0-cp310-abi3-win32.whl",
            "has_sig": false,
            "md5_digest": "76130e5887bced2141d50530e7b67ed1",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.10",
            "size": 3393638,
            "upload_time": "2024-12-16T17:48:58",
            "upload_time_iso_8601": "2024-12-16T17:48:58.019227Z",
            "url": "https://files.pythonhosted.org/packages/0b/c1/60ff719894882db83220e2e99d54e2c50ec3e274aac60b741a67dee1a0c9/tket2-0.6.0-cp310-abi3-win32.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "0f9fd0db7192534bbdae6eb07f567421c4672e290391ba603f10a96c9e53b462",
                "md5": "a4a7a00a5587735e1b34dfa45ee23d31",
                "sha256": "c2750f0da30efab3b8a0ab68d55b7dc810b9c585c0d83ab86a5734c2ce0b6320"
            },
            "downloads": -1,
            "filename": "tket2-0.6.0-cp310-abi3-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "a4a7a00a5587735e1b34dfa45ee23d31",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.10",
            "size": 3825783,
            "upload_time": "2024-12-16T17:48:55",
            "upload_time_iso_8601": "2024-12-16T17:48:55.622644Z",
            "url": "https://files.pythonhosted.org/packages/0f/9f/d0db7192534bbdae6eb07f567421c4672e290391ba603f10a96c9e53b462/tket2-0.6.0-cp310-abi3-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "2227285392537150ee0472cd6f0bf615ed512823497b2d5b9e51726e3cdd922a",
                "md5": "abcf5e5a2167549f60899c636f83ef66",
                "sha256": "530eae3a26bec2aac718553d8fb372add69f7082cde952b8e7746ade00333702"
            },
            "downloads": -1,
            "filename": "tket2-0.6.0.tar.gz",
            "has_sig": false,
            "md5_digest": "abcf5e5a2167549f60899c636f83ef66",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 224593,
            "upload_time": "2024-12-16T17:48:52",
            "upload_time_iso_8601": "2024-12-16T17:48:52.865295Z",
            "url": "https://files.pythonhosted.org/packages/22/27/285392537150ee0472cd6f0bf615ed512823497b2d5b9e51726e3cdd922a/tket2-0.6.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-16 17:48:52",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "CQCL",
    "github_project": "tket2",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "tket2"
}
        
Elapsed time: 0.37695s