Quantum Computing, Quantum Computer, Qiskit, Quantum Physics, Python.
vector array([[0], [1]]) X = np.array([[0,1],[1,0]]); X # make the X gate matrix array([[0, 1], [1, 0]]) X.dot(v0) # multiply and see the resulting state array([[0], [1]]) X.dot(v1) array([[1], [0]]) We can see applying |0⟩ with X matrix results in |1⟩ state and vice-versa Let’s see the same using