Sampling

Sampling#

class Sampling#

Immutable record of one sampler call.

A finished Sampling stores a SampleSet; failed and interrupted Sampling records have no output.

__repr__() str#
property adapter: str#

Read-only property.

SamplerAdapter class name used for this sampling.

property adapter_options: dict[str, Any]#

Read-only property.

Keyword arguments passed to the SamplerAdapter.

property diagnostics: list[Any]#

Read-only property.

Adapter-defined diagnostics recorded during this sampling.

property input: Instance#

Read-only property.

Input Instance passed to the sampler.

property output: Optional[SampleSet]#

Read-only property.

SampleSet returned by the adapter, or None if the call failed before returning one.

property sampling_id: int#

Read-only property.

Integer identifier of this sampling within its run.

property status: str#

Read-only property.

Sampling lifecycle status: "finished", "failed", or "interrupted".