Skip to content

Commit

Permalink
fixed a bug that caused unwanted transpilation during compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
positr0nium committed Jun 23, 2024
1 parent 5d6b4b9 commit 942de73
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/qrisp/core/compilation.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,13 +181,10 @@ def allocation_level_transpile_predicate(op):

# Transpile logic synthesis
def logic_synth_transpile_predicate(op):

return (allocation_level_transpile_predicate(op) or
isinstance(op, LogicSynthGate))
return isinstance(op, LogicSynthGate)

reordered_qc = transpile(
reordered_qc,
)
reordered_qc, transpile_predicate = logic_synth_transpile_predicate)

# We combine adjacent single qubit gates
if not qs.abstract_params and False:
Expand Down

0 comments on commit 942de73

Please sign in to comment.