Preparing the catalog and filters…Katalog ve filtreler hazırlanıyor…
Starter code
module bell_state;
fn main() {
let q = qreg[2];
H(q[0]);
CNOT(q[0], q[1]);
let a: Bit = measure(q[0]);
let b: Bit = measure(q[1]);
return (a, b);
}Expected output
Two-qubit register initialized
H applied to q[0]
CNOT applied from q[0] to q[1]
Measurements trend toward 00 or 11
Debugging checklist
Run the starter code
Inspect state probabilities
Run multiple samples
Explain why 01 and 10 should be rare
Extension challenge
Add an X gate before CNOT and explain how the correlated outcomes change.