https://github.com/cqcl/phir

PHIR (PECOS High-level Intermediate Representation) Spec and data model

https://github.com/cqcl/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 (10.2%) to scientific vocabulary

Keywords

json-schema python quantinuum quantum-computing

Keywords from Contributors

simulations parallel interpretability mesh energy-system-model standards archiving battery genomics energy-system
Last synced: 5 months ago · JSON representation

Repository

PHIR (PECOS High-level Intermediate Representation) Spec and data model

Basic Info
Statistics
  • Stars: 4
  • Watchers: 11
  • Forks: 1
  • Open Issues: 2
  • Releases: 13
Topics
json-schema python quantinuum quantum-computing
Created over 2 years ago · Last pushed 8 months ago
Metadata Files
Readme Changelog License

README.md

PHIR: PECOS High-level Intermediate Representation

PyPI version Python versions

phir models the PHIR specification as a Pydantic model. See our docs. Included is the tool phir-cli that provides validation and pretty printing on the command line.

Prerequisites

Python >=3.10

Installation

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

phir CLI

The package includes a CLI for directly validating PHIR JSON files using the command line.

```sh ❯ phir-cli -h usage: phir-cli [-h] [-s] [-v] [jsonfile]

Validates and pretty prints valid PHIR

positional arguments: jsonfile json file to validate against PHIR spec

options: -h, --help show this help message and exit -s, --schema dump JSON schema of the PHIR model and exit -v, --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
  • Issues event: 3
  • Watch event: 2
  • Delete event: 76
  • Issue comment event: 4
  • Push event: 109
  • Pull request review event: 46
  • Pull request event: 97
  • Fork event: 1
  • Create event: 74
Last Year
  • Issues event: 3
  • Watch event: 2
  • Delete event: 76
  • Issue comment event: 4
  • Push event: 109
  • Pull request review event: 46
  • Pull request event: 97
  • Fork event: 1
  • Create event: 74

Committers

Last synced: 7 months ago

All Time
  • Total Commits: 256
  • Total Committers: 7
  • Avg Commits per committer: 36.571
  • Development Distribution Score (DDS): 0.59
Past Year
  • Commits: 81
  • Committers: 3
  • Avg Commits per committer: 27.0
  • Development Distribution Score (DDS): 0.432
Top Committers
Name Email Commits
Kartik Singhal k****l@q****m 105
dependabot[bot] 4****] 74
pre-commit-ci[bot] 6****] 64
github-actions[bot] 4****] 10
Asa-Kosto-QTM 1****M 1
Alec Edgington a****n@q****m 1
Ciaran Ryan-Anderson c****n@q****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 7
  • Total pull requests: 181
  • Average time to close issues: 4 months
  • Average time to close pull requests: 1 day
  • Total issue authors: 2
  • Total pull request authors: 4
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.07
  • Merged pull requests: 168
  • Bot issues: 0
  • Bot pull requests: 171
Past Year
  • Issues: 2
  • Pull requests: 102
  • Average time to close issues: about 2 months
  • Average time to close pull requests: 1 day
  • Issue authors: 1
  • Pull request authors: 3
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.06
  • Merged pull requests: 92
  • Bot issues: 0
  • Bot pull requests: 98
Top Authors
Issue Authors
  • qartik (4)
  • qciaran (3)
  • dependabot[bot] (1)
  • pre-commit-ci[bot] (1)
Pull Request Authors
  • dependabot[bot] (129)
  • pre-commit-ci[bot] (119)
  • qartik (14)
  • github-actions[bot] (10)
Top Labels
Issue Labels
enhancement (2) bug (2) documentation (1) help wanted (1) github_actions (1) dependencies (1) python (1)
Pull Request Labels
dependencies (128) python (122) github_actions (6)

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 9,640 last-month
  • Total dependent packages: 2
  • Total dependent repositories: 0
  • Total versions: 10
  • Total maintainers: 1
pypi.org: phir

A data model and validation tool for PHIR (PECOS High-level Intermediate Representation).

  • Documentation: https://cqcl.github.io/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.3.3
    published almost 2 years ago
  • Versions: 10
  • Dependent Packages: 2
  • Dependent Repositories: 0
  • Downloads: 9,640 Last month
Rankings
Dependent packages count: 9.1%
Forks count: 29.9%
Average: 36.6%
Stargazers count: 38.9%
Dependent repos count: 68.3%
Maintainers (1)
Last synced: 6 months ago