Skip to content

helpers

tergite_autocalibration.utils.misc.helpers

Functions:

Name Description
generate_n_qubit_list

This generates a list of qubits.

update_nested

Update a nested data structure (usually a dict).

generate_n_qubit_list

generate_n_qubit_list(n_qubits: int, starting_from: int = 1) -> List[str]

This generates a list of qubits.

Parameters:

Name Type Description Default
n_qubits int

The number of qubits.

required
starting_from int

Start counting from when numbering the qubits (default: 1).

1

Returns:

Type Description
List[str]

List of qubits ["qXX", ...] starting with "q01" (default, regulated by starting_from parameter).

update_nested

update_nested(target: Dict, updates: Dict) -> None

Update a nested data structure (usually a dict).

Parameters:

Name Type Description Default
target Dict

The original data structure

required
updates Dict

The updates that are going to be merged into the data structure

required

Returns:

Name Type Description
None None

Does not return anything, but works on the given objects