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§
Sourcefn execute_scaled<const N: usize>(
&self,
circuit: &Circuit<N>,
scale_factor: f64,
shots: usize,
) -> DeviceResult<CircuitResult>
fn execute_scaled<const N: usize>( &self, circuit: &Circuit<N>, scale_factor: f64, shots: usize, ) -> DeviceResult<CircuitResult>
Execute circuit with noise scaling
Sourcefn supports_scaling_method(&self, method: NoiseScalingMethod) -> bool
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".