pub fn apply(gate: Gate, state: &mut State, target: usize)
Expand description
Apply a transformation to a single target qubit, with no control(s).
Examples
use spinoza::{gates::{apply, Gate}, core::State};
let n = 3;
let mut state = State::new(n);
for t in 0..n {
apply(Gate::H, &mut state, t);
}