Quantum Computing gate matricies

Fixxxer125
Messages
40
Reaction score
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
 
Physics news on Phys.org
You should do matrix multiplication(keeping in mind the order) not addition.

The matrices represent operations (hence operators) done on the state. So if we take the input state as |in>, have state after the above circuit is (H x I)|in>, which is then the input to CNOT gate. So finally you get |out>=CNOT((H x I)|in>) which is equivalent to matrix multiplication of CNOT with H x I and |in>
 
Thanks for your help!
 
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. Towards the end of the first lecture for the Qiskit Global Summer School 2025, Foundations of Quantum Mechanics, Olivia Lanes (Global Lead, Content and Education IBM) stated... Source: https://www.physicsforums.com/insights/quantum-entanglement-is-a-kinematic-fact-not-a-dynamical-effect/ by @RUTA
If we release an electron around a positively charged sphere, the initial state of electron is a linear combination of Hydrogen-like states. According to quantum mechanics, evolution of time would not change this initial state because the potential is time independent. However, classically we expect the electron to collide with the sphere. So, it seems that the quantum and classics predict different behaviours!
Back
Top