[−][src]Function qip::state_ops::apply_ops
pub fn apply_ops<P: Precision>(
n: u64,
ops: &[&UnitaryOp],
input: &[Complex<P>],
output: &mut [Complex<P>],
input_offset: u64,
output_offset: u64,
multithread: bool
)
Apply ops
to the input
, storing the results in output
. If either start at a nonzero state
index in their 0th index, use input/output_offset
.
This is much less efficient as compared to repeated applications of apply_op
, if your ops can
be applied in sequence, do so with apply_op
.