[][src]Function qip::qubits::apply_sparse_function

pub fn apply_sparse_function<F: 'static + Fn(u64) -> (u64, f64) + Send + Sync>(
    b: &mut dyn UnitaryBuilder,
    q_in: Qubit,
    q_out: Qubit,
    f: F
) -> Result<(Qubit, Qubit), &'static str>

Helper function for Boxing static functions and building sparse mats using the given UnitaryBuilder.