Quantum Computing, Qiskit, Quantum, Quantum Optimization, Quantum Physics.
decoding[:,1].conj(), encoding ))**2 return prob probabilities = [] for i in range(len(decoding)): for j in range(len(encoding)): prob = get_prob_observe_zero(encoding[j], decoding[i]) print('[Obtaining zero at {0}-th bit of {1} with. prob. {2}]'.format(format(i+1,'2'), format(j,'05b'), prob))