- #1
Fixxxer125
- 41
- 0
Hi there
I am working through a quantum gate section of my course and I am a bit puzzled on how to calculate a matrix for consecutive quantum gates. I understand how to generate a matrix for
|q0⟩--------[H]-------
|q1⟩------------------
Which is simply the tensor product of the hadamard and identity matrix. However I am unsure what to do if the circuit is modified to be have a CNOT gate after the hadamard gate with the top qubit as the control and the bottom as a target. i have tried adding the matricies but this doesn't seem to work. Thanks for your time
I am working through a quantum gate section of my course and I am a bit puzzled on how to calculate a matrix for consecutive quantum gates. I understand how to generate a matrix for
|q0⟩--------[H]-------
|q1⟩------------------
Which is simply the tensor product of the hadamard and identity matrix. However I am unsure what to do if the circuit is modified to be have a CNOT gate after the hadamard gate with the top qubit as the control and the bottom as a target. i have tried adding the matricies but this doesn't seem to work. Thanks for your time