Created
January 6, 2020 13:15
-
-
Save yoongun/2511bdc870808b2e26eccec2f0ae4662 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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