scqubits.core.symbolic_circuit.parse_branch_parameters#

scqubits.core.symbolic_circuit.parse_branch_parameters(words, branch_type)[source]#

Parses the branch parameters depending on the branch type.

Parameters:
  • words (List[str]) – list of strings from which parameters need to be parsed

  • branch_type (str) – str denoting the type of the branch

Return type:

Tuple[List[float], Dict[Symbol, float]]

Returns:

  • branch_params – List of parameters which will be used to initiate a Branch object

  • branch_var_dict – A dictionary of variables defined for this current branch.

Raises:

Exception – An exception is raised if the proper syntax is not followed when using variables in the input file.