Skip to content

Commit

Permalink
Apply Matt's suggestion
Browse files Browse the repository at this point in the history
Co-authored-by: Matthew Treinish <[email protected]>
ElePT and mtreinish authored Jan 10, 2025
1 parent 1fc3ec1 commit 0ecc598
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crates/accelerate/src/unitary_synthesis.rs
Original file line number Diff line number Diff line change
@@ -599,9 +599,8 @@ fn get_2q_decomposers_from_target(
_ => continue,
}
// Filter out non-2q-gate candidates
match op.operation.num_qubits() {
2 => (),
_ => continue,
if op.operation.num_qubits() != 2 {
continue
}
available_2q_basis.insert(key, replace_parametrized_gate(op.clone()));

0 comments on commit 0ecc598

Please sign in to comment.