Question about code #753
-
|
Hello everyone, I am writing this to make sure my code works as intended. I already did some verifications and seems correct, but validation from an expert would be nice. I want to build a circuit that, initializing the qubits in the |+-+-...> state, applies a global unitary exp(-i gamma Hc) followed by applying the unitary exp(-i beta X(i)) on each qubit. Finally, I just want to compute an expected value given the final state obtained by applying the unitaries. My code is the following: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hi! This does look largely correct to me. it's not clear to me that you necessarily want to the the absolute value of |
Beta Was this translation helpful? Give feedback.
Hi!
This does look largely correct to me.
it's not clear to me that you necessarily want to the the absolute value of
Ebased on what you've said.But there are reasons to do so of course.