apply_single_qubit_gate_simd

Function apply_single_qubit_gate_simd 

Source
pub fn apply_single_qubit_gate_simd(
    matrix: &[Complex64; 4],
    in_amps0: &[Complex64],
    in_amps1: &[Complex64],
    out_amps0: &mut [Complex64],
    out_amps1: &mut [Complex64],
)
Expand description

Apply a single-qubit gate to multiple amplitudes using SIMD-like operations

This function processes 4 pairs of amplitudes at once using SIMD-like operations

ยงArguments

  • matrix - The 2x2 matrix representation of the gate
  • in_amps0 - The first set of input amplitudes (corresponding to bit=0)
  • in_amps1 - The second set of input amplitudes (corresponding to bit=1)
  • out_amps0 - Output buffer for the first set of amplitudes
  • out_amps1 - Output buffer for the second set of amplitudes