paraqeet.measurement.rabi_experiment.RabiExperiment#
- class paraqeet.measurement.rabi_experiment.RabiExperiment(qubit_freq)#
Bases:
NormalizableMeasurement,OptimizableAnalytic model of the general Rabi formula.
- Parameters:
qubit_freq (Quantity) – Resonance of the single qubit.
- __init__(qubit_freq)#
- Parameters:
qubit_freq (float)
- Return type:
None
Methods
__init__(qubit_freq)calculate_normalized_scalar(times)Carry out a measurement operation.
Return a list of parameters accessible in this measurement.
measure(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
- Return type:
list[Quantity]
- calculate_normalized_scalar(times)#
Carry out a measurement operation.
Gives the result of a general Rabi oscillation, depending of drive frequency, amplitude and time.
Note: Returns the measumement value at the last time point.
- Returns:
Result of a general Rabi oscillation.
- Return type:
Array
- Parameters:
times (Array | float)
- get_parameters()#
Return a list of parameters accessible in this measurement.
- Returns:
List of parameters accessible in this measurement.
- Return type:
List[Quantity]
- measure(times)#
Return measurement in the range [0, 1].
- Parameters:
times (Array)
- Return type:
Array | float
- property name: str | None#
Get the name of the parameter.
- Returns:
Name of the parameter.
- Return type:
str | None
- property optimizable_parameters: list[Quantity]#
Get the optimizable parameters
- Returns:
The list of optimizable parameters associated with the object.
- Return type:
list[Quantity]
- 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.
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.
- Parameters:
params (list[Quantity]) – List of optimizable parameters to be set.
- Return type:
None