paraqeet.signal.waveform.LocalOscillator#
- class paraqeet.signal.waveform.LocalOscillator(frequency=None)#
Bases:
WaveformA local oscillators carrier signal.
- _lo_freqQuantity
The frequency of the carrier signal.
- Parameters:
frequency (Quantity | None)
Methods
__init__([frequency])Return device parameters.
Compute the double derivative with respect to parameter and time.
get_time_gradient(times)Compute a signals time derivative.
get_value(times)Evaluate a carrier signal from an input time vector.
get_value_and_gradient(times)Return the gradient wrt to frequency of carrier signal.
set_all_optimizable_parameters(all_params)Set all optimizable parameters in the optimization.
set_optimizable_parameters(params)Set optimizable parameters for optimization.
Attributes
Get the optimizable parameters
Get The frequency of the constant oscillating tone.
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]
- property frequency: Quantity#
Get The frequency of the constant oscillating tone.
- Returns:
The frequency of the tone.
- Return type:
- get_parameters()#
Return device parameters.
- Returns:
Returns the carrier signal frequency.
- Return type:
list[Quantity]
- get_time_and_parameter_gradient(times)#
Compute the double derivative with respect to parameter and time.
This function computes $\frac{\partial^2 \Omega}{\partial t \partial alpha}$ for a pulse $\Omega(t)$ and parameter $\alpha$.
- Parameters:
times (Array) – One-dimensional vector of timestamps.
- Returns:
Returns a vector signals time derivative.
- Return type:
Array
- get_time_gradient(times)#
Compute a signals time derivative.
- Parameters:
times (Array) – One-dimensional vector of timestamps.
- Returns:
Returns a vector signals time derivative.
- Return type:
Array or JitWrapped
- get_value(times)#
Evaluate a carrier signal from an input time vector.
- Parameters:
times (Array) – One-dimensional vector of timestamps.
- Returns:
Returns a vector carrier signal.
- Return type:
Array
- get_value_and_gradient(times)#
Return the gradient wrt to frequency of carrier signal.
- Parameters:
times (Array) – Array of time points to evaluate gradients at.
- Returns:
Gradient of tone wrt to frequency.
- Return type:
Array
- 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.