{"id":22882542,"url":"https://github.com/cqcl/pytket-phir","last_synced_at":"2025-05-07T04:49:03.564Z","repository":{"id":200905690,"uuid":"697008584","full_name":"CQCL/pytket-phir","owner":"CQCL","description":"pytket-phir is a circuit analyzer and translator from pytket to PHIR.","archived":false,"fork":false,"pushed_at":"2025-05-01T13:06:51.000Z","size":1780,"stargazers_count":8,"open_issues_count":5,"forks_count":3,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-05-07T04:48:51.229Z","etag":null,"topics":["openqasm","python","quantinuum","quantum-computing","simulator","tket"],"latest_commit_sha":null,"homepage":"https://cqcl.github.io/pytket-phir/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CQCL.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-26T21:36:41.000Z","updated_at":"2025-05-01T13:02:07.000Z","dependencies_parsed_at":"2023-10-23T17:35:43.302Z","dependency_job_id":"64dea8af-8294-42bd-a705-9185fadef4b4","html_url":"https://github.com/CQCL/pytket-phir","commit_stats":{"total_commits":175,"total_committers":12,"mean_commits":"14.583333333333334","dds":0.5028571428571429,"last_synced_commit":"a74ef19a0f32d8d9e89f74797edebff382c0923f"},"previous_names":["cqcl/pytket-phir"],"tags_count":26,"template":false,"template_full_name":"CQCL/pytemplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CQCL%2Fpytket-phir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CQCL%2Fpytket-phir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CQCL%2Fpytket-phir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CQCL%2Fpytket-phir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CQCL","download_url":"https://codeload.github.com/CQCL/pytket-phir/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252816521,"owners_count":21808702,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["openqasm","python","quantinuum","quantum-computing","simulator","tket"],"created_at":"2024-12-13T18:18:13.236Z","updated_at":"2025-05-07T04:49:03.554Z","avatar_url":"https://github.com/CQCL.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pytket-phir\n\n[![PyPI version](https://badge.fury.io/py/pytket-phir.svg)](https://badge.fury.io/py/pytket-phir)\n[![Python versions](https://img.shields.io/badge/python-3.10%20%7C%203.11%20%7C%203.12-blue.svg)](https://img.shields.io/badge/python-3.10%2C%203.11%20%7C%203.12-blue.svg)\n\nPHIR stands for _[PECOS](https://github.com/PECOS-packages/PECOS) High-level Intermediate Representation_.\nSee [PHIR specification](https://github.com/CQCL/phir/blob/main/spec.md) for more.\n\n`pytket-phir` is a circuit analyzer and translator from [pytket](https://tket.quantinuum.com/api-docs/index.html) to PHIR.\n\nAlso included is the CLI tool `phirc` that takes QASM programs as input and emulates them using PECOS.\n\n## Prerequisites\n\nPython \u003e=3.10\n\n## Installation\n\nJust issue `pip install pytket-phir` to obtain the latest stable release.\n\n## phirc CLI\n\nThe package includes a tool for emulating QASM files from the command line using PECOS.\n\nInstall additional dependencies needed for the CLI using `pip install pytket-phir[phirc]`.\n\n```sh\n❯ phirc -h\nusage: phirc [-h] [-w WASM_FILE] [-m {H1}] [-v] [--version] qasm_files [qasm_files ...]\n\nEmulates QASM program execution via PECOS\n\npositional arguments:\n  qasm_files            One or more QASM files to emulate\n\noptions:\n  -h, --help            show this help message and exit\n  -w WASM_FILE, --wasm-file WASM_FILE\n                        Optional WASM file for use by the QASM programs\n  -m {H1}, --machine {H1}\n                        Machine name, H1 by default\n  -v, --verbose\n  --version             show program's version number and exit\n```\n\n## Development\n\nClone the repository and run:\n\n```sh\nuv sync\nuv run pre-commit install\n```\n\nSee `Makefile` for other useful commands.\n\n## Testing\n\nIssue `make tests` from the root directory.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcqcl%2Fpytket-phir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcqcl%2Fpytket-phir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcqcl%2Fpytket-phir/lists"}