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].
❯ phirc -h
usage: phirc [-h] [-w WASM_FILE] [-m {H1}] [-v] [--version] qasm_files [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 WASM_FILE, --wasm-file WASM_FILE
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:
uv sync
uv run prek install
See Makefile for other useful commands.
Testing
Issue make tests from the root directory.
Dependency Audit
Use make audit or uv audit --locked to scan locked dependencies for known vulnerabilities. The project configures uv with a 7-day dependency cooldown so routine dependency resolution avoids newly uploaded packages while the package ecosystem has time to discover and report supply-chain compromises.
Metadata
Release files for pytket-phir 0.10.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pytket_phir-0.10.2.tar.gz | 235.9 kB | With provenance | Details for pytket_phir-0.10.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytket_phir-0.10.2-py3-none-any.whl | Python 3 | none | any | Details for pytket_phir-0.10.2-py3-none-any.whl |
Total release size: 319.2 kB
Release files / pytket_phir-0.10.2.tar.gz
| Download URL | pytket_phir-0.10.2.tar.gz |
|---|---|
| Size | 235.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
74f578845b079385ba04f2ffcad09bc6ac1f610d7d609d2b13fb48b045d3ecb4
|
|
BLAKE2b-256 checksum How to use checksums |
82375fbd43d00d9e4d0a2343725e179f9873b3c4006a75796fa44775852b2052
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 18, 2026.
Transparency logRelease files / pytket_phir-0.10.2-py3-none-any.whl
| Download URL | pytket_phir-0.10.2-py3-none-any.whl |
|---|---|
| Size | 83.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
caaed0fac2b4b8364950a9e118c3b93158299832c7519bc395e25a421ed22194
|
|
BLAKE2b-256 checksum How to use checksums |
3779345ea191544ed94ae0b121935852ac55eee0f5cd57f317332e9034a4af5d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 18, 2026.
Transparency logSecurity for pytket-phir 0.10.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for pytket_phir-0.10.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 18, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.