-
Notifications
You must be signed in to change notification settings - Fork 42
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
Add IsingXY #303
Add IsingXY #303
Conversation
Hello. You may have forgotten to update the changelog!
|
Yes, there is an issue due to my poorly written workflow 😞 . You can just push an empty commit by
to rerun all workflows. |
Done! |
Codecov Report
@@ Coverage Diff @@
## master #303 +/- ##
=======================================
Coverage 99.44% 99.45%
=======================================
Files 36 36
Lines 3605 3656 +51
=======================================
+ Hits 3585 3636 +51
Misses 20 20
Continue to review full report at Codecov.
|
It seems like all tests pass besides |
Thanks! I failed to install clang-format on M1 and I tried to use black to make better format. Will try to install clang-format again and get back to you. |
Hi @multiphaseCFD. I think you need to add |
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.
I have one specific question here. I also would like to ask you benchmark two implementations. You can run make gbenchmark
and follow the instruction in https://github.com/PennyLaneAI/pennylane-lightning/blob/master/pennylane_lightning/src/benchmarks/README.md#benchmarksbench_kernels. Note that you can also filter the benchmarks to run. For more information, you may run ./BuildGBench/benchmarks/bench_kernels --help
ComplexPrecisionT{0.089653238654, 0.221581339836}, | ||
ComplexPrecisionT{0.217892318964, 0.291261285543}, | ||
ComplexPrecisionT{0.292993247509, 0.186570793390}, | ||
}; |
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.
Is this the result from default.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.
Is this the result from
default.qubit
?
Yes
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 work, so far!
|
Thanks @multiphaseCFD for a nice job! Still, I think you may need to implement a generator for a backward path. When a gate is a one-paramter Lie group, given by |
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 work @multiphaseCFD !
I'll approve. Once the others approve too we can merge this in.
Also, agreed with @chaeyeunpark for the backwards pass generator,
Sure! I will try this after I finalized current PR. As @mlxd told me, what I have to do for this PR is just implementing IsingXY gate. Is it fine with you @chaeyeunpark ? |
Thanks @mlxd ! |
Sure! Looking forward to seeing the generator for IsingXY in a subsequent PR. I am also gonna approve this. |
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 work! Thanks for that!
Sure! I've put it into my tasks. |
.DS_Store deleted
Thanks! |
Before submitting
Please complete the following checklist when submitting a PR:
All new features must include a unit test.
If you've fixed a bug or added code that should be tested, add a test to the
tests
directory!All new functions and code must be clearly commented and documented.
If you do make documentation changes, make sure that the docs build and
render correctly by running
make docs
.[ x] Ensure that the test suite passes, by running
make test
.Add a new entry to the
.github/CHANGELOG.md
file, summarizing thechange, and including a link back to the PR.
Ensure that code is properly formatted by running
make format
.When all the above are checked, delete everything above the dashed
line and fill in the pull request template.
Context:
Description of the Change:
Benefits:
Possible Drawbacks:
Macbook air M1 doesn't support large memory allocation in the tests
Related GitHub Issues: