Add BackendEstimatorV2 interface for issue #145#149
Open
rosspeili wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a C++ Estimator V2 interface parallel to the existing sampler stack, addressing #145.
EstimatorPub, ISA circuit + Pauli observables ((label, coefficient)pairs), withto_json()EstimatorPubResult/EstimatorResult, expectation value and standard deviation per pubBackendEstimatorV2::run()→BackendEstimatorJob(same pattern asBackendSamplerJob)BackendSamplerV2(client-side, no native estimator backend API yet)samples/estimator_test.cpp(Bell state +ZZ/XI), CMake target, reno note, README mentionCloses #145
Details and comments
BasePrimitiveJob(estimator pubs differ from sampler pubs).estimator_testrequires the same runtime setup assampler_test(QISKIT_IBM_RUNTIME_C_ROOT/ QRMI / SQC + credentials).Testing: Setting up the local Qiskit C build to run
test/and compileestimator_test, but it takes some time on my machine, will also rely on CI on this PR for the standardtest_circuit/test_transpiler/test_parametersuite (same bar as upstream). No newtest/cases, just sample integration.releasenotes/notes/add-backend-estimator-v2-145.yamlestimator_test.cpp)test/