The Bloch Spheres of the State | +->
Learn about the Bloch spheres of the state | +->.
# Create a quantum circuit with one qubitqc = QuantumCircuit(2)# put qubit 0 into |+>qc.h(0)# put qubit 1 into |->qc.x(1)qc.h(1)out = execute(qc,Aer.get_backend('statevector_simulator')).result().get_statevector()plot_bloch_multivector(out)
Get hands-on with 1200+ tech skills courses.