quantrs2_sim/holographic_quantum_error_correction/
results.rs1use scirs2_core::ndarray::Array1;
7use scirs2_core::Complex64;
8use serde::{Deserialize, Serialize};
9
10use super::config::BulkReconstructionMethod;
11
12#[derive(Debug, Clone, Serialize, Deserialize)]
14pub struct HolographicQECResult {
15 pub correction_successful: bool,
17 pub syndromes: Vec<f64>,
19 pub decoded_errors: Vec<usize>,
21 pub error_locations: Vec<usize>,
23 pub correction_time: std::time::Duration,
25 pub entanglement_entropy: f64,
27 pub holographic_complexity: f64,
29}
30
31#[derive(Debug, Clone)]
33pub struct BulkReconstructionResult {
34 pub reconstructed_bulk: Array1<Complex64>,
36 pub reconstruction_fidelity: f64,
38 pub reconstruction_time: std::time::Duration,
40 pub method_used: BulkReconstructionMethod,
42}
43
44#[derive(Debug, Clone, Default, Serialize, Deserialize)]
46pub struct HolographicQECStats {
47 pub total_corrections: u64,
49 pub successful_corrections: u64,
51 pub correction_time: std::time::Duration,
53 pub average_entanglement_entropy: f64,
55 pub average_holographic_complexity: f64,
57 pub total_reconstructions: u64,
59 pub average_reconstruction_fidelity: f64,
61}