laboneq_applications.tasks.parameter_updating
¶
This module defines the task for updating setup parameters.
temporary_modify(qubits, temporary_parameters=None)
¶
Modify the quantum elements temporarily with the given parameters.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
qubits |
QuantumElements
|
the quantum elements to be temporarily modified. |
required |
temporary_parameters |
dict[str, dict | QuantumParameters] | None
|
the parameters to be temporarily modified. If None, the quantum elements are returned as is. The dictionary has the following form:
|
None
|
Returns:
Type | Description |
---|---|
QuantumElements
|
The list of quantum elements with the temporary parameters applied, including |
QuantumElements
|
the original quantum elements that were not modified. |
QuantumElements
|
If a single quantum element is passed, returns the modified quantum element. |
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:
|
required |