pub fn apply_gate_kernel( state: &HilbertState, gate: &Gate, ) -> Result<HilbertState, PhysicsError>
Applies a quantum gate to a state: $|\psi’\rangle = U |\psi\rangle$.
state
gate
Ok(HilbertState)