Quantum Computing, Qiskit, Quantum, Quantum Optimization, Quantum Physics.
plot_histogram We check the success probability by calculating the projections of encoding by decoding. encoding = dict() encoding["000"] = np.array( [1., 0., 0. , 0. ] ) encoding["001"] = (1.0/sqrt(3.)) * np.array( [1., 1., 1., 0.] ) encoding["010"] = (1.0/sqrt(3.)) * np.array( [1., -1., 0., 1.] )