3
$\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
  • 3
    $\begingroup$ Nielsen and Chuang - Chapter 4 $\endgroup$
    – Rammus
    Jul 24, 2021 at 18:27
  • $\begingroup$ Thank you @Rammus for providing me the link. $\endgroup$
    – Manu
    Jul 24, 2021 at 18:48
  • 2
    $\begingroup$ Does this answer your question? Entanglement distribution of W-State over different locations $\endgroup$ Jul 24, 2021 at 20:34
  • 1
    $\begingroup$ @ManuChaudhary: What do you mean by to draw the circuit? Do you look for an algorithm which implements preparation of the state? If so, please have a look at the paper I refered to in my linked answer. $\endgroup$ Jul 25, 2021 at 6:52
  • 1
    $\begingroup$ Thank you @MartinVesely for providing me the paper. $\endgroup$
    – Manu
    Jul 26, 2021 at 14:28

1 Answer 1

3
$\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$
    – Manu
    Jul 27, 2021 at 6:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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