mr2.operators.models.BMC.ConstantRFBlock

class mr2.operators.models.BMC.ConstantRFBlock[source]

Bases: BMCBlock

Constant RF block for a duration.

__init__(duration: Tensor | float, rf_amplitude: Tensor | float, rf_phase: Tensor | float = 0.0, rf_frequency: Tensor | float = 0.0) None[source]

Initialize the block.

Parameters:
  • duration (Tensor | float) – Duration in seconds.

  • rf_amplitude (Tensor | float) – RF amplitude in Hz.

  • rf_phase (Tensor | float, default: 0.0) – RF phase in rad.

  • rf_frequency (Tensor | float, default: 0.0) – RF frequency in Hz.

property duration: Tensor[source]

Duration of the block.

__call__(parameters: Parameters, state: Tensor | None = None, *, zero_matrix: Tensor | None = None, zero_c: Tensor | None = None) tuple[Tensor, tuple[Tensor, ...]][source]

Apply the block.

forward(parameters: Parameters, state: Tensor) tuple[Tensor, tuple[Tensor, ...]][source]

Apply the block.