Bell state in Qiskit: the first entanglement experiment

A starter Qiskit experiment for understanding entanglement through a Bell state.

This experiment will reproduce a Bell state circuit using a Hadamard gate followed by CNOT. The purpose is to understand entanglement through code, measurement counts, and plain-language explanation.

from qiskit import QuantumCircuitnncircuit = QuantumCircuit(2, 2)ncircuit.h(0)ncircuit.cx(0, 1)ncircuit.measure([0, 1], [0, 1])nprint(circuit)

The important question is not only what the circuit outputs, but why the results are correlated.