Readout#

blochsim.Readout()[source]#

One ADC sample of the transverse magnetization.

The sample is the transverse magnetization at the start of the module, demodulated by phase_rad; duration_s only sets how long the module holds the timeline.

Parameters:
  • phase_rad (float or torch.Tensor, default=0.0) – Demodulation phase, in radians.

  • role (AdcRole, default=AdcRole.SINGLE) – Role of the sample in the event stream.

  • is_echo (bool, default=True) – Whether the sample is at the k-space origin.

  • duration_s (float or torch.Tensor, default=0.0) – Time held on the timeline, in seconds.

  • action (EventAction, default=EventAction.NONE) – Gradient action played after the sample, e.g. SPOIL_AFTER.

Returns:

One ADC event at the start of the module.

Return type:

Operator

Examples using blochsim.Readout#

5. Custom operator

5. Custom operator