POVMSampler

class POVMSampler(sampler: BaseSamplerV2)[source]

Bases: object

A BaseSamplerV2-compatible interface for sampling POVMs.

Initialize the POVM Sampler.

Parameters:

sampler (BaseSamplerV2) – the BaseSampler that will be used to collect the POVM samples.

Methods

run(pubs: Iterable[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]], *, shots: int | None = None, povm: POVMImplementation | None = None, pass_manager: StagedPassManager | None = None) POVMSamplerJob[source]

Run and collect samples from each pub.

Parameters:
Returns:

The POVM sampler job object.

Return type:

POVMSamplerJob