(self, config: Optional[QECConfig] = None)
| 236 | """Main class for quantum error correction""" |
| 237 | |
| 238 | def __init__(self, config: Optional[QECConfig] = None): |
| 239 | self.config = config or QECConfig() |
| 240 | self.noise_simulator = NoiseSimulator(self.config) |
| 241 | self.error_detector = ErrorDetector(self.config) |
| 242 | self.error_corrector = ErrorCorrector(self.config) |
| 243 | self.logical_encoder = LogicalQubitEncoder(self.config) |
| 244 | self.adaptive_decoder = AdaptiveDecoder(self.config) |
| 245 | |
| 246 | def process_circuit(self, circuit: QuantumCircuit) -> Dict: |
| 247 | """Process a quantum circuit through the QEC pipeline""" |
nothing calls this directly
no test coverage detected