-
Notifications
You must be signed in to change notification settings - Fork 3
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!: Use angle type in quantum operations #467
Conversation
210e0ba
to
da8e2d9
Compare
da8e2d9
to
7669a6a
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #467 +/- ##
==========================================
+ Coverage 91.94% 91.98% +0.03%
==========================================
Files 58 58
Lines 5849 5852 +3
==========================================
+ Hits 5378 5383 +5
+ Misses 471 469 -2 ☔ View full report in Codecov by Sentry. |
@@ -68,10 +70,10 @@ def random_walk_phase_estimation( | |||
def example_controlled_oracle(q1: qubit, q2: qubit, t: float) -> tuple[qubit, qubit]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this function take an angle?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Depends how you interpret things. I always think of the t
in e^(-itH)
as time so I kept float here. But happy to change the angle if you prefer (will require more explicit angle to float and vice versa conversions though)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
never mind
🤖 I have created a release *beep* *boop* --- ## [0.11.0](v0.10.0...v0.11.0) (2024-09-11) ### ⚠ BREAKING CHANGES * `guppy.take_module` renamed to `guppy.get_module` and no longer removes the module from the state. * Quantum operations `rx`, `rz`, `phased_x`, and `zz_max` use the `angle` type instead of floats. ### Features * Add implicit importing of modules ([#461](#461)) ([1b73032](1b73032)) * Use angle type in quantum operations ([#467](#467)) ([ce0f746](ce0f746)) ### Bug Fixes * hseries ops use floats instead of angles ([#483](#483)) ([7ed3853](7ed3853)), closes [#477](#477) * Keep track of definitions that are implicitly imported ([#481](#481)) ([a89f225](a89f225)), closes [#480](#480) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Closes #240
BREAKING CHANGE: Quantum operations
rx
,rz
,phased_x
, andzz_max
use theangle
type instead of floats.