SetPhase

class SetPhase(phase, channel, name=None)[source]

The set phase instruction sets the phase of the proceeding pulses on that channel to phase radians.

In particular, a PulseChannel creates pulses of the form

\[Re[\exp(i 2\pi f jdt + \phi) d_j]\]

The SetPhase instruction sets \(\phi\) to the instruction’s phase operand.

Instantiate a set phase instruction, setting the output signal phase on channel to phase [radians].

Parameters
  • phase (float) – The rotation angle in radians.

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

  • name (Optional[str]) – Display name for this instruction.

Attributes

SetPhase.channel

Return the Channel that this instruction is scheduled on.

SetPhase.channels

Returns channels that this schedule uses.

SetPhase.command

The associated command.

SetPhase.duration

Duration of this instruction.

SetPhase.id

Unique identifier for this instruction.

SetPhase.instructions

Iterable for getting instructions from Schedule tree.

SetPhase.name

Name of this instruction.

SetPhase.operands

Return instruction operands.

SetPhase.phase

Return the rotation angle enacted by this instruction in radians.

SetPhase.start_time

Relative begin time of this instruction.

SetPhase.stop_time

Relative end time of this instruction.

SetPhase.timeslots

Occupied time slots by this instruction.

Methods

SetPhase.append(schedule[, name])

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

SetPhase.ch_duration(*channels)

Return duration of the supplied channels in this Instruction.

SetPhase.ch_start_time(*channels)

Return minimum start time for supplied channels.

SetPhase.ch_stop_time(*channels)

Return maximum start time for supplied channels.

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

Plot the instruction.

SetPhase.flatten()

Return itself as already single instruction.

SetPhase.insert(start_time, schedule[, name])

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

SetPhase.shift(time[, name])

Return a new schedule shifted forward by time.