Quite a few of my friends send me queries regarding Qiskit. The common thing which I gather from their queries is the inability to utilise the capabilities of primitives effectively. Therefore I created this notebook to walk them through the steps
using SamplerV2 for obtaining probability distribution,
manually finding expectation values with SamplerV2, and its disadvantages,
calculating multiple expectation values for one circuit using EstimatorV2,
calculating the expectation value of a linear combination of observables using EstimatorV2,
making isa compatible circuits and observables for running on real/fake backends
These information are all available in Qiskit documentation. I summarised them for the ease of understanding of beginners. Putting this notebook here in case this is useful for anyone (or any workshop).
Summary
add introduction to primitives tutorial
Details and comments
Quite a few of my friends send me queries regarding Qiskit. The common thing which I gather from their queries is the inability to utilise the capabilities of primitives effectively. Therefore I created this notebook to walk them through the steps
using SamplerV2 for obtaining probability distribution,
manually finding expectation values with SamplerV2, and its disadvantages,
calculating multiple expectation values for one circuit using EstimatorV2,
calculating the expectation value of a linear combination of observables using EstimatorV2,
making isa compatible circuits and observables for running on real/fake backends
These information are all available in Qiskit documentation. I summarised them for the ease of understanding of beginners. Putting this notebook here in case this is useful for anyone (or any workshop).