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: Add missing tket2 quantum gates, generalise RotationCompile #510

Merged

Conversation

jake-arkinstall
Copy link
Contributor

Addresses #484

@jake-arkinstall jake-arkinstall requested a review from a team as a code owner September 23, 2024 11:51
@jake-arkinstall jake-arkinstall linked an issue Sep 23, 2024 that may be closed by this pull request
@jake-arkinstall jake-arkinstall changed the title Add missing tket2 quantum gates, generalise RotationCompile feat: Add missing tket2 quantum gates, generalise RotationCompile Sep 23, 2024
@codecov-commenter
Copy link

codecov-commenter commented Sep 23, 2024

Codecov Report

Attention: Patch coverage is 74.19355% with 8 lines in your changes missing coverage. Please review.

Project coverage is 91.58%. Comparing base (17678e7) to head (6bd9cf1).

Files with missing lines Patch % Lines
guppylang/prelude/quantum_functional.py 60.00% 8 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #510      +/-   ##
==========================================
- Coverage   91.67%   91.58%   -0.10%     
==========================================
  Files          59       59              
  Lines        6138     6166      +28     
==========================================
+ Hits         5627     5647      +20     
- Misses        511      519       +8     

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

@jake-arkinstall jake-arkinstall marked this pull request as draft September 23, 2024 12:04
@ss2165 ss2165 requested a review from mark-koch September 23, 2024 12:23
guppylang/prelude/_internal/compiler/quantum.py Outdated Show resolved Hide resolved
[q, angle] = args
qs, angle = args[:-1], args[-1]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
[q, angle] = args
qs, angle = args[:-1], args[-1]
[*qs, angle] = args

Comment on lines +39 to +40
@guppy.hugr_op(quantum_op("CY"))
def cy(control: qubit, target: qubit) -> None: ...
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you also add these functions to the quantum_functional module?

@jake-arkinstall jake-arkinstall marked this pull request as ready for review September 23, 2024 13:24
@ss2165 ss2165 added this pull request to the merge queue Sep 23, 2024
Merged via the queue into main with commit 18d4b4c Sep 23, 2024
3 checks passed
@ss2165 ss2165 deleted the 484-add-missing-tket2quantum-operations-to-quantum-module branch September 23, 2024 15:10
github-merge-queue bot pushed a commit that referenced this pull request Sep 23, 2024
🤖 I have created a release *beep* *boop*
---


## [0.12.1](v0.12.0...v0.12.1)
(2024-09-23)


### Features

* Add Definition.compile producing Hugr Package
([#504](#504))
([d8c8bec](d8c8bec))
* Add missing tket2 quantum gates, generalise RotationCompile
([#510](#510))
([18d4b4c](18d4b4c))


### Miscellaneous Chores

* release 0.12.1 ([#512](#512))
([b309a94](b309a94))

---
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.

Add missing tket2.quantum operations to quantum module
4 participants