Function controlled_phase_simd

Source
pub fn controlled_phase_simd(
    amplitudes: &mut [Complex64],
    control_qubit: usize,
    target_qubit: usize,
    theta: f64,
) -> QuantRS2Result<()>
Expand description

Apply a controlled phase rotation

This applies a phase rotation to amplitudes where the control qubit is |1⟩.