diff --git a/projectq/libs/revkit/_control_function.py b/projectq/libs/revkit/_control_function.py index 99f7b880d..87f4e3804 100644 --- a/projectq/libs/revkit/_control_function.py +++ b/projectq/libs/revkit/_control_function.py @@ -109,7 +109,7 @@ def __or__(self, qubits): "provided qubits") # convert reversible circuit to ProjectQ code and execute it - _exec(revkit.write_projectq(log=True)["contents"], qs) + _exec(revkit.to_projectq(mct=True), qs) def _check_function(self): """ diff --git a/projectq/libs/revkit/_permutation.py b/projectq/libs/revkit/_permutation.py index b4967528a..160f027d2 100644 --- a/projectq/libs/revkit/_permutation.py +++ b/projectq/libs/revkit/_permutation.py @@ -81,7 +81,7 @@ def __or__(self, qubits): self.kwargs.get("synth", revkit.tbs)() # convert reversible circuit to ProjectQ code and execute it - _exec(revkit.write_projectq(log=True)["contents"], qs) + _exec(revkit.to_projectq(mct=True), qs) def _check_permutation(self): """ diff --git a/projectq/libs/revkit/_phase.py b/projectq/libs/revkit/_phase.py index 4aadc319e..8a9e2ab24 100644 --- a/projectq/libs/revkit/_phase.py +++ b/projectq/libs/revkit/_phase.py @@ -111,7 +111,7 @@ def __or__(self, qubits): "provided qubits") # convert reversible circuit to ProjectQ code and execute it - _exec(revkit.write_projectq(log=True)["contents"], qs) + _exec(revkit.to_projectq(mct=True), qs) def _check_function(self): """