Skip to content

Commit

Permalink
Fix: Use EquivalenceLibrary.keys() instead of ._key_to_node_index
Browse files Browse the repository at this point in the history
  • Loading branch information
raynelfss committed Aug 2, 2024
1 parent 0d3a164 commit feff6eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qiskit/transpiler/passes/synthesis/high_level_synthesis.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ def _definitely_skip_node(self, node: DAGOpNode, qubits: Sequence[int] | None) -
or (
self._equiv_lib is not None
and equivalence.Key(name=node.name, num_qubits=node.num_qubits)
in self._equiv_lib._key_to_node_index
in self._equiv_lib.keys()
)
)
)
Expand Down

0 comments on commit feff6eb

Please sign in to comment.