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(hugr-py): move std extension types/ops in to std module #1288

Merged
merged 1 commit into from
Jul 10, 2024
Merged

Conversation

ss2165
Copy link
Member

@ss2165 ss2165 commented Jul 9, 2024

Not complete, see #1287

Quantum operations left in tests as they are not part of std extensions set (maybe they should be...?)

@ss2165 ss2165 marked this pull request as ready for review July 9, 2024 16:09
@ss2165 ss2165 requested a review from a team as a code owner July 9, 2024 16:09
@ss2165 ss2165 requested review from zrho and aborgna-q and removed request for a team and zrho July 9, 2024 16:09
extension: tys.ExtensionId = "arithmetic.int"


_ARG_5 = tys.BoundedNatArg(n=5)
Copy link
Collaborator

@aborgna-q aborgna-q Jul 9, 2024

Choose a reason for hiding this comment

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

nit: Call this _ARG_I32? It's a bit more legible

Base automatically changed from ss/extend to main July 10, 2024 09:07
@ss2165 ss2165 enabled auto-merge July 10, 2024 09:07
Not complete, see #1287

Quantum operations left in tests as they are not part of std extensions set (maybe they should be...?)
@ss2165 ss2165 added this pull request to the merge queue Jul 10, 2024
Copy link

codecov bot commented Jul 10, 2024

Codecov Report

Attention: Patch coverage is 98.07692% with 1 line in your changes missing coverage. Please review.

Project coverage is 87.07%. Comparing base (af38154) to head (4585e44).

Files Patch % Lines
hugr-py/src/hugr/std/logic.py 94.73% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1288      +/-   ##
==========================================
+ Coverage   87.04%   87.07%   +0.02%     
==========================================
  Files         103      106       +3     
  Lines       19243    19295      +52     
  Branches    17073    17073              
==========================================
+ Hits        16750    16801      +51     
- Misses       1716     1717       +1     
  Partials      777      777              
Flag Coverage Δ
python 91.53% <98.07%> (+0.15%) ⬆️

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.

Merged via the queue into main with commit 7d82245 Jul 10, 2024
20 checks passed
@ss2165 ss2165 deleted the ss/std branch July 10, 2024 09:16
github-merge-queue bot pushed a commit that referenced this pull request Jul 10, 2024
🤖 I have created a release *beep* *boop*
---


##
[0.4.0](hugr-py-v0.3.1...hugr-py-v0.4.0)
(2024-07-10)


### ⚠ BREAKING CHANGES

* **hugr-py:** dataclasses that derive from `ops.Custom` now have to be
frozen, and instances cannot be mutated.

### Features

* **hugr-py:** `ops.Custom` is now a frozen dataclass
([94702d2](94702d2))
* **hugr-py:** move std extension types/ops in to `std` module
([#1288](#1288))
([7d82245](7d82245))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
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.

2 participants