qat.qiskit.Sampler

class qat.qiskit.Sampler(backend: QaptivaAccessBackend, default_shots: int = 1024)

This is a qiskit Sampler that works with a Qaptiva Access Backend. It allows users to submit their circuits and use the qaptiva qpus available to make computations. All results are returned within qiskit data structures.

Parameters:
  • backend (QaptivaAccessBackend) – backend that should run the sampling jobs

  • default_shots (int) – number of shots to ask by default

run(pubs: Iterable[qiskit.primitives.SamplerPubLike], *, shots: int | None = None) QaptivaJob

Qaptiva Access implementation of the BaseSamplerV2.run method

Parameters:
  • pubs (Iterable[SamplerPubLike]) – A ‘primitive unified bloc’ that a specific qiskit data strucure under the form a tuple containing the necessary parameters for the sampler

  • shots (int) – The number of shots to be specified, by default it is set to None

Returns:

A job in the form of a qiskit PrimitiveResult containing results