Created
January 6, 2020 13:07
-
-
Save yoongun/553864bdb7e0a29f6c3d84ee81f1a729 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
#[cfg(test)] | |
mod tests { | |
use super::*; | |
#[test] | |
fn test_init_qubit() { | |
let qubit: Qubit = Default::default(); | |
assert_eq!(qubit.theta, 0.0); | |
assert_eq!(qubit.phi, 0.0); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment