Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 19 additions & 19 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

In https://github.com/CQCL/phir/pull/64:
In https://github.com/quantinuum/phir/pull/64:

- spec: introduced `"Skip"` `"mop"`
- model: added pydantic validation for `Idle`, `Transport` and `Skip` `MOp`s
Expand All @@ -20,13 +20,13 @@ In https://github.com/CQCL/phir/pull/64:

### Added

- Added support for `"barrier"` `"meta"` instruction in https://github.com/CQCL/phir/pull/56
- Added support for `"barrier"` `"meta"` instruction in https://github.com/quantinuum/phir/pull/56

## [0.2.1] - 2023-12-12

### Fixed

- spec & model: correct values for R2XXYYZZ gate params and args in https://github.com/CQCL/phir/pull/38
- spec & model: correct values for R2XXYYZZ gate params and args in https://github.com/quantinuum/phir/pull/38

## [0.2.0] - 2023-12-06

Expand All @@ -37,14 +37,14 @@ In https://github.com/CQCL/phir/pull/64:

### Fixed

- model: require `data_type` in `cvar_define` in https://github.com/CQCL/phir/pull/14
- model: require `data_type` in `cvar_define` in https://github.com/quantinuum/phir/pull/14

## [0.1.6] - 2023-11-07

### Fixed

- fix(spec): include missing `<=` comparison operator
- fix(model): better validation in https://github.com/CQCL/phir/pull/15
- fix(model): better validation in https://github.com/quantinuum/phir/pull/15
- pick classical ops from Table I in the spec
- pick quantum ops from Table II in the spec
- split QOp into four, validate args/angles
Expand All @@ -59,13 +59,13 @@ In https://github.com/CQCL/phir/pull/64:

### Changed

- feat: [include units for duration and angles](https://github.com/CQCL/phir/pull/9)
- feat: [include units for duration and angles](https://github.com/quantinuum/phir/pull/9)

## [0.1.4] - 2023-10-20

### Changed

- [Better validation for tuples](https://github.com/CQCL/phir/pull/8)
- [Better validation for tuples](https://github.com/quantinuum/phir/pull/8)

## [0.1.3] - 2023-10-18

Expand Down Expand Up @@ -99,17 +99,17 @@ First release.
- Pydantic model and JSON schema of the PHIR Specification.
- `phir-cli` for validation against that model and pretty printing on the command line.

[0.1.0]: https://github.com/CQCL/phir/commits/v0.1.0
[0.1.1]: https://github.com/CQCL/phir/compare/v0.1.0...v0.1.1
[0.1.2]: https://github.com/CQCL/phir/compare/v0.1.1...v0.1.2
[0.1.3]: https://github.com/CQCL/phir/compare/v0.1.2...v0.1.3
[0.1.4]: https://github.com/CQCL/phir/compare/v0.1.3...v0.1.4
[0.1.5]: https://github.com/CQCL/phir/compare/v0.1.4...v0.1.5
[0.1.6]: https://github.com/CQCL/phir/compare/v0.1.5...v0.1.6
[0.2.0]: https://github.com/CQCL/phir/compare/v0.1.6...v0.2.0
[0.2.1]: https://github.com/CQCL/phir/compare/v0.2.0...v0.2.1
[0.3.0]: https://github.com/CQCL/phir/compare/v0.2.0...v0.3.0
[0.3.1]: https://github.com/CQCL/phir/compare/v0.3.0...v0.3.1
[unreleased]: https://github.com/CQCL/phir/compare/v0.3.1...HEAD
[0.1.0]: https://github.com/quantinuum/phir/commits/v0.1.0
[0.1.1]: https://github.com/quantinuum/phir/compare/v0.1.0...v0.1.1
[0.1.2]: https://github.com/quantinuum/phir/compare/v0.1.1...v0.1.2
[0.1.3]: https://github.com/quantinuum/phir/compare/v0.1.2...v0.1.3
[0.1.4]: https://github.com/quantinuum/phir/compare/v0.1.3...v0.1.4
[0.1.5]: https://github.com/quantinuum/phir/compare/v0.1.4...v0.1.5
[0.1.6]: https://github.com/quantinuum/phir/compare/v0.1.5...v0.1.6
[0.2.0]: https://github.com/quantinuum/phir/compare/v0.1.6...v0.2.0
[0.2.1]: https://github.com/quantinuum/phir/compare/v0.2.0...v0.2.1
[0.3.0]: https://github.com/quantinuum/phir/compare/v0.2.0...v0.3.0
[0.3.1]: https://github.com/quantinuum/phir/compare/v0.3.0...v0.3.1
[unreleased]: https://github.com/quantinuum/phir/compare/v0.3.1...HEAD

<!-- markdownlint-configure-file {"MD024": {"siblings_only" : true}, "MD034": false} -->
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[![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%2C%203.12-blue.svg)

`phir` models the [PHIR specification](./spec.md) as a [Pydantic](https://docs.pydantic.dev/latest/) model.
See [our docs](https://cqcl.github.io/phir/).
See [our docs](https://quantinuum.github.io/phir/).
Included is the tool `phir-cli` that provides validation and pretty printing on the command line.

## Prerequisites
Expand Down
2 changes: 1 addition & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
phir
====

Documentation for `CQCL phir <https://github.com/CQCL/phir>`_ project.
Documentation for `quantinuum phir <https://github.com/quantinuum/phir>`_ project.

----

Expand Down
6 changes: 3 additions & 3 deletions phir/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def check_sizes(self: MeasOp) -> MeasOp:
class SQOp(Op):
"""Single-qubit Quantum operation."""

# From https://github.com/CQCL/phir/blob/main/spec.md#table-ii---quantum-operations
# From https://github.com/quantinuum/phir/blob/main/spec.md#table-ii---quantum-operations
qop: Literal[
"Init",
"I",
Expand Down Expand Up @@ -176,7 +176,7 @@ def check_angles(self: SQOp) -> SQOp:
class TQOp(Op):
"""Two-qubit Quantum operation."""

# From https://github.com/CQCL/phir/blob/main/spec.md#table-ii---quantum-operations
# From https://github.com/quantinuum/phir/blob/main/spec.md#table-ii---quantum-operations
qop: Literal[
"CX",
"CY",
Expand Down Expand Up @@ -223,7 +223,7 @@ def check_angles(self: TQOp) -> TQOp:
class COp(Op):
"""Classical operation."""

# From https://github.com/CQCL/phir/blob/main/spec.md#table-i---cop-assignment-arithmetic-comparison--bitwise-operations
# From https://github.com/quantinuum/phir/blob/main/spec.md#table-i---cop-assignment-arithmetic-comparison--bitwise-operations
cop: Literal[
"=",
"+",
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ dev = [
phir-cli = "phir.cli:main"

[project.urls]
Changelog = "https://github.com/CQCL/phir/blob/main/CHANGELOG.md"
Documentation = "https://cqcl.github.io/phir/"
Repository = "https://github.com/CQCL/phir"
Changelog = "https://github.com/quantinuum/phir/blob/main/CHANGELOG.md"
Documentation = "https://quantinuum.github.io/phir/"
Repository = "https://github.com/quantinuum/phir"

[tool.setuptools.packages.find]
where = ["."]
Expand Down
2 changes: 1 addition & 1 deletion tests/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


def test_spec_example() -> None:
"""From https://github.com/CQCL/phir/blob/main/spec.md .
"""From https://github.com/quantinuum/phir/blob/main/spec.md .

Specifically "Overall PHIR Example with Quantinuum's Extended OpenQASM 2.0"
"""
Expand Down