Skip to content

Commit

Permalink
s/retworkx/rustworkx/g
Browse files Browse the repository at this point in the history
  • Loading branch information
mtreinish committed Nov 21, 2022
1 parent 488c447 commit fa61681
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qiskit/transpiler/passes/layout/sabre_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import copy
import logging
import numpy as np
import retworkx
import rustworkx as rx

from qiskit.converters import dag_to_circuit
from qiskit.transpiler.passes.layout.set_layout import SetLayout
Expand Down Expand Up @@ -133,7 +133,7 @@ def __init__(
# constraints
self.coupling_map = copy.deepcopy(self.coupling_map)
self.coupling_map.make_symmetric()
self._neighbor_table = NeighborTable(retworkx.adjacency_matrix(self.coupling_map.graph))
self._neighbor_table = NeighborTable(rx.adjacency_matrix(self.coupling_map.graph))

if routing_pass is not None and (swap_trials is not None or layout_trials is not None):
raise TranspilerError("Both routing_pass and swap_trials can't be set at the same time")
Expand Down

0 comments on commit fa61681

Please sign in to comment.