From 942de73202bda08dece558814bd0ff1499027172 Mon Sep 17 00:00:00 2001 From: positr0nium Date: Sun, 23 Jun 2024 15:50:38 +0200 Subject: [PATCH] fixed a bug that caused unwanted transpilation during compilation --- src/qrisp/core/compilation.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/qrisp/core/compilation.py b/src/qrisp/core/compilation.py index 3afe319a..2eb566bf 100644 --- a/src/qrisp/core/compilation.py +++ b/src/qrisp/core/compilation.py @@ -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: