Quantum Computing, Quantum Physics, Programming, Physics, Science.
= vec / vec[0] # global phase qvec = vec / np.linalg.norm(vec) # normalize Matrix(np.round(qvec, 5)) Output of the circuit simulation Now that we have our result with a quantum circuit, we can directly compute the expected result and compare. import scipy # Start with |0> state start = np.zeros(2