https://github.com/cqcl/pytket-phir

pytket-phir is a circuit analyzer and translator from pytket to PHIR.

https://github.com/cqcl/pytket-phir

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (12.1%) to scientific vocabulary

Keywords

openqasm python quantinuum quantum-computing simulator tket

Keywords from Contributors

sequences hacking autograding projection standardization interpretability reporting generic interactive controllers
Last synced: 5 months ago · JSON representation

Repository

pytket-phir is a circuit analyzer and translator from pytket to PHIR.

Basic Info
Statistics
  • Stars: 8
  • Watchers: 4
  • Forks: 3
  • Open Issues: 7
  • Releases: 27
Topics
openqasm python quantinuum quantum-computing simulator tket
Created over 2 years ago · Last pushed 6 months ago
Metadata Files
Readme Changelog License

README.md

pytket-phir

PyPI version Python versions

PHIR stands for PECOS High-level Intermediate Representation. See PHIR specification for more.

pytket-phir is a circuit analyzer and translator from pytket to PHIR.

Also included is the CLI tool phirc that takes QASM programs as input and emulates them using PECOS.

Prerequisites

Python >=3.10

Installation

Just issue pip install pytket-phir to obtain the latest stable release.

phirc CLI

The package includes a tool for emulating QASM files from the command line using PECOS.

Install additional dependencies needed for the CLI using pip install pytket-phir[phirc].

```sh ❯ phirc -h usage: phirc [-h] [-w WASMFILE] [-m {H1}] [-v] [--version] qasmfiles [qasm_files ...]

Emulates QASM program execution via PECOS

positional arguments: qasm_files One or more QASM files to emulate

options: -h, --help show this help message and exit -w WASMFILE, --wasm-file WASMFILE Optional WASM file for use by the QASM programs -m {H1}, --machine {H1} Machine name, H1 by default -v, --verbose --version show program's version number and exit ```

Development

Clone the repository and run:

sh uv sync uv run pre-commit install

See Makefile for other useful commands.

Testing

Issue make tests from the root directory.

Owner

  • Name: Cambridge Quantum
  • Login: CQCL
  • Kind: organization
  • Location: Cambridge, UK

Quantum Software and Technologies

GitHub Events

Total
  • Create event: 48
  • Release event: 3
  • Issues event: 7
  • Watch event: 3
  • Delete event: 38
  • Issue comment event: 8
  • Push event: 107
  • Pull request review comment event: 1
  • Pull request review event: 42
  • Pull request event: 90
  • Fork event: 1
Last Year
  • Create event: 48
  • Release event: 3
  • Issues event: 7
  • Watch event: 3
  • Delete event: 38
  • Issue comment event: 8
  • Push event: 107
  • Pull request review comment event: 1
  • Pull request review event: 42
  • Pull request event: 90
  • Fork event: 1

Committers

Last synced: about 2 years ago

All Time
  • Total Commits: 175
  • Total Committers: 12
  • Avg Commits per committer: 14.583
  • Development Distribution Score (DDS): 0.503
Past Year
  • Commits: 175
  • Committers: 12
  • Avg Commits per committer: 14.583
  • Development Distribution Score (DDS): 0.503
Top Committers
Name Email Commits
Kartik Singhal k****l@q****m 87
Asa Kosto A****o@q****m 33
dependabot[bot] 4****] 20
Neal Erickson m****e@g****m 11
Asa-Kosto-QTM 1****M 8
github-actions[bot] 4****] 8
Alec Edgington a****n@q****m 2
John Garvin j****n@q****m 2
Neal Erickson n****n@q****m 1
Alec Edgington 5****c 1
Kartik Singhal 1****k 1
dlucchetti 6****i 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 43
  • Total pull requests: 301
  • Average time to close issues: 24 days
  • Average time to close pull requests: 1 day
  • Total issue authors: 6
  • Total pull request authors: 6
  • Average comments per issue: 0.88
  • Average comments per pull request: 0.27
  • Merged pull requests: 247
  • Bot issues: 0
  • Bot pull requests: 193
Past Year
  • Issues: 6
  • Pull requests: 83
  • Average time to close issues: 27 days
  • Average time to close pull requests: 1 day
  • Issue authors: 2
  • Pull request authors: 4
  • Average comments per issue: 0.33
  • Average comments per pull request: 0.08
  • Merged pull requests: 72
  • Bot issues: 0
  • Bot pull requests: 65
Top Authors
Issue Authors
  • cqc-alec (20)
  • qartik (11)
  • qciaran (4)
  • neal-erickson (2)
  • Asa-Kosto-QTM (2)
  • daniel-mills-cqc (1)
Pull Request Authors
  • github-actions[bot] (149)
  • dependabot[bot] (131)
  • qartik (69)
  • Asa-Kosto-QTM (32)
  • cqc-alec (14)
  • neal-erickson (8)
  • CalMacCQ (1)
Top Labels
Issue Labels
bug (22) enhancement (11) github_actions (3) documentation (1) low-priority (1)
Pull Request Labels
dependencies (131) python (124) github_actions (7)

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 6,238 last-month
  • Total dependent packages: 1
  • Total dependent repositories: 1
  • Total versions: 27
  • Total maintainers: 1
pypi.org: pytket-phir

A circuit analyzer and translator from pytket to PHIR

  • Documentation: https://cqcl.github.io/pytket-phir/
  • License: BSD 3-Clause License Copyright (c) 2023-2024, Quantinuum LLC Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  • Latest release: 0.10.0
    published 12 months ago
  • Versions: 27
  • Dependent Packages: 1
  • Dependent Repositories: 1
  • Downloads: 6,238 Last month
Rankings
Dependent packages count: 4.8%
Downloads: 9.1%
Average: 19.4%
Dependent repos count: 21.5%
Forks count: 29.8%
Stargazers count: 31.9%
Maintainers (1)
Last synced: 6 months ago

Dependencies

.github/workflows/python-app.yml actions
  • actions/checkout v4 composite
  • actions/setup-python v4 composite
Dockerfile docker
  • python 3.10-slim build
pyproject.toml pypi
  • pytket *
requirements.txt pypi
  • black ==23.10.0
  • build ==1.0.3
  • mypy ==1.6.0
  • pre-commit ==3.5.0
  • pytest ==7.4.2
  • pytket ==1.21.0
  • pytket-quantinuum ==0.25.0
  • ruff ==0.1.0
  • wheel ==0.41.2