circus 0.1.1

Quantum circuit simulator
Documentation
  • Coverage
  • 41.03%
    16 out of 39 items documented1 out of 16 items with examples
  • Size
  • Source code size: 31.39 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 6.57 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • matthunz
// Create a bell state, or EPR pair, a superposition of qubits 0 and 1
let mut state = State::new(2);
state.h(0);
state.cx(0, 1);
state.measure(1);

println!("{state}");
println!("{}", state.ket());