powered by
The function builds one of the four Bell states, according to the input qubits
Bell(qubit1, qubit2)
1st input qubit
2nd input qubit
One of the Bell states as a vector depending on the input qubits.
https://en.wikipedia.org/wiki/Bell_state https://books.google.co.in/books?id=66TgFp2YqrAC&pg=PA25&redir_esc=y
# NOT RUN { init() Bell(Q$Q0, Q$Q0) Bell(Q$Q0, Q$Q1) Bell(Q$Q1, Q$Q0) Bell(Q$Q1, Q$Q1) # }
Run the code above in your browser using DataLab