from qiskit import QuantumCircuit
from qiskit.quantum_info import Statevector
qc = QuantumCircuit(2)
qc.h(0)       # superpose the first qubit
qc.cx(0, 1)   # correlate the second with the first
print(qc.draw())
print(Statevector.from_instruction(qc).probabilities_dict())
# Expected: {'00': 0.5, '11': 0.5}
