push
github
Add better error messages for typical SamplerV2 and EstimatorV2 error cases (backport #12031) (#12041) * Add better error messages for typical SamplerV2 and EstimatorV2 error cases (#12031) * add an early error for a case * Update qiskit/primitives/containers/sampler_pub.py Co-authored-by: Elena Peña Tapia <57907331+ElePT@users.noreply.github.com> * add better message for estimator pub * Update qiskit/primitives/containers/estimator_pub.py Co-authored-by: Elena Peña Tapia <57907331+ElePT@users.noreply.github.com> * add an additional message --------- Co-authored-by: Elena Peña Tapia <57907331+ElePT@users.noreply.github.com> (cherry picked from commit 194cc8fb9) # Conflicts: # test/python/primitives/test_backend_estimator_v2.py # test/python/primitives/test_backend_sampler_v2.py * remove tests for backend primitives V2 because they will appear for 1.1 --------- Co-authored-by: Takashi Imamichi <31178928+t-imamichi@users.noreply.github.com> Co-authored-by: Takashi Imamichi <imamichi@jp.ibm.com>
10 of 10 new or added lines in 2 files covered. (100.0%)
1 existing line in 1 file now uncovered.58929 of 65987 relevant lines covered (89.3%)
186048.75 hits per line