Skip to main content
IBM Quantum Platform
Esta página corresponde a una versión anterior de Qiskit SDK Ir a la última versión

DAGDepNode

class qiskit.dagcircuit.DAGDepNode(type=None, op=None, name=None, qargs=(), cargs=(), successors=None, predecessors=None, reachable=None, matchedwith=None, successorstovisit=None, isblocked=None, qindices=None, cindices=None, nid=-1)

GitHub

Bases: object

Object to represent the information at a node in the DAGDependency().

It is used as the return value from *_nodes() functions and can be supplied to functions that take a node.


Attributes

Parameters

  • successors (list[int] | None) –
  • predecessors (list[int] | None) –
  • matchedwith (list[int] | None) –
  • successorstovisit (list[int] | None) –
  • isblocked (bool | None) –
  • qindices (list[int] | None) –
  • cindices (list[int] | None) –
  • nid (int) –

type

name

cargs

sort_key

Tipo: str

node_id

successors

Tipo: list[int]

predecessors

Tipo: list[int]

reachable

matchedwith

Tipo: list[int]

isblocked

Tipo: bool

successorstovisit

Tipo: list[int]

qindices

Tipo: list[int]

cindices

Tipo: list[int]

op

Returns the Instruction object corresponding to the op for the node, else None

qargs

Returns list of Qubit, else an empty list.


Methods

copy

copy()

GitHub

Function to copy a DAGDepNode object. :returns: a copy of a DAGDepNode object. :rtype: DAGDepNode

semantic_eq

static semantic_eq(node1, node2)

GitHub

Check if DAG nodes are considered equivalent, e.g., as a node_match for nx.is_isomorphic.

Parameters

Returns

If node1 == node2

Return type

Bool

¿Le ha resultado útil esta página?
Informe de un error, de una errata o solicite contenido en GitHub.