Skip to main content

apply_rx_simd

Function apply_rx_simd 

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

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

RX(θ) = [[cos(θ/2), −i·sin(θ/2)], [−i·sin(θ/2), cos(θ/2)]]