Skip to content

Commit

Permalink
Merge branch '1.1.1' into add_reset
Browse files Browse the repository at this point in the history
  • Loading branch information
peachnuts committed Dec 5, 2023
2 parents e5c0abf + 06d0908 commit 134c5df
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bqskit/passes/search/generators/fourparam.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ def gen_successors(self, circuit: Circuit, data: PassData) -> list[Circuit]:

if self.count_outer_cnots(circuit, edge) >= 3:
# No need to build circuits with more than 3 cnots in a row
continue
if circuit.num_qudits != 2:
# Gaurd on >2 qubits to prevent high-error glitches in compile
continue

successor = circuit.copy()
successor.append_gate(CNOTGate(), edge)
Expand Down

0 comments on commit 134c5df

Please sign in to comment.