SampledPulse

Contents

SampledPulse#

blochsim.SampledPulse()[source]#

Shaped pulse played as one hard pulse per sample, with free evolution between.

Each sample rotates the magnetization through its area at the middle of its dwell; between samples each pool precesses, relaxes and exchanges (hard-pulse approximation [1]). A complex waveform rotates about the axis given by its phase; a real one rotates through its signed area. An offset_hz advances the rotation axis by -2 pi offset_hz rad/s from the start of the pulse. A phase_rad or offset_hz with one value per train plays one train per value.

Parameters:
  • waveform_rad_per_s (array-like) – Nutation rate (gamma times B1), one sample per dwell, in rad/s.

  • dwell_s (float) – Sample duration, in seconds.

  • phase_rad (float or torch.Tensor, default=0.0) – Phase of the whole pulse, in radians.

  • offset_hz (float or torch.Tensor, default=0.0) – Frequency offset from the centre frequency, in Hz.

  • definition_id (int, default=0) – RF definition every sample names; sets the power deposited in a semisolid pool. Non-zero requires a single offset.

  • shim_id (int, default=0) – Transmit shim definition; 0 for none.

Returns:

Holds the timeline for len(waveform) * dwell_s.

Return type:

Operator

Raises:

ValueError – If the waveform is empty or not one-dimensional, dwell_s is not positive, or a non-zero definition_id is played at more than one offset.

References