pub fn apply_z_gate_simd(
in_amps0: &[Complex64],
in_amps1: &[Complex64],
out_amps0: &mut [Complex64],
out_amps1: &mut [Complex64],
)Expand description
Apply Z gate to multiple amplitudes using SIMD-like operations
This is a specialized implementation for the Pauli Z gate, which only flips the sign of amplitudes where the target bit is 1.
ยงArguments
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 amplitudesout_amps1- Output buffer for the second set of amplitudes