Node#

class scqubits.core.symbolic_circuit.Node(index, marker)[source]#

Class representing a circuit node, and handled by Circuit. The attribute <Node>.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.

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. It is ground if the id is set to 0.

Return type:

bool