scqubits.core.circuit_utils

Functions

assemble_circuit(circuit_list, couplers[, ...])

Assemble a yaml string for a large circuit that are made of smaller sub-circuits and coupling elements.

assemble_transformation_matrix(...)

Assemble a transformation matrix for a large circuit that are made of smaller sub-circuits and coupling elements.

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

hierarchical_diagonalization_func_factory(...)

rtype:

Callable

is_potential_term(term)

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

keep_terms_for_subsystem(sym_expr, subsys[, ...])

matrix_power_sparse(dense_mat, n)

rtype:

csc_matrix

operator_func_factory(inner_op, index[, op_type])

rtype:

Callable

round_symbolic_expr(expr, number_of_digits)

rtype:

Expr

sawtooth_operator(x)

Returns the operator evaluated using applying the sawtooth_potential function on the diagonal elements of the operator x

sawtooth_potential(phi_pts)

truncation_template(system_hierarchy[, ...])

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

yaml_like_out_with_pp(circuit_yaml)