Quantum Computing, Qiskit, Quantum, Quantum Optimization, Quantum Physics.
function to compute the success probability of observing zero def get_prob_observe_zero(encoding, decoding): # the length of the vectors projected to the spaces spanned by the basis states of the decoding prob = np.abs(np.dot( decoding[:,0].conj(), encoding ))**2 + np.abs(np.dot(