Quantum Computing, Programming, Technology, Rust, Coding.
project. cargo new quantum_gates cd ./quantum_gates/ We’re going to be using the num-complex crate, so let’s add it to our project. cargo add num-complex Now inside the src folder of our new rust project we can create a data structure representing a qubit. filename: src/qubit.rs use