TwoColorSineSquaredPulse

TwoColorSineSquaredPulse#

class TwoColorSineSquaredPulse(options)#

Bases: Waveform

TWOCOLORSINESQUAREDPULSE Two sine carriers under sin^2 envelopes (summed) Both envelopes share the same [startTime, endTime] and are sin^2-shaped:

env(t) = sin^2(pi * (t - t0) / duration), gated to [t0, te].

Each color has its own envelope amplitude and carrier frequency/phase. Total output: gate .* (env .* (A1/2 * sin(2*pi*f1*(t - t0) + phi1) …

  • A2/2 * sin(2*pi*f2*(t - t0) + phi2)) + offset)

Constructor Summary
TwoColorSineSquaredPulse(options)#

TWOCOLORSINESQUAREDPULSE Construct an instance of this class Keeps the same options style and assignment loop.

Property Summary
Amplitude1 double = []#

Envelope amplitude for color 1

Amplitude2 double = []#

Envelope amplitude for color 2

Frequency1 double = []#

Carrier frequency for color 1

Frequency2 double = []#

Carrier frequency for color 2

Offset double = 0#
Phase1 double = 0#

Carrier phase for color 1

Phase2 double = 0#

Carrier phase for color 2

Method Summary
TimeFunc()#

Build time-domain function handle (sum of two sin^2-envelope carriers + offset)