Quantum Computing, Quantum Computer, Simulator, From Scratch.
construct them in our code by defining the corresponding matrix. And applying a gate is just multiplying the gate with the qubit. new_state_vector = U x old_state_vector Where U = unitary matrix, quantum gate We start by defining a function to apply a gate followed by four Pauli matrices and the