RabiExperiment#
- class RabiExperiment(qubit_freq)[source]#
Bases:
NormalizableMeasurement,OptimizableAnalytic model of the general Rabi formula.
Methods
__init__(qubit_freq)calculate_normalized_scalar(times)Carry out a measurement operation.
Return a list of parameters accessible in this measurement.
get_value(times)Return measurement in the range [0, 1].
set_all_optimizable_parameters(all_params)Set all optimizable parameters in the optimization.
set_optimizable_parameters(params)Set which parameters associated with the object shall be considered during optimization.
Attributes
Get the optimizable parameters.
Get the name of the parameter.
Get the optimizable parameters.
- property all_optimizable_parameters: list[Quantity]#
Get the optimizable parameters.
- Returns:
The list of all the optimizable parameters considered in the optimization.
- calculate_normalized_scalar(times)[source]#
Carry out a measurement operation.
Gives the result of a general Rabi oscillation, depending on drive frequency, amplitude and time.
Note
Returns the measurement value at the last time point.
- Returns:
Result of a general Rabi oscillation.
- Return type:
Float
- property optimizable_parameters: list[Quantity]#
Get the optimizable parameters.
- Returns:
The list of optimizable parameters associated with the object.
- set_all_optimizable_parameters(all_params)[source]#
Set all optimizable parameters in the optimization.
- set_optimizable_parameters(params)[source]#
Set which parameters associated with the object shall be considered during optimization.
All quantities that are not in the response of get_parameters will be filtered out. This function is called by the optimizer before gradient based optimization to tell the layers which gradients to compute.