Skip to content

Commit

Permalink
Fix rebase error
Browse files Browse the repository at this point in the history
  • Loading branch information
mtreinish committed Jul 28, 2021
1 parent 89f4c1a commit 657d096
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions qiskit/transpiler/passes/synthesis/unitary_synthesis.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 657d096

Please sign in to comment.