-
Notifications
You must be signed in to change notification settings - Fork 28
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
Added QFT benchmark for Qulacs #30
Conversation
|
circuit.add_dense_matrix_gate(wire, [[1,0],[0, np.exp(1j * (np.pi/(2**(wire-i)))/2)]]) | ||
circuit.add_CNOT_gate(i, wire) | ||
circuit.add_dense_matrix_gate(wire, [[1,0],[0, np.exp(-1j * (np.pi/(2**(wire-i)))/2)]]) | ||
circuit.add_CNOT_gate(i, wire) |
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 think it's called CUz
gate for control shift.
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'm looking at the docs and only see a CZ
gate and no CUz
gate.
http://docs.qulacs.org/en/latest/pyRef/modules.html#qulacs.gate.CZ
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.
OK could you file an issue for them then? ask about the best way to implement QFT using their software? also remember to ref this PR.
Note: Could not find the CRZ equivalent in Qulacs. Used the decomposition in https://pennylane.readthedocs.io/en/stable/code/api/pennylane.CRZ.html Unsure if I've used the correct unitary.