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

Implementors§