Quantum Algorithm Development Guide¶
This guide introduces how to develop new quantum algorithms in SparQ/QRAM-Simulator.
Core Paradigm¶
SparQ adopts the Register Level Programming paradigm, in contrast to the traditional composition of gate-level circuits:
Dimension |
Traditional approach |
Register Level Programming |
|---|---|---|
State storage |
Arrays of qubits |
Register values stored directly as |
Arithmetic |
Compiled into quantum gate sequences |
Arithmetic performed directly on register values |
Development model |
Bottom-up (build from gate circuits) |
Top-down (high-level modules first, then refine) |
Development Workflow¶
Environment setup - build the project and install dependencies
Understand the core components - get familiar with the code structure
Implement the algorithm - refer to existing experiments
Test and verify - ensure correctness
Submit the code - PR to upstream