Skip to content

Commit

Permalink
rewrite needlessly confusing line (#9551)
Browse files Browse the repository at this point in the history
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
kevinsung and mergify[bot] authored Feb 8, 2023
1 parent 00b4754 commit d4006dd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions qiskit/quantum_info/synthesis/xx_decompose/decomposer.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,7 @@ def __init__(
self.basis_fidelity = basis_fidelity

# expose one of the basis gates so others can know what this decomposer targets
embodiment_circuit: list | QuantumCircuit = next(iter(self.embodiments.items()), ([], []))[
1
]
embodiment_circuit = next(iter(self.embodiments.values()), QuantumCircuit())
for instruction in embodiment_circuit:
if len(instruction.qubits) == 2:
self.gate = instruction.operation
Expand Down

0 comments on commit d4006dd

Please sign in to comment.