From f74a27af6a7a3518695dadf6cbd2939bbe7e0b62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elena=20Pe=C3=B1a=20Tapia?= <57907331+ElePT@users.noreply.github.com> Date: Tue, 27 Feb 2024 19:00:02 +0100 Subject: [PATCH] Fix Estimator example in Qiskit 1.0 feagure migration guide (#896) When I wrote the guide my brain decided that 2 circuits and 2 observables were not possible to run with Estimator V1, but they are. This PR fixes this oversight. Thanks @beckykd for pointing it out. --- docs/api/migration-guides/qiskit-1.0-features.mdx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/api/migration-guides/qiskit-1.0-features.mdx b/docs/api/migration-guides/qiskit-1.0-features.mdx index f8d106ed571..fd16365c41d 100644 --- a/docs/api/migration-guides/qiskit-1.0-features.mdx +++ b/docs/api/migration-guides/qiskit-1.0-features.mdx @@ -339,8 +339,9 @@ sampler_v2 = StatevectorSampler() ```python - # executing 2 circuits with different observables - # is not possible using Estimator V1 + # executing 2 circuits with 2 different observables using Estimator V1 + job = estimator_v1.run([circuit1, circuit2] , [obs1, obs2]) + evs = job.result().values # executing 2 circuits with 2 different observables using Estimator V2 job = estimator_v2.run([(circuit1, obs1), (circuit2, obs2)])