- #1
Joao
- 80
- 8
Hi! Sorry for the bad English!
I'm trying to get a better understanding in quantum mechanics by doing the math of quantum circuits and I'm stuck! So, please, if someone can, help me! =)
I'm trying to the math of this circuit:
q0 ... l 0 ) .... x ... (I)
q1 ... l 0 ) ... H ... l ... H
... i ... ii ... iii ... iv
As seen on:
It can be described as " two qubits are created in state 0, q1 goes to a Hadamart gate, after they are entangled by a cnot gate and after the q1 goes through another hadamart gate"
Here's what I've got so far:
Q0 and q1 are in
[1]
[0]
I applied hadamart in q0, getting q0 to
[0.7]
[0.7]
Now I do a tensor between q0 and q1, to get ready to do the cnot gate, and I got:
[0.7]
[0]
[0.7]
[0]
Now I do a cnot gate and get:
[0.7]
[0]
[0]
[0.7]
Now I would like do a hadamart in the qbit that I already applied a Hadamart, and measure the other qubit
But now I'm lost! =(
In the video, the youtuber applied a tensor between a hadamart and a identity matrix and multiplied it by the matrix he got after the cnot gate... why?I mean... if I want to do a hadamart gate (for example) in a qubit, I just multiply the qubit matrix and the hadamart matrix... how do I apply gates after I got two qubits entangled? And how I measure just one of the qubits, and keep working applying gates to the other qubit?
Thanks!
I'm trying to get a better understanding in quantum mechanics by doing the math of quantum circuits and I'm stuck! So, please, if someone can, help me! =)
I'm trying to the math of this circuit:
q0 ... l 0 ) .... x ... (I)
q1 ... l 0 ) ... H ... l ... H
... i ... ii ... iii ... iv
As seen on:
It can be described as " two qubits are created in state 0, q1 goes to a Hadamart gate, after they are entangled by a cnot gate and after the q1 goes through another hadamart gate"
Here's what I've got so far:
Q0 and q1 are in
[1]
[0]
I applied hadamart in q0, getting q0 to
[0.7]
[0.7]
Now I do a tensor between q0 and q1, to get ready to do the cnot gate, and I got:
[0.7]
[0]
[0.7]
[0]
Now I do a cnot gate and get:
[0.7]
[0]
[0]
[0.7]
Now I would like do a hadamart in the qbit that I already applied a Hadamart, and measure the other qubit
But now I'm lost! =(
In the video, the youtuber applied a tensor between a hadamart and a identity matrix and multiplied it by the matrix he got after the cnot gate... why?I mean... if I want to do a hadamart gate (for example) in a qubit, I just multiply the qubit matrix and the hadamart matrix... how do I apply gates after I got two qubits entangled? And how I measure just one of the qubits, and keep working applying gates to the other qubit?
Thanks!
Last edited: