Allow passing numpy array to PyDiGraph::extend_from_edge_list
#1125
Labels
enhancement
New feature or request
PyDiGraph::extend_from_edge_list
#1125
What is the expected enhancement?
Per current api, one way to extend an existing graph is to use the
PyDiGraph::extend_from_edge_list
. This method expects a list of tuples. The enhancement would be extend this method so that it accepts a numpy array. This could possibly improve performance if the underlying memory array is directly accessed.This issue came up in a discussion about the performance of
qiskit.transpiler.CouplingMap
object initialization: Qiskit/qiskit#11919The text was updated successfully, but these errors were encountered: