arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.06270quant-ph
收藏

利用SIMD加速量子态编码:设计、实现与基准测试

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

Universiti Teknologi Malaysia(马来西亚理工大学);Universitas Muhammadiyah Sidoarjo(西多阿乔穆罕默迪亚大学)

Riza Alaudin Syah, Irwan Alnarus Kautsar, Gunawan Witjaksono, Haza Nuzly Bin Abdull Hamed

AI总结:

本文提出Hybriqu Encoder,通过SIMD优化提升量子态编码效率,实验表明在64个量子比特时加速5.4%,且数据量超过L1缓存时加速更明显,强调了SIMD在计算主导任务中的优势。

摘要:

高效的数据编码是影响混合量子-经典算法运行速度的主要因素,但传统模拟器大部分时间用于将经典特征转换为量子旋转。本文介绍了Hybriqu Encoder,一个基于Rust的SIMD-aware内核,专注于角度编码,并通过CFFI与Python无缝集成。该内核利用AVX类向量通道同时处理四个双精度旋转,以适应缓存并使用预计算的三角函数因子,同时保持所有不安全操作在安全的Rust接口内。在Apple Silicon上的基准测试显示,使用纯角度编码在64个量子比特时快5.4%,当数据量超过L1缓存大小时加速增加,而快速应用整个状态向量旋转的内核受限于内存并无法从SIMD中受益。这些结果表明,当计算是主要关注点时,向量化能带来一致的改进,但数据传输速度的限制阻止了进一步的加速提升,突显了未来在改进状态更新和选择不同处理方法方面的努力需求。通过结合考虑架构的智能优化与Rust的安全特性,Hybriqu Encoder为更大的混合系统提供了灵活的基础,旨在减少未来混合量子-经典过程中的数据编码延迟。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑