PlatformOptimizer

Trait PlatformOptimizer 

Source
pub trait PlatformOptimizer:
    Debug
    + Send
    + Sync {
    // Required methods
    fn optimize_sequence(
        &self,
        gates: &[CompiledGate],
        config: &HardwareCompilationConfig,
    ) -> QuantRS2Result<OptimizedSequence>;
    fn estimate_fidelity(&self, sequence: &[CompiledGate]) -> f64;
    fn get_constraints(&self) -> PlatformConstraints;
}
Expand description

Platform-specific optimization trait

Required Methods§

Source

fn optimize_sequence( &self, gates: &[CompiledGate], config: &HardwareCompilationConfig, ) -> QuantRS2Result<OptimizedSequence>

Optimize gate sequence for specific platform

Source

fn estimate_fidelity(&self, sequence: &[CompiledGate]) -> f64

Estimate sequence fidelity

Source

fn get_constraints(&self) -> PlatformConstraints

Get platform-specific constraints

Implementors§