Skip to main content
IBM Quantum Platform
Informations sur la traduction

D'autres traductions de cette page seront bientôt disponibles.

SamplingNode

class samplomatic.samplex.nodes.SamplingNode

GitHub

Bases: ABC, Node

A node that produces samples.

Methods Summary

Chronique « 1 »
Chronique « 2 »
get_style()Return the style of this node when plotted.
sample(registers, rng, inputs, ...)Sample this node.

Methods Documentation

get_style

get_style()

GitHub

Return the style of this node when plotted.

sample

abstractmethod sample(registers: dict[str, VirtualRegister], rng: Generator, inputs: TensorInterface, num_randomizations: int)

GitHub

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.
Cette page a-t-elle été utile ?
Signaler un bogue, une coquille ou proposer du contenu sur GitHub.