Quantum Algorithms, Quantum Computing, Physics, Mathematics, Education.
qc.measure_all() circuits.append(qc) # X basis measurement qc = QuantumCircuit(1) qc.initialize(input_state, 0) qc.h(0) qc.measure_all() circuits.append(qc) # Y basis measurement qc = QuantumCircuit(1) qc.initialize(input_state, 0) qc.sdg(0) qc.h(0) qc.measure_all() circuits.append(qc) # run