bosing.Channel

class bosing.Channel(base_freq, sample_rate, length, *, delay=Ellipsis, align_level=Ellipsis, iq_matrix=None, offset=None, iir=None, fir=None, filter_offset=False, is_real=False)

基类:object

Channel configuration.

align_level is the time axis alignment granularity. With sampling interval \(\Delta t\) and align_level \(n\), start of pulse is aligned to the nearest multiple of \(2^n \Delta t\).

Each channel can be either real or complex. If the channel is complex, the filter will be applied to both I and Q components. If the channel is real, iq_matrix will be ignored.

小心

Crosstalk matrix will not be applied to offset.

参数:
  • base_freq (float) -- Base frequency of the channel.

  • sample_rate (float) -- Sample rate of the channel.

  • length (int) -- Length of the waveform.

  • delay (float) -- Delay of the channel. Defaults to 0.0.

  • align_level (int) -- Time axis alignment granularity. Defaults to -10.

  • iq_matrix (array_like[2, 2] | None) -- IQ matrix of the channel. Defaults to None.

  • offset (Sequence[float] | None) -- Offsets of the channel. The length of the sequence should be 2 if the channel is complex, or 1 if the channel is real. Defaults to None.

  • iir (array_like[N, 6] | None) -- IIR filter of the channel. The format of the array is [[b0, b1, b2, a0, a1, a2], ...], which is the same as sos parameter of scipy.signal.sosfilt(). Defaults to None.

  • fir (array_like[M] | None) -- FIR filter of the channel. Defaults to None.

  • filter_offset (bool) -- Whether to apply filter to the offset. Defaults to False.

  • is_real (bool) -- Whether the channel is real. Defaults to False.

align_level
base_freq
delay
filter_offset
fir
iir
iq_matrix
is_real
length
offset
sample_rate