Update SamplerV2 and EstimatorV2 to be compatible with Qiskit 1.1
SamplerV2 returns SamplerPubResult
They use DataBin class directly and stop using make_data_bin.
Removed np.random.Generator as seed because AerSimulator.run does not support it. (I think it never worked yet)
This PR updates the required Qiskit version to 1.1.0 because the above changes require Qiskit 1.1.
Note
SamplerV2 is based on BackendSamplerV2 of Qiskit.
EstimatorV2 is based on StatevectorEstimator of Qiskit because EstimatorV2 directly computes expectation values with save_expectation_value instruction instead of appending Pauli pre-rotations.
Summary
Update SamplerV2 and EstimatorV2 to be compatible with Qiskit 1.1
DataBin
class directly and stop usingmake_data_bin
.np.random.Generator
asseed
becauseAerSimulator.run
does not support it. (I think it never worked yet)This PR updates the required Qiskit version to 1.1.0 because the above changes require Qiskit 1.1.
Note
SamplerV2
is based onBackendSamplerV2
of Qiskit.EstimatorV2
is based onStatevectorEstimator
of Qiskit becauseEstimatorV2
directly computes expectation values withsave_expectation_value
instruction instead of appending Pauli pre-rotations.Details and comments