HyperechoSimulator#

class blochsim.simulators.HyperechoSimulator[source]#

Bases: FSESimulator

Hyperecho train: refocusing pulses mirrored about a central pulse.

The pulses after the central one replay those before it in reverse order, each with flip angle -alpha about phase -phi (alpha at 180 - phi degrees), so the last echo is the hyperecho [1]: apart from relaxation, the full spin echo of the excitation. Every echo is demodulated at zero phase, the axis of the central pulse. The signal is one complex sample per echo, 2 n + 1 for n flip angles.

Parameters:
  • flip (float or array-like) – Flip angles of the refocusing pulses before the central one, in degrees, one per echo.

  • ESP (float or array-like) – Echo spacing, in ms.

  • phases (float or array-like, default=0.0) – Phases of the refocusing pulses before the central one, in degrees.

  • refocusing (float, default=180.0) – Flip angle of the central pulse, in degrees, played at zero phase.

  • exc_flip (float, default=90.0) – Excitation flip angle, in degrees.

  • exc_phase (float, default=90.0) – Excitation phase, in degrees.

  • TR (float or array-like, default=1e6) – Repetition time, in ms.

  • states (int, default=None) – Configuration states kept. When not given, sized from the whole winding, since the hyperecho is brought back from the highest order the first half reached.

  • repetitions (int or "auto", default=2) – Playings of the train; the last is the signal.

Tissue properties:
  • T1, T2 (float or array-like) – Relaxation times, in ms.

  • M0 (float or array-like, default=1.0) – Equilibrium magnetization.

  • B1 (float or array-like, default=1.0) – Transmit field, as a fraction of the nominal flip angle.

Notes

With one flip angle at zero phase throughout, this is the sequence BART’s epg plays as Hyperecho.

References

Examples

import torch
from blochsim.simulators import HyperechoSimulator

sequence = HyperechoSimulator(flip=60.0 * torch.ones(5), ESP=10.0)
signal = sequence.simulate(T1=1000.0, T2=80.0)
print(signal.shape)
torch.Size([11])

Methods

bind

Return a copy with further arguments fixed.

describe

Return the SequenceDescription of a protocol.

evaluate

Return the signal at every echo.

from_description

Return a simulator that plays an existing description.

from_pulseq

Return a simulator over one repetition of a Pulseq sequence.

jacobian

Return the signal and its derivative with respect to tissue properties.

layout

Return the train, placed at the echo times it is timed from.

played

Return the protocol arguments of layout(), arrays as torch tensors.

repetition_s

Return TR in seconds, 1e6 ms when not given.

simulate

Return the recorded signal.

states = None#
layout()[source]#

Return the train, placed at the echo times it is timed from.