Quantum Computing, Quantum Programming, Quantum Physics, Mathematics.
matrices: Now this is called the tensor product of two matrices and there is a formula for evaluating it given by: which in our case will give us: Now we can use this formula to apply any single qubit gate to a two-qubit system. So if I wanted to apply a Y gate to the second qubit I would write: