API Reference
Complete reference for all public QECSync Python SDK classes and methods.
DecoderEngine
The primary interface for syndrome decoding. Initialize with a decoder algorithm, code distance, and noise model.
DecoderEngine(algorithm, code_distance, noise_model)
DecoderEngine.decode_rounds(syndromes, rounds) → DecoderResult
DecoderEngine.from_device(device_spec, code_distance) → DecoderEngine
Class method. Constructs a decoder with noise model derived from a DeviceSpec object. Algorithm defaults to "mwpm".
NoiseModel
Encapsulates per-qubit and per-gate error rates used for decoder weight computation.
NoiseModel.depolarizing(p, n_qubits) → NoiseModel
NoiseModel.from_ibm_json(path) → NoiseModel
Load from an IBM Quantum calibration export (JSON format from IBM Quantum Experience dashboard).
NoiseModel.from_quantinuum_json(path) → NoiseModel
Load from a Quantinuum H-series calibration export.
Compiler
Translates logical Clifford+T circuits into fault-tolerant physical gate schedules.
Compiler(device) → Compiler
Compiler.compile(circuit, code_distance, target_logical_error) → CompilerResult
DeviceSpec
Hardware device specification. Captures qubit topology, native gate set, and per-qubit noise characteristics.
DeviceSpec.from_ibm_json(path) → DeviceSpec
DeviceSpec.from_quantinuum_json(path) → DeviceSpec
device.qubit_count → int
device.topology → str
Returns topology identifier: "grid", "heavy-hex", "all-to-all", or "custom".
DecoderResult
Returned by DecoderEngine.decode_rounds().
result.logical_correction → PauliString
result.latency_ms → float
result.syndrome_graph → SyndromeGraph