-
Notifications
You must be signed in to change notification settings - Fork 575
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
IsingYY
differentiability
#1425
Conversation
IsingYY
differentiability
Codecov Report
@@ Coverage Diff @@
## master #1425 +/- ##
=======================================
Coverage 98.24% 98.24%
=======================================
Files 160 160
Lines 12016 12027 +11
=======================================
+ Hits 11805 11816 +11
Misses 211 211
Continue to review full report at Codecov.
|
@rmoyard is this review ready? Just checking, as no-one has been tagged for review :) |
@josh146 Yes indeed it is ready! I forgot to tag someone. |
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.
Thanks @rmoyard, looks good from my end!
@@ -1849,6 +1849,7 @@ class IsingYY(Operation): | |||
num_wires = 2 | |||
par_domain = "R" | |||
grad_method = "A" | |||
generator = [np.array([[0, 0, 0, -1], [0, 0, 1, 0], [0, 1, 0, 0], [-1, 0, 0, 0]]), -1 / 2] |
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.
nice 👍
Co-authored-by: Josh Izaac <josh146@gmail.com>
Co-authored-by: Josh Izaac <josh146@gmail.com>
Hi @rmoyard, is this PR ready to be merged? |
Context:
This PR makes
IsingYY
differentiable for the different devices Jax, TensorFlow and Autograd.Description of the Change:
IsingYY
operation tojax_ops.py
,autograd_ops.py
, andtf_ops.py
.DefaultQubitAutograd
,DefaultQubitJAX
, andDefaultQubitTF
devices to supportIsingYY
.diff-method
.Related Issues
Closes #1347