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$.
pub fn apply_gate_kernel<R>(
state: &HilbertState<R>,
gate: &Gate<R>,
) -> Result<HilbertState<R>, QuantumError>where
R: RealField,Applies a quantum gate to a state: $|\psi’\rangle = U |\psi\rangle$.