1
$\begingroup$

I am trying to understand the steps of how make a state preparation circuit from a quantum state. For making my question more clearer, for example, for the state is $\frac{|00\rangle+|11\rangle}{\sqrt{2}}$, the state preparation circuit is :enter image description here

I want to draw the state preparation circuit for the quantum state $\frac{1}{2}( |1000\rangle + |0100\rangle + |0010\rangle + |0001\rangle)$.

I was following this lecture. I am not able to completely understand the steps used to draw circuits. It would be great if someone can help me with this question.

$\endgroup$
8
2
$\begingroup$

I have added an image for your reference. If you have to create any state but don't know the circuit then you can always initialize the state then using qiskit transpile, you can decompose the circuit in terms of basis gates

$\endgroup$
1
  • $\begingroup$ Thank you @prathameshbhole for providing me with such a great code. $\endgroup$ Jul 27 at 6:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.