Skip to content

laboneq_applications.tasks.parameter_updating

This module defines the task for updating setup parameters.

temporary_modify(qubits, temporary_parameters=None)

Modify the qubits temporarily with the given parameters.

Parameters:

Name Type Description Default
qubits Qubits

the qubits to be temporarily modified.

required
temporary_parameters dict[str, dict | TransmonParameters] | None

the parameters to be temporarily modified. If None, the qubits are returned as is. The dictionary has the following form:

{
    qubit_uid: {
        "qubit_uid": param_value
    }
}
or
{
    "qubit_uid": TransmonParameters
}
None

Returns:

Type Description
Qubits

The list of qubits with the temporary parameters applied, including

Qubits

the original qubits that were not modified.

Qubits

If a single qubit is passed, returns the modified qubit.

update_qubits(qpu, qubit_parameters)

Updates the parameters of the qubits in the qpu.

Parameters:

Name Type Description Default
qpu QPU

the qpu containing the qubits to be updated.

required
qubit_parameters dict[str, dict[str, dict[str, int | float | Variable | None]]]

qubit parameters and the new values to be updated. This dictionary has the following form:

{
    q.uid: {
        qb_param_name: qb_param_value
        }
}
required