I just asked Google in AI mode "qiskit bell state" and it gave me the code.
from qiskit import QuantumCircuit
from qiskit.quantum_info import Statevector
from qiskit.visualization import plot_histogram
# 1. Create a quantum circuit with 2 qubits and 2 classical bits
qc = QuantumCircuit(2, 2)
# 2. Apply a Hadamard gate to qubit 0 to create a superposition
qc.h(0)
# 3. Apply a CNOT gate with qubit 0 as control and qubit 1 as target
qc.cx(0, 1)
# 4. (Optional) View the ideal quantum statevector before measurement
state = Statevector.from_instruction(qc)
print("Statevector:\n", state)
# 5. Measure both qubits into the classical bits
qc.measure([0, 1], [0, 1])
# 6. Draw the circuit text representation
print("\nCircuit Diagram:")
print(qc.draw(output="text"))
You can go run it on IBM Quantum Platform or AWS Braket