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
- 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/)
- Discrete Adiabatic (DiscreteAdiabatic/)
- CUDA Backend
- Python Binding Layer (C++ Side)