CollectionNode

class samplomatic.samplex.nodes.CollectionNode[source]

Bases: ABC, Node

A node that collects register state for return.

Methods Summary

collect(registers, outputs, rng)

Collect.

get_style()

Return the style of this node when plotted.

Methods Documentation

abstractmethod collect(registers: dict[str, VirtualRegister], outputs: SamplexOutput, rng: Generator)[source]

Collect.

Parameters:
  • registers – Registers to collect from.

  • outputs – Where to output.

  • rng – A randomness generator.

get_style()[source]

Return the style of this node when plotted.