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.

example_circuit(qubit)

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

get_trailing_number(input_str)

Returns the number trailing a string given as input.

grid_operator_func_factory(inner_op, index)

hierarchical_diagonalization_func_factory(...)

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)

operator_func_factory(inner_op, index[, op_type])

round_symbolic_expr(expr, number_of_digits)

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)