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§
Sourcefn optimize_gate_order(&mut self, analyzer: &CommutationAnalyzer)
fn optimize_gate_order(&mut self, analyzer: &CommutationAnalyzer)
Reorder gates to maximize parallelism
Sourcefn group_commuting_gates(&mut self, analyzer: &CommutationAnalyzer)
fn group_commuting_gates(&mut self, analyzer: &CommutationAnalyzer)
Group commuting gates together