C++ API Reference¶
API reference for the SparQ C++ framework. The content of this section is extracted from the Chinese Doxygen comments in the source header files, rendered by Breathe from the XML generated by Doxygen, and stays in sync with the source code.
Note
For the API reference of the Python side (pysparq), see API Reference;
for operator usage guides and examples, see Operator Reference.
- Core Components and Quantum Gates
- Basic Components (
SparQ/include/basic_components.h) - Basic Quantum Gates (
SparQ/include/basic_gates.h) - Integer-Register Hadamard (
SparQ/include/hadamard.h) - Quantum Fourier Transform (
SparQ/include/qft.h) - General Rotations and State Preparation (
SparQ/include/rot.h) - Conditional Rotations (
SparQ/include/condrot.h) - Interference Basic Components (
SparQ/include/quantum_interfere_basic.h)
- Basic Components (
- 核心组件与量子门
- Measurement and Readout
- 测量与读出
- QRAM Operations
- QRAM 操作
- Quantum Arithmetic and State Organization
- 量子算术与状态整理
- Register/System Operations and Debugging
- 寄存器/系统操作与调试
- Algorithm Library (Top Level)
- Grover Search (
SparQ_Algorithm/include/grover.h) - Shor Factoring (
SparQ_Algorithm/include/shor.h) - State Preparation (
SparQ_Algorithm/include/state_preparation.h) - Block Encoding Overview (
SparQ_Algorithm/include/block_encoding.h) - Hamiltonian Simulation (
SparQ_Algorithm/include/hamiltonian_simulation.h)
- Grover Search (
- 算法库(顶层)
- Block Encoding (BlockEncoding/)
- 块编码(BlockEncoding/)
- Discrete Adiabatic (DiscreteAdiabatic/)
- 离散绝热(DiscreteAdiabatic/)
- CUDA Backend
- CUDA 后端
- Python Binding Layer (C++ Side)
- Python 绑定层(C++ 侧)
中文版 ===
C++ API 参考¶
SparQ C++ 框架的 API 参考。本节内容抽取自源码头文件中的中文 Doxygen 注释, 由 Doxygen 生成 XML 后经 Breathe 渲染,与源码保持同步。
Note
Python 侧(pysparq)的 API 参考请见 API Reference;
算子的使用讲解与示例请见 Operator Reference。
- Core Components and Quantum Gates
- Basic Components (
SparQ/include/basic_components.h) - Basic Quantum Gates (
SparQ/include/basic_gates.h) - Integer-Register Hadamard (
SparQ/include/hadamard.h) - Quantum Fourier Transform (
SparQ/include/qft.h) - General Rotations and State Preparation (
SparQ/include/rot.h) - Conditional Rotations (
SparQ/include/condrot.h) - Interference Basic Components (
SparQ/include/quantum_interfere_basic.h)
- Basic Components (
- 核心组件与量子门
- Measurement and Readout
- 测量与读出
- QRAM Operations
- QRAM 操作
- Quantum Arithmetic and State Organization
- 量子算术与状态整理
- Register/System Operations and Debugging
- 寄存器/系统操作与调试
- Algorithm Library (Top Level)
- Grover Search (
SparQ_Algorithm/include/grover.h) - Shor Factoring (
SparQ_Algorithm/include/shor.h) - State Preparation (
SparQ_Algorithm/include/state_preparation.h) - Block Encoding Overview (
SparQ_Algorithm/include/block_encoding.h) - Hamiltonian Simulation (
SparQ_Algorithm/include/hamiltonian_simulation.h)
- Grover Search (
- 算法库(顶层)
- Block Encoding (BlockEncoding/)
- 块编码(BlockEncoding/)
- Discrete Adiabatic (DiscreteAdiabatic/)
- 离散绝热(DiscreteAdiabatic/)
- CUDA Backend
- CUDA 后端
- Python Binding Layer (C++ Side)
- Python 绑定层(C++ 侧)