qat.purr.backends.utilities module

class BlackmanFunction(width)

Bases: ComplexFunction

derivative(x, _=None)

First order derivative

Return type:

ndarray

eval(x)

Function evaluated in domain described by x

Return type:

ndarray

class ComplexFunction

Bases: object

Function object used to represent Complex 1D functions

derivative(x, y)

First order derivative

Return type:

ndarray

dt = 5e-10
eval(x)

Function evaluated in domain described by x

Return type:

ndarray

class Cos(frequency, internal_phase)

Bases: ComplexFunction

eval(x)

Function evaluated in domain described by x

Return type:

ndarray

class DragGaussianFunction(width, beta, zero_at_edges)

Bases: ComplexFunction

Drag Gaussian, tighter on one side and long tail on the other.

eval(x)

Function evaluated in domain described by x

Return type:

ndarray

class ExtraSoftSquareFunction(width, rise)

Bases: NumericFunction

eval(x)

Function evaluated in domain described by x

Return type:

ndarray

class GaussianFunction(width, rise)

Bases: ComplexFunction

Gaussian function

derivative(x, _=None)

First order derivative

Return type:

ndarray

eval(x)

Function evaluated in domain described by x

Return type:

ndarray

class GaussianSquareFunction(square_width, std_dev, zero_at_edges)

Bases: NumericFunction

A square pulse with a Gaussian rise and fall at the edges.

eval(x)

Function evaluated in domain described by x

Return type:

ndarray

class GaussianZeroEdgeFunction(std_dev, width, zero_at_edges)

Bases: ComplexFunction

A Gaussian pulse that can be normalized to be zero at the edges.

eval(x)

Function evaluated in domain described by x

Return type:

ndarray

class NumericFunction

Bases: ComplexFunction

Base class for functions applying an numerical first derivative

derivative(x, y)

For a custom wave-pulse or pulse without analytic derivative compute it numerically.

Return type:

ndarray

class PositionData(start, end, instruction)

Bases: object

end: float
instruction: QuantumInstruction
start: float
class RoundedSquareFunction(width, std_dev, rise)

Bases: ComplexFunction

Rounded square.

___

/ ___| |___

eval(x)

Function evaluated in domain described by x

Return type:

ndarray

step(val)
class SechFunction(width)

Bases: ComplexFunction

Implements a sech pulse defined by sech(x / width). Note that it is not normalized to be zero at the edges.

eval(x)

Function evaluated in domain described by x

Return type:

ndarray

class SetupHoldFunction(width, rise, amp_setup, amp)

Bases: NumericFunction

eval(x)

Function evaluated in domain described by x

class SimpleAcquire(start, samples, output_variable, pulse_channel, physical_channel, mode, delay, instruction)

Bases: object

delay: float
instruction: Acquire
mode: AcquireMode
output_variable: str
physical_channel: PhysicalChannel
pulse_channel: PulseChannel
samples: int
start: int
class Sin(frequency, internal_phase)

Bases: ComplexFunction

eval(x)

Function evaluated in domain described by x

Return type:

ndarray

class SoftSquareFunction(width, rise)

Bases: NumericFunction

eval(x)

Function evaluated in domain described by x

Return type:

ndarray

class SofterGaussianFunction(width, rise)

Bases: NumericFunction

eval(x)

Function evaluated in domain described by x

Return type:

ndarray

class SofterSquareFunction(width, rise)

Bases: NumericFunction

eval(x)

Function evaluated in domain described by x

Return type:

ndarray

class SquareFunction

Bases: ComplexFunction

Square function of fixed amplitude

derivative(x, _=None)

First order derivative

Return type:

ndarray

eval(x)

Function evaluated in domain described by x

Return type:

ndarray

evaluate_pulse_integral(data)
evaluate_shape(data, t, phase_offset=0.0)
get_axis_map(mode, result)
plot_buffers(buffers, getter_function)
predict_pulse_amplitude(data, target_integrand)
remove_axes(original_dims, removed_axis_indices, axis_locations)
software_post_process_discriminate(args, raw, axes)
software_post_process_down_convert(args, axes, raw, source_axes)
software_post_process_linear_map_complex_to_real(args, raw, axes)
software_post_process_mean(target_axes, raw, axes)
validate_input_array(func)