Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(tket2-hseries): cli extension dumping #584

Merged
merged 19 commits into from
Sep 9, 2024
Merged

feat(tket2-hseries): cli extension dumping #584

merged 19 commits into from
Sep 9, 2024

Conversation

ss2165
Copy link
Member

@ss2165 ss2165 commented Sep 4, 2024

Closes #556

Copy link

codecov bot commented Sep 4, 2024

Codecov Report

Attention: Patch coverage is 0% with 17 lines in your changes missing coverage. Please review.

Project coverage is 82.45%. Comparing base (d9deacb) to head (e600f68).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
tket2-hseries/src/bin/tket2-hseries.rs 0.00% 17 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #584      +/-   ##
==========================================
- Coverage   82.66%   82.45%   -0.22%     
==========================================
  Files          46       47       +1     
  Lines        6496     6513      +17     
  Branches     6496     6513      +17     
==========================================
  Hits         5370     5370              
- Misses        765      782      +17     
  Partials      361      361              
Flag Coverage Δ
rust 82.45% <0.00%> (-0.22%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

ss2165 and others added 3 commits September 4, 2024 14:53
BREAKING CHANGE: quantum extension renamed from "quantum.tket2" to
"tket2.quantum"
@aborgna-q
Copy link
Collaborator

Don't forget to add the angles extension too

@ss2165
Copy link
Member Author

ss2165 commented Sep 5, 2024

unpushed commit 😅

@ss2165 ss2165 marked this pull request as ready for review September 9, 2024 11:34
@ss2165 ss2165 requested a review from a team as a code owner September 9, 2024 11:34
@ss2165 ss2165 requested a review from doug-q September 9, 2024 11:34
@ss2165 ss2165 changed the title feat: cli extension dumping feat(tket2-hseries):cli extension dumping Sep 9, 2024
@ss2165 ss2165 changed the title feat(tket2-hseries):cli extension dumping feat(tket2-hseries): cli extension dumping Sep 9, 2024
cli = ["dep:clap", "dep:hugr-cli", "dep:clap-verbosity-flag", "dep:clio"]

[[bin]]
name = "tket2-hseries"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To extend the hugr cli this should be called something prefixed with hugr-

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure this naturally extends the hugr cli, I think its fine stand alone for now. It's main use is within the repo anyway (using the justfile)

@@ -24,6 +32,10 @@ strum.workspace = true
strum_macros.workspace = true
thiserror.workspace = true
itertools.workspace = true
clap = { workspace = true, optional = true}
hugr-cli = { version = "*", optional = true }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think these versions need to be fixed

#[derive(Parser, Debug)]
#[clap(version = "1.0", long_about = None)]
#[clap(about = "HUGR CLI tools.")]
#[group(id = "hugr")]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this right? also I don't think version is right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@doug-q doug-q mentioned this pull request Sep 9, 2024
@ss2165 ss2165 added this pull request to the merge queue Sep 9, 2024
Merged via the queue into main with commit abf292f Sep 9, 2024
15 of 16 checks passed
@ss2165 ss2165 deleted the ss/ext-cli branch September 9, 2024 12:20
github-merge-queue bot pushed a commit that referenced this pull request Sep 9, 2024
## 🤖 New release
* `tket2`: 0.2.0 -> 0.3.0
* `tket2-hseries`: 0.2.0 -> 0.3.0

<details><summary><i><b>Changelog</b></i></summary><p>

## `tket2`
<blockquote>

##
[0.3.0](tket2-v0.2.0...tket2-v0.3.0)
- 2024-09-09

### Bug Fixes

- extension ops checking against incorrect name
([#593](#593))
- [**breaking**] remove TryFrom for extension ops use `cast`
([#592](#592))
- don't load angle extensions on to quantum
([#597](#597))

### New Features

- [**breaking**] move angle types + and ops to new "tket2.angle"
extension ([#591](#591))
- dataflow builder methods for angle ops
([#596](#596))
- lowering tk2ops -> hseriesops
([#579](#579))
</blockquote>

## `tket2-hseries`
<blockquote>

##
[0.3.0](tket2-hseries-v0.2.0...tket2-hseries-v0.3.0)
- 2024-09-09

### Bug Fixes

- extension ops checking against incorrect name
([#593](#593))
- [**breaking**] remove TryFrom for extension ops use `cast`
([#592](#592))

### New Features

- lowering tk2ops -> hseriesops
([#579](#579))
- *(tket2-hseries)* cli extension dumping
([#584](#584))
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/MarcoIeni/release-plz/).
github-merge-queue bot pushed a commit that referenced this pull request Oct 3, 2024
🤖 I have created a release *beep* *boop*
---


##
[0.4.0](tket2-py-v0.3.0...tket2-py-v0.4.0)
(2024-10-01)


### ⚠ BREAKING CHANGES

* Made all errors `non_exhaustive`, and renamed some fields for clarity.
* "tket2.angle" extension replaced with "tket2.rotation" extension with
rotation type and simplified set of operations.
* TryFrom implementations for extension op structs removed, use `cast`

### Features

* `BadgerOptimiser.load_precompiled`, `BadgerOptimiser.compile_eccs` and
`passes.badger_pass` now take an optional `cost_fn` parameter to specify
the cost function to minimise. Supported values are `'cx'` (default
behaviour) and `'rz'`.
([83ebfcb](83ebfcb))
* simplify angle extension in to a half turns rotation type
([#611](#611))
([0723937](0723937))
* Support encoding float and sympy ops
([#618](#618))
([74dcbf7](74dcbf7))
* **tket2-hseries:** cli extension dumping
([#584](#584))
([abf292f](abf292f))


### Bug Fixes

* remove TryFrom for extension ops use `cast`
([#592](#592))
([5ca29af](5ca29af))
* Support hugr packages, fix the notebooks
([#622](#622))
([1cf9dcb](1cf9dcb))


### Documentation

* Add tket2-py module docstring
([#539](#539))
([8ef7a57](8ef7a57))


### Miscellaneous Chores

* Replace thiserror with derive_more 1.0
([#624](#624))
([2250ce7](2250ce7))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: Agustín Borgna <agustin.borgna@quantinuum.com>
Co-authored-by: Agustín Borgna <121866228+aborgna-q@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create serialized extension definitions
3 participants