[−][src]Function q1tsim::gates::apply_gate_mat_slice
pub fn apply_gate_mat_slice<G: ?Sized>(
matrix: CMatSliceMut,
gate: &G,
bits: &[usize],
nr_bits: usize
) where
G: Gate,
Apply a gate
Apply gate gate
operating on the bits in bits
to a matrix matrix
. The
number of rows in matrix
must be 2^nr_bits
.