Operator

Operator#

class blochsim.Operator[source]#

Bases: object

One module of a sequence: the events it plays and the time it spans.

a @ b plays two operators back to back as one operator.

Parameters:
  • emit (callable) – Maps the module’s start time in seconds to the tuple of SequenceEvent it plays.

  • duration_s (float or torch.Tensor, default=0.0) – Time the module holds the timeline, in seconds. Zero leaves the next module to start at the same time.

__matmul__()[source]#

Play self then other as one operator; durations add.