Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix level 1 meas with sampler #1474

Conversation

dekelmeirom
Copy link
Contributor

this fix is relevant only to experiments with measurement level 1 using Sampler.
Tested on qiskit-monitoring experiments and works fine

@dekelmeirom
Copy link
Contributor Author

relevant to PR #1470

@@ -1067,7 +1067,6 @@ def _add_result_data(self, result: Result, job_id: Optional[str] = None) -> None
# different parameter binds which is trivial because
# qiskit-experiments does not support parameter binding
# to pubs currently.
joined_data = joined_data[0]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I did some more testing and confirmed this change is good. We need to remove the comment above it as well since it was explaining this line. This line came from the way I added level 1 support to BackendSampler for testing. I need to update that as well.

We can fix the comment here and merge or not. I will work on the tests in #1473 and will remove the comment there if it is not removed here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have removed the comment :)

@wshanks
Copy link
Collaborator

wshanks commented Oct 15, 2024

I copied this into #1473 and it is merged into #1470 now.

@wshanks wshanks closed this Oct 15, 2024
@dekelmeirom dekelmeirom deleted the fix_level_1_meas branch October 16, 2024 06:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants