How cqml-skku/ccex works
CCEX is a command-line simulator of qubit coherence dynamics. The intended user workflow is to provide simulation options and physical-system inputs, construct qubit/bath/defect models, select cluster-expansion calculations, and save coherence results. The README documents only the overall simulation purpose; the excerpts show command-line setup and input-reading responsibilities, but not the simulator or output implementations. Accordingly, those workflow links are shown as unverified rather than asserted call chains.
Main entry points: simulator.cpp Simulator · reader.cpp Input reader · main.cpp CLI entry · option.cpp Options
Components 20
Inputs and setup
- CLI entry
main.cpp - Options
src/option.cpp - JSON parser
src/json.cpp - Input reader
src/reader.cpp - Configuration
src/general.cpp
Spin system
- Qubit model
include/qubit.h - Bath model
src/bath.cpp - Defect model
src/defect.cpp - Pulse model
src/pulse.cpp
Coherence calculation
- Cluster builder
src/cluster.cpp - PCCE clustering
src/cluster_pcce.cpp - Hash clustering
src/cluster_hash.cpp - DSJITB clustering
src/cluster_dsjitb.cpp - Simulator
src/simulator.cpp - CCE simulator
src/simulator_cce.cpp - GCCE simulator
src/simulator_gcce.cpp - Hamiltonian simulator
src/simulator_hamiltonian.cpp
Results and support
- Result writer
src/output.cpp - Memory helpers
src/memory.cpp
Other components
- User
Connections 14
- User → CLI entry: provides options
- CLI entry → Options: sets options
main.cpp - CLI entry → Cluster builder: sets method
main.cpp - CLI entry → Input reader: loads inputs
- Options → JSON parser: parses config
src/option.cpp - Input reader → Qubit model: populates
src/reader.cpp - Input reader → Bath model: populates
- Input reader → Defect model: populates
- Input reader → Configuration: updates
- Simulator → Cluster builder: uses clusters
- Simulator → CCE simulator: dispatches
- Simulator → GCCE simulator: dispatches
- Simulator → Hamiltonian simulator: dispatches
- Simulator → Result writer: saves results