ShiftFrequency

class ShiftFrequency(frequency, channel, name=None)[source]

Shift the channel frequency away from the current frequency.

Creates a new shift frequency instruction.

Parameters
  • frequency (float) – Frequency shift of the channel in Hz.

  • channel (PulseChannel) – The channel this instruction operates on.

  • name (Optional[str]) – Name of this set channel frequency instruction.

Attributes

ShiftFrequency.channel

Return the Channel that this instruction is scheduled on.

ShiftFrequency.channels

Returns channels that this schedule uses.

ShiftFrequency.command

The associated command.

ShiftFrequency.duration

Duration of this instruction.

ShiftFrequency.frequency

Frequency shift from the set frequency.

ShiftFrequency.id

Unique identifier for this instruction.

ShiftFrequency.instructions

Iterable for getting instructions from Schedule tree.

ShiftFrequency.name

Name of this instruction.

ShiftFrequency.operands

Return instruction operands.

ShiftFrequency.start_time

Relative begin time of this instruction.

ShiftFrequency.stop_time

Relative end time of this instruction.

ShiftFrequency.timeslots

Occupied time slots by this instruction.

Methods

ShiftFrequency.append(schedule[, name])

Return a new Schedule with schedule inserted at the maximum time over all channels shared between self and schedule.

ShiftFrequency.ch_duration(*channels)

Return duration of the supplied channels in this Instruction.

ShiftFrequency.ch_start_time(*channels)

Return minimum start time for supplied channels.

ShiftFrequency.ch_stop_time(*channels)

Return maximum start time for supplied channels.

ShiftFrequency.draw([dt, style, filename, …])

Plot the instruction.

ShiftFrequency.flatten()

Return itself as already single instruction.

ShiftFrequency.insert(start_time, schedule)

Return a new Schedule with schedule inserted within self at start_time.

ShiftFrequency.shift(time[, name])

Return a new schedule shifted forward by time.