scqubits.core.circuit_utils#

Functions

compose(f, g)

Returns the function f o g: x |-> f(g(x))

example_circuit(qubit)

Returns example input strings for AnalyzeQCircuit and CustomQCircuit for some of the popular qubits.

get_operator_number(input_str)

Returns the number inside an operator name. Example:

get_trailing_number(input_str)

Returns the number trailing a string given as input. Example:

grid_operator_func_factory(inner_op, index)

rtype:

Callable

is_potential_term(term)

Determines if a given sympy expression term is part of the potential

matrix_power_sparse(dense_mat, n)

rtype:

csc_matrix

operator_func_factory(inner_op, index)

rtype:

Callable

truncation_template(system_hierarchy[, ...])

Function to generate a template for defining the truncated dimensions for subsystems when hierarchical diagonalization is used.