Quantum Algorithms, Quantum Computing, Physics, Mathematics, Education.
subtracting the times 1 was measured from the times 0 was measured and dividing by the total number of shots. This can be done in Qiskit with the following code: input_state = np.array(input_state) circuits = [] # Z basis measurement qc = QuantumCircuit(1) qc.initialize(input_state, 0)