Preparing the catalog and filters…Katalog ve filtreler hazırlanıyor…
Starter code
module typed_rotation;
@target("browser-statevector");
fn main() {
const theta: Angle = 1.5708;
let q: QReg<1> = qreg[1];
Ry(q[0], theta);
let result: Bit = measure(q[0]);
return result;
}Expected output
One typed angle constant
One parameterized rotation
One typed measurement result
Debugging checklist
Run the parameterized example
Change theta
Inspect state probabilities
Describe the missing optimizer step
Extension challenge
Create a table of three theta values and compare their output probabilities.