-
Notifications
You must be signed in to change notification settings - Fork 184
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
Hadamard test example #1867
Hadamard test example #1867
Conversation
Command Bot: Processing... |
Command Bot: Processing... |
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 @marwafar. LGTM!
nit: You can just skim through for spaces around '=', ','
There is one job (Create Docker Images) failing. |
Command Bot: Processing... |
Pull Request is not mergeable
Command Bot: Processing... |
CUDA Quantum Docs Bot: A preview of the documentation can be found here. |
I added an example for the Hadamard test. The Hadamard test is used to compute the matrix element for the problem of interest. Then, I use numpy (for large problem it can be CuPy) for diagonalizing the matrix. Hadamard test is an intermediate algorithm between VQE and QPE. In addition, it is an algorithm that is using cudaq.control() feature