Sampler

A module of sampling tools for POVMs.

At their core, POVMs are used in combination with sampling the state of a quantum circuit. In Qiskit, this functionality is provided via the Sampler primitive.

To this end, this module provides a number of tools for sampling the state of QuantumCircuit objects using a POVMImplementation.

The Sampler

As a consumer of this library, you will be mostly concerned with the POVMSampler class as your entry point for submitting POVM sampling jobs.

POVMSampler

A BaseSamplerV2-compatible interface for sampling POVMs.

Additional Classes

However, this module also contains these additional classes which you may come in contact with while working with the in- and outputs of the POVMSampler.

POVMSamplerPub

The Pub (Primitive Unified Bloc) input structure for POVMSampler.run().

POVMSamplerJob

The job returned by POVMSampler.run().

POVMPubResult

The result of a POVMSamplerJob.

POVMSamplerPubLike

alias of QuantumCircuit | tuple[QuantumCircuit] | tuple[QuantumCircuit, Mapping[Parameter | str | Tuple[Parameter | str, …], _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes]]] | tuple[QuantumCircuit, Mapping[Parameter | str | Tuple[Parameter | str, …], _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes]], Integral | None] | tuple[QuantumCircuit, Mapping[Parameter | str | Tuple[Parameter | str, …], _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes]], Integral | None, POVMImplementation | None]