pub trait NoiseModel: Send + Sync {
// Required methods
fn apply_readout_noise(
&self,
state: &Array1<Complex64>,
) -> Result<Array1<Complex64>>;
fn readout_error_probability(&self, qubit: usize) -> f64;
}
Expand description
Noise model trait for realistic sampling
Required Methods§
Sourcefn apply_readout_noise(
&self,
state: &Array1<Complex64>,
) -> Result<Array1<Complex64>>
fn apply_readout_noise( &self, state: &Array1<Complex64>, ) -> Result<Array1<Complex64>>
Apply readout noise to measurements
Sourcefn readout_error_probability(&self, qubit: usize) -> f64
fn readout_error_probability(&self, qubit: usize) -> f64
Get readout error probability for qubit