The Bloch Spheres of the State | +->

Press + to interact
# Create a quantum circuit with one qubit
qc = 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.