Skip to main content

simulate

Function simulate 

Source
pub fn simulate(
    num_qubits: usize,
    gates: &[Box<dyn GateOp>],
) -> QuantRS2Result<Array1<Complex64>>
Expand description

Apply a sequence of gates to a fresh |0…0⟩ state and return the final amplitude vector.