Quantum Computing, Quantum Computer, Qiskit, Quantum Physics, Python.
# Initialize our qubit and measure it qc = QuantumCircuit(1,1) qc.initialize(initial_state, 0) x_measurement(qc, 0, 0) # measure qubit 0 to classical bit 0 qc.draw('mpl') result = sim.run(qc).result().get_counts() plot_histogram(result) The result is state |1⟩ We saw that we created an X gate by