A circuit analyzer and translator from pytket to PHIR
Project description
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 pre-commit install
See Makefile for other useful commands.
Testing
Issue make tests from the root directory.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pytket_phir-0.10.1.tar.gz.
File metadata
- Download URL: pytket_phir-0.10.1.tar.gz
- Upload date:
- Size: 196.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8126a8b0c7889205f98c83952f678e62fc71e271ee09888a94fad75c2fab6b4b
|
|
| MD5 |
84f9749bf465c31980563e71ea4f7d28
|
|
| BLAKE2b-256 |
70967723e974fa9a560b6d4ac0cead2a514fd443284830706a638e8aff8b64a5
|
Provenance
The following attestation bundles were made for pytket_phir-0.10.1.tar.gz:
Publisher:
python-publish.yml on Quantinuum/pytket-phir
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pytket_phir-0.10.1.tar.gz -
Subject digest:
8126a8b0c7889205f98c83952f678e62fc71e271ee09888a94fad75c2fab6b4b - Sigstore transparency entry: 798886351
- Sigstore integration time:
-
Permalink:
Quantinuum/pytket-phir@e6c2e2b654a17cf10e1dd57f570ba411bd53a860 -
Branch / Tag:
refs/tags/v0.10.1 - Owner: https://github.com/Quantinuum
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@e6c2e2b654a17cf10e1dd57f570ba411bd53a860 -
Trigger Event:
release
-
Statement type:
File details
Details for the file pytket_phir-0.10.1-py3-none-any.whl.
File metadata
- Download URL: pytket_phir-0.10.1-py3-none-any.whl
- Upload date:
- Size: 83.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa01736adc9b5120abc0407e4d2a9cad1c55e8f1f7532a16e99ef76c74844851
|
|
| MD5 |
3223f45c26f60e06e0b6e1b176a248a0
|
|
| BLAKE2b-256 |
5d532c3687fadd8ed2d7c6ec8b38cfe2afe4fdf616449f60d723c87f796ccda6
|
Provenance
The following attestation bundles were made for pytket_phir-0.10.1-py3-none-any.whl:
Publisher:
python-publish.yml on Quantinuum/pytket-phir
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pytket_phir-0.10.1-py3-none-any.whl -
Subject digest:
fa01736adc9b5120abc0407e4d2a9cad1c55e8f1f7532a16e99ef76c74844851 - Sigstore transparency entry: 798886356
- Sigstore integration time:
-
Permalink:
Quantinuum/pytket-phir@e6c2e2b654a17cf10e1dd57f570ba411bd53a860 -
Branch / Tag:
refs/tags/v0.10.1 - Owner: https://github.com/Quantinuum
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@e6c2e2b654a17cf10e1dd57f570ba411bd53a860 -
Trigger Event:
release
-
Statement type: