Skip to main content

apply_gate_kernel

Function apply_gate_kernel 

Source
pub fn apply_gate_kernel<R>(
    state: &HilbertState<R>,
    gate: &Gate<R>,
) -> Result<HilbertState<R>, QuantumError>
where R: RealField,
Expand description

Applies a quantum gate to a state: $|\psi’\rangle = U |\psi\rangle$.