Quantum Computing, Quantum Computer, Simulator, From Scratch.
individually, like the above example where we apply H a gate on each of the qubits and then combine them). But how do we combine gates so that they can act as a single operator on multiple qubit state vectors? Turns out the answer is the same — just tensor product the gates! Let’s implement a