pub trait OptimizationPass:
Send
+ Sync
+ Debug {
// Required methods
fn pass_name(&self) -> &str;
fn apply(
&self,
gates: &[NativeGate],
) -> Result<Vec<NativeGate>, QuantRS2Error>;
fn cost_estimate(&self, gates: &[NativeGate]) -> Duration;
}Required Methods§
fn pass_name(&self) -> &str
fn apply(&self, gates: &[NativeGate]) -> Result<Vec<NativeGate>, QuantRS2Error>
fn cost_estimate(&self, gates: &[NativeGate]) -> Duration
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".