pub trait ErrorMitigationStrategy: Send + Sync {
// Required methods
fn mitigate_errors(
&self,
measurement_data: &MeasurementData,
) -> Result<MitigatedData, QECError>;
fn get_strategy_name(&self) -> &str;
fn get_parameters(&self) -> HashMap<String, f64>;
fn estimate_overhead(&self) -> f64;
}Expand description
Error mitigation strategy trait
Required Methods§
Sourcefn mitigate_errors(
&self,
measurement_data: &MeasurementData,
) -> Result<MitigatedData, QECError>
fn mitigate_errors( &self, measurement_data: &MeasurementData, ) -> Result<MitigatedData, QECError>
Apply error mitigation
Sourcefn get_strategy_name(&self) -> &str
fn get_strategy_name(&self) -> &str
Get strategy name
Sourcefn get_parameters(&self) -> HashMap<String, f64>
fn get_parameters(&self) -> HashMap<String, f64>
Get mitigation parameters
Sourcefn estimate_overhead(&self) -> f64
fn estimate_overhead(&self) -> f64
Estimate mitigation overhead