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

Add marginal distribution routines #120

Merged
merged 14 commits into from
Jul 1, 2022
Merged

Add marginal distribution routines #120

merged 14 commits into from
Jul 1, 2022

Conversation

nonhermitian
Copy link
Collaborator

@nonhermitian nonhermitian commented Jun 15, 2022

For low-weight operators it is more efficient to marginalize the input distribution (counts) over those qubits with non-identity operators only. This gives a much smaller state space over which to mitigate and makes things much faster.

This PR adds routines for marginalizing distributions given indices or operators as strings. Optionally a qubit to bit mapping can be passed, which will also be marginalized so that it can be directly used in apply_correction

@nonhermitian nonhermitian added the enhancement New feature or request label Jun 15, 2022
@nonhermitian nonhermitian added this to the 1.0 milestone Jun 15, 2022
@nonhermitian nonhermitian changed the title [WIP] Add marginal distribution routines Add marginal distribution routines Jun 15, 2022
@nonhermitian
Copy link
Collaborator Author

On hold for next Qiskit release, to make use of the rust version of the marginals

@nonhermitian
Copy link
Collaborator Author

Ok, this is now using the Qiskit version of marginal_distribution. It would be nice to have Qiskit/qiskit#8283 solved, but it is not a blocker as you can use lists everywhere to accomplish the same thing.

@nonhermitian nonhermitian merged commit efa4365 into main Jul 1, 2022
@nonhermitian nonhermitian deleted the marginals branch July 1, 2022 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant