from common import H, basis, cnot, describe, single

# Le circuit : H sur le qubit 0, puis CNOT(0 → 1)
prepare = cnot(0, 1, 2) @ single(H, 0, 2)

for label in ["00", "01", "10", "11"]:
    print(f"entrée |{label}⟩ -> amplitudes", describe(prepare @ basis(label)))
