From 657d09616ce97ee1eb3c4ed8e1c1c13a2d8df8fc Mon Sep 17 00:00:00 2001 From: Matthew Treinish Date: Wed, 28 Jul 2021 17:38:45 -0400 Subject: [PATCH] Fix rebase error --- qiskit/transpiler/passes/synthesis/unitary_synthesis.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/qiskit/transpiler/passes/synthesis/unitary_synthesis.py b/qiskit/transpiler/passes/synthesis/unitary_synthesis.py index 58e5517b0501..ade904fe831c 100644 --- a/qiskit/transpiler/passes/synthesis/unitary_synthesis.py +++ b/qiskit/transpiler/passes/synthesis/unitary_synthesis.py @@ -63,7 +63,6 @@ class UnitarySynthesis(TransformationPass): """Synthesize gates according to their basis gates.""" def __init__( - self, basis_gates: List[str], approximation_degree: float = 1, self, basis_gates: List[str], approximation_degree: float = 1, @@ -72,7 +71,7 @@ def __init__( pulse_optimize: Union[bool, None] = None, natural_direction: Union[bool, None] = None, synth_gates: Union[List[str], None] = None, - min_qubits: int = None + min_qubits: int = None, ): """Synthesize unitaries over some basis gates. @@ -163,7 +162,7 @@ def run(self, dag: DAGCircuit) -> DAGCircuit: for node in dag.named_nodes(*self._synth_gates): if self._min_qubits is not None and len(node.qargs) < self._min_qubits: continue - + if self._basis_gates and node.name in self._basis_gates: continue synth_dag = None