MultiEchoSimulator#

class blochsim.simulators.MultiEchoSimulator[source]#

Bases: Simulator

Multi-echo T2 relaxometry, in closed form.

Monoexponential transverse decay M0 exp(-TE / T2) + offset, one real sample per echo time. The property T2 is T2 for a spin-echo train and T2* for a gradient-echo train.

Parameters:

TE (float or array-like) – Echo times, in ms; the trailing axis of the signal.

Tissue properties:
  • T2 (float or array-like) – Transverse relaxation time, in ms.

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

  • offset (float or array-like, default=0.0) – Constant added to the decay, such as a magnitude noise floor.

Examples

from blochsim.simulators import MultiEchoSimulator

sequence = MultiEchoSimulator(TE=(10.0, 20.0, 40.0, 80.0))
signal = sequence.simulate(T2=(40.0, 90.0))
print(signal.shape)
torch.Size([2, 4])

Methods

bind

Return a copy with further arguments fixed.

describe

Return the SequenceDescription of a protocol.

evaluate

Return the closed-form signal.

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 operators of one repetition in playing order.

played

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

repetition_s

Return the duration of one repetition in seconds.

simulate

Return the recorded signal.

evaluate()[source]#

Return the closed-form signal.