Node

class scqubits.core.symbolic_circuit_graph.Node(index, marker=0)[source]

Class representing a circuit node, and handled by Circuit. The attribute branches is a list of Branch objects containing all branches connected to the node.

Parameters:
  • id (int) – integer identifier of the node

  • marker (int) – An internal attribute used to group nodes and identify sub-circuits in the method independent_modes.

  • index (int)

Methods

Node.__init__(index[, marker])

Node.connected_nodes(branch_type)

Returns a list of all nodes directly connected by branches to the current node, either considering all branches or a specified branch_type - ("C", "L", "JJ", "all") for capacitive, inductive, Josephson junction, or all types of branches.

Node.is_ground()

Returns a bool if the node is a ground node (Node with index set to 0).

connected_nodes(branch_type)[source]

Returns a list of all nodes directly connected by branches to the current node, either considering all branches or a specified branch_type - (“C”, “L”, “JJ”, “all”) for capacitive, inductive, Josephson junction, or all types of branches.

Return type:

List[Node]

Parameters:

branch_type (str)

is_ground()[source]

Returns a bool if the node is a ground node (Node with index set to 0).

Return type:

bool