Skip to main content
IBM Quantum Platform

CollectionNode

class samplomatic.samplex.nodes.CollectionNode

GitHub

Bases: ABC, Node

A node that collects register state for return.

Methods Summary

Column 1
Column 2
collect(registers, outputs, rng)Collect.
get_style()Return the style of this node when plotted.

Methods Documentation

collect

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

GitHub

Collect.

Parameters

  • registers – Registers to collect from.
  • outputs – Where to output.
  • rng – A randomness generator.

get_style

get_style()

GitHub

Return the style of this node when plotted.

Was this page helpful?
Report a bug, typo, or request content on GitHub.