Skip to main content

CommutationOptimization

Trait CommutationOptimization 

Source
pub trait CommutationOptimization {
    // Required methods
    fn optimize_gate_order(&mut self, analyzer: &CommutationAnalyzer);
    fn group_commuting_gates(&mut self, analyzer: &CommutationAnalyzer);
}
Expand description

Extension methods for circuit optimization using commutation

Required Methods§

Source

fn optimize_gate_order(&mut self, analyzer: &CommutationAnalyzer)

Reorder gates to maximize parallelism

Source

fn group_commuting_gates(&mut self, analyzer: &CommutationAnalyzer)

Group commuting gates together

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§