SamplingNode
class samplomatic.samplex.nodes.SamplingNode
A node that produces samples.
Methods Summary
Column 1 | Column 2 |
|---|---|
get_style() | Return the style of this node when plotted. |
sample(registers, rng, inputs, ...) | Sample this node. |
Methods Documentation
get_style
sample
abstractmethod sample(registers: dict[str, VirtualRegister], rng: Generator, inputs: TensorInterface, num_randomizations: int)
Sample this node.
Parameters
- registers – Where to sample into.
- rng – A randomness generator.
- inputs – Inputs of the sampling program.
- num_randomizations – How many randomizations to draw.
Was this page helpful?
Report a bug, typo, or request content on GitHub.