https://github.com/cqcl/pytket-phir
pytket-phir is a circuit analyzer and translator from pytket to 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
Keywords from Contributors
Repository
pytket-phir is a circuit analyzer and translator from pytket to PHIR.
Basic Info
- Host: GitHub
- Owner: CQCL
- License: bsd-3-clause
- Language: Python
- Default Branch: main
- Homepage: https://cqcl.github.io/pytket-phir/
- Size: 2.39 MB
Statistics
- Stars: 8
- Watchers: 4
- Forks: 3
- Open Issues: 7
- Releases: 27
Topics
Metadata Files
README.md
pytket-phir
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
- Website: http://www.cambridgequantum.com
- Repositories: 48
- Profile: https://github.com/CQCL
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
Top Committers
| Name | 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
Pull Request Labels
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
Rankings
Maintainers (1)
Dependencies
- actions/checkout v4 composite
- actions/setup-python v4 composite
- python 3.10-slim build
- pytket *
- 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