I'm trying to replicate a Bell state through a circuit in Qiskit.
I created the circuit described below:
from qiskit import QuantumRegister, ClassicalRegister, QuantumCircuit
from numpy import pi
qreg_q = QuantumRegister(2, 'q')
creg_c = ClassicalRegister(2, 'c')
circuit = QuantumCircuit(qreg_q, creg_c)
circuit.reset(qreg_q[0])
circuit.h(qreg_q[0])
circuit.reset(qreg_q[1])
circuit.cx(qreg_q[0], qreg_q[1])
circuit.measure(qreg_q[0], creg_c[0])
circuit.measure(qreg_q[1], creg_c[1])
Then I runned a simulation on an IBM Quantum Computer (a real one, not a simulator). Notice that I have reset the qubits to |0> state. If I do this, the simulation result gives me |00> and |11> as possible measured states, each with approx.50% probability of being measured.
I used to think that qubits in Qiskit were always initialized to |0> state. BUT if I comment the resetting of the qubits the simulation gives me 01 as the resulting state.
Is this to be expected? Or am I doing something incredibly foolish and obviously wrong that I'm not seeing?
Thanks a lot.