Hi there(adsbygoogle = window.adsbygoogle || []).push({});

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

|q_{0}⟩--------[H]-------

|q_{1}⟩------------------

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 Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Quantum Computing gate matricies

Tags:

**Physics Forums | Science Articles, Homework Help, Discussion**