Quantum Computing, Programming, Technology, Rust, Coding.
qubit. Similar to a classical NOT gate but for qubits. X∣Asleep⟩=∣Awake⟩ and X∣Awake⟩=∣Asleep⟩ We can update our quantum cat struct to now include a function that changes the cat’s state from asleep to awake. filename: src/qubit.rs // struct code impl QuantumCat { //... new() & measure() functions