Branch¶
- class scqubits.core.symbolic_circuit.Branch(n_i, n_f, branch_type, parameters=None, id_str=None, aux_params={})[source]¶
Class describing a circuit branch, used in the Circuit class.
- Parameters:
n_i (
Node
) – initial and final nodes connected by this branch;n_f (
Node
) – initial and final nodes connected by this branch;branch_type (
str
) – is the type of this Branch, example “C”,”JJ” or “L”parameters (
Optional
[List
[Union
[float
,Symbol
,int
]]]) – list of parameters for the branch, namely for capacitance: {“EC”: <value>}; for inductance: {“EL”: <value>}; for Josephson Junction: {“EJ”: <value>, “ECJ”: <value>}aux_params (
Dict
[Symbol
,float
]) – Dictionary of auxiliary parameters which map a symbol from the input file a numeric parameter.id_str (str | None)
Examples
Branch(“C”, Node(1, 0), Node(2, 0)) is a capacitive branch connecting the nodes with indices 0 and 1.
Methods
Branch.__init__
(n_i, n_f, branch_type[, ...])Branch.common_node
(branch)Returns the common nodes between self and the branch given as input
Branch.is_connected
(branch)Returns a boolean indicating whether the current branch is connected to the given branch
Branch.node_ids
()- rtype:
Tuple
[int
,int
]
Branch.set_parameters
(parameters)- rtype:
None