Quantum Computing, Programming, Technology, Rust, Coding.
let superposition_cat = initial_cat.hadamard(); println!("After Hadamard: Asleep amplitude: {}, Awake amplitude: {}", superposition_cat.asleep_amplitude, superposition_cat.awake_amplitude); } Now if we look at the output, we can see that the cat is in some inbetween state. After Hadamard: Asleep