ZNECapable

Trait ZNECapable 

Source
pub trait ZNECapable {
    // Required methods
    fn execute_scaled<const N: usize>(
        &self,
        circuit: &Circuit<N>,
        scale_factor: f64,
        shots: usize,
    ) -> DeviceResult<CircuitResult>;
    fn supports_scaling_method(&self, method: NoiseScalingMethod) -> bool;
}
Expand description

Trait for devices that support ZNE

Required Methods§

Source

fn execute_scaled<const N: usize>( &self, circuit: &Circuit<N>, scale_factor: f64, shots: usize, ) -> DeviceResult<CircuitResult>

Execute circuit with noise scaling

Source

fn supports_scaling_method(&self, method: NoiseScalingMethod) -> bool

Check if scaling method is supported

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§