Skip to main content

apply_rz_simd

Function apply_rz_simd 

Source
pub fn apply_rz_simd(
    state: &mut Vec<Complex64>,
    theta: f64,
    target: usize,
    n_qubits: usize,
)
Expand description

Apply the RZ(theta) rotation gate to qubit target using SIMD.

RZ(θ) = [[exp(−iθ/2), 0], [0, exp(iθ/2)]]