From feff6ebc418c8112279012fabc05be643c83a060 Mon Sep 17 00:00:00 2001 From: Raynel Sanchez Date: Thu, 1 Aug 2024 20:03:28 -0400 Subject: [PATCH] Fix: Use `EquivalenceLibrary.keys()` instead of `._key_to_node_index` --- qiskit/transpiler/passes/synthesis/high_level_synthesis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qiskit/transpiler/passes/synthesis/high_level_synthesis.py b/qiskit/transpiler/passes/synthesis/high_level_synthesis.py index 6974b1cce06..740ec51c0e8 100644 --- a/qiskit/transpiler/passes/synthesis/high_level_synthesis.py +++ b/qiskit/transpiler/passes/synthesis/high_level_synthesis.py @@ -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() ) ) )