Configuration for quantum error correction
| 22 | |
| 23 | @dataclass |
| 24 | class QECConfig: |
| 25 | """Configuration for quantum error correction""" |
| 26 | code_distance: int = 3 # Distance of the quantum error correction code |
| 27 | physical_error_rate: float = 0.001 # Physical qubit error rate |
| 28 | measurement_error_rate: float = 0.01 # Measurement error rate |
| 29 | max_iterations: int = 100 # Maximum iterations for syndrome decoding |
| 30 | |
| 31 | @dataclass |
| 32 | class ErrorSyndrome: |