Quantum Computing, Programming, Technology, Rust, Coding.
pub fn measure(&self) -> String { if self.asleep_amplitude.norm_sqr() > self.awake_amplitude.norm_sqr() { "|0⟩".to_string() } else { "|1⟩".to_string() } } } Let’s make it so that we can access it from the rest of our program. filename: src/lib.rs mod qubit; pub use qubit::QuantumCat; We can confirm