Accelerating Quantum State Encoding with SIMD: Design, Implementation, and Benchmarking

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Syah, Riza Alaudin, Kautsar, Irwan Alnarus, Witjaksono, Gunawan, Hamed, Haza Nuzly Bin Abdull
Formato: Preprint
Publicado: 2026
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866911574322577408
author Syah, Riza Alaudin
Kautsar, Irwan Alnarus
Witjaksono, Gunawan
Hamed, Haza Nuzly Bin Abdull
author_facet Syah, Riza Alaudin
Kautsar, Irwan Alnarus
Witjaksono, Gunawan
Hamed, Haza Nuzly Bin Abdull
contents Efficient data encoding is the main factor affecting how fast hybrid quantum-classical algorithms run, but traditional simulators spend most of their time changing classical features into quantum rotations. This work introduces Hybriqu Encoder, a Rust-based, SIMD-aware kernel that focuses exclusively on angle encoding and integrates transparently with Python via CFFI. The kernel processes four double-precision rotations at once using AVX-class vector lanes, combines data in a way that fits well with the cache and uses pre-calculated trigonometric factors, while keeping all unsafe operations within a safe Rust interface. Benchmarks on Apple Silicon show that using pure angle encoding is 5.4% faster at 64 qubits, and the speedup increases as the amount of data exceeds the L1 cache size, while kernels that quickly apply rotations to the entire state vector are limited by memory and do not benefit from SIMD. These results indicate that using vectorization leads to consistent improvements when calculations are the main focus, but limits on data transfer speed prevent additional speed increases, highlighting the need for future efforts on better state updates and choosing between different processing methods. By combining smart optimization that considers the architecture with Rust's safety features, the Hybriqu Encoder offers a flexible base for bigger, mixed systems designed to reduce data encoding delays in future hybrid quantum-classical processes.
format Preprint
id arxiv_https___arxiv_org_abs_2604_06270
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Accelerating Quantum State Encoding with SIMD: Design, Implementation, and Benchmarking
Syah, Riza Alaudin
Kautsar, Irwan Alnarus
Witjaksono, Gunawan
Hamed, Haza Nuzly Bin Abdull
Quantum Physics
Efficient data encoding is the main factor affecting how fast hybrid quantum-classical algorithms run, but traditional simulators spend most of their time changing classical features into quantum rotations. This work introduces Hybriqu Encoder, a Rust-based, SIMD-aware kernel that focuses exclusively on angle encoding and integrates transparently with Python via CFFI. The kernel processes four double-precision rotations at once using AVX-class vector lanes, combines data in a way that fits well with the cache and uses pre-calculated trigonometric factors, while keeping all unsafe operations within a safe Rust interface. Benchmarks on Apple Silicon show that using pure angle encoding is 5.4% faster at 64 qubits, and the speedup increases as the amount of data exceeds the L1 cache size, while kernels that quickly apply rotations to the entire state vector are limited by memory and do not benefit from SIMD. These results indicate that using vectorization leads to consistent improvements when calculations are the main focus, but limits on data transfer speed prevent additional speed increases, highlighting the need for future efforts on better state updates and choosing between different processing methods. By combining smart optimization that considers the architecture with Rust's safety features, the Hybriqu Encoder offers a flexible base for bigger, mixed systems designed to reduce data encoding delays in future hybrid quantum-classical processes.
title Accelerating Quantum State Encoding with SIMD: Design, Implementation, and Benchmarking
topic Quantum Physics
url https://arxiv.org/abs/2604.06270