Skip to content

Instantly share code, notes, and snippets.

@yoongun
Created January 6, 2020 13:15
Show Gist options
  • Save yoongun/2511bdc870808b2e26eccec2f0ae4662 to your computer and use it in GitHub Desktop.
Save yoongun/2511bdc870808b2e26eccec2f0ae4662 to your computer and use it in GitHub Desktop.
fn main() {
for _n in 0..1000 {
let mut qubit = Qubit{ theta: f64::consts::PI / 2.0, phi: 0.0 };
let result = Qubit::measure(&mut qubit);
print!("{}", result);
}
println!("");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment