Module optimized_simd

Module optimized_simd 

Source
Expand description

SIMD-accelerated operations for quantum state vector simulation

This module provides SIMD-optimized implementations of quantum gate operations for improved performance on modern CPUs using SciRS2 SIMD operations.

Structs§

ComplexVec4Deprecated
Simplified SIMD-like structure for complex operations NOTE: This is being deprecated in favor of SciRS2 SIMD operations. New code should use scirs2_core::simd_ops::SimdUnifiedOps directly.
GateFusion
Gate fusion structure for combining adjacent single-qubit gates

Functions§

apply_cnot_vectorized
Vectorized CNOT gate application using SIMD for processing multiple pairs
apply_h_gate_simd
Apply Hadamard gate using SIMD-like operations
apply_h_gate_simd_v2
Apply Hadamard gate using SciRS2 SIMD operations
apply_rx_gate_simd
Apply rotation-X gate using SIMD-like operations
apply_ry_gate_simd
Apply rotation-Y gate using SIMD-like operations
apply_rz_gate_simd
Apply rotation-Z gate using SIMD-like operations
apply_s_gate_simd
Apply phase gate (S gate) using SIMD-like operations
apply_single_qubit_gate_optimized
SIMD-optimized wrapper function for applying gates
apply_single_qubit_gate_scalar
Scalar implementation of apply_single_qubit_gate for fallback
apply_single_qubit_gate_simd
Apply a single-qubit gate to multiple amplitudes using SIMD-like operations
apply_single_qubit_gate_simd_v2
Apply a single-qubit gate using SciRS2 SIMD operations
apply_t_gate_simd
Apply T gate using SIMD-like operations
apply_x_gate_simd
Apply X gate to multiple amplitudes using SIMD-like operations
apply_y_gate_simd
Apply Y gate using SIMD-like operations
apply_z_gate_simd
Apply Z gate to multiple amplitudes using SIMD-like operations