Replies: 2 comments 2 replies
-
Thanks for posting this here. I'm still having trouble running your code due to missing imports. Could you add those so I can help debug? There are two possibilities for your workflow:
Have you tried either of these approaches? |
Beta Was this translation helpful? Give feedback.
2 replies
-
To the question of where the depolarizing noise is implemented, as asked on Discord: the noise model you imported from Mitiq actually comes from Qiskit. So to understand how the noise model is implemented you would need to check the Qiskit docs |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a circuit that is obtained from trotterization. I start with 5 qubits. I also want to add circuit noise which I do with an initial depolarizing noise and then use scales that are quadratic multiple of the trotterized step size to produce noisy circuits that are folded versions of the circuit with the initial noise. At the end I want to measure the Pauli-X operator on the outputs of the circuit.
To measure the Pauli-X on the first qubit, I apply circuit.h(0) before the measurement. I think this should be done after the folding but once I do that Mitiq does not seem to recognize my curcuit. On the other hand, when I do the measurement first, then do the folding (which I don't think is correct), most of the expectation values (for different trotter steps) are close to 0, which are far from the exact expectation value by an order of 0.4.
Here is a snippet of my code:
Now if we print the joint_exp_values which is the expectation value due to the error caused by both the trotter step sizes and the physical noise, we see the expectation values around 0 that I wrote about at the beginning.
Beta Was this translation helpful? Give feedback.
All reactions