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

GPU multi-chunk measure fails when qubits are out of chunk #1483

Closed
doichanj opened this issue Mar 16, 2022 · 1 comment
Closed

GPU multi-chunk measure fails when qubits are out of chunk #1483

doichanj opened this issue Mar 16, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@doichanj
Copy link
Collaborator

Informations

  • Qiskit Aer version:
  • Python version:
  • Operating system:

What is the current behavior?

measure operation returns incorrect value when using multi-chunk parallelization (cache blocking) and index qubit is out of chunk qubits.

Steps to reproduce the problem

This issue can be reproduced by using some noise model into a circuit and using cache blocking in statevector simulator.

What is the expected behavior?

Suggested solutions

norm() and trace() returns batched sum for all chunks so the measured value is always [1, 0].
Disable batched sum so that each chunk returns local sum correctly.

@hhorii
Copy link
Collaborator

hhorii commented Mar 29, 2022

fixed with #1480.

@hhorii hhorii closed this as completed Mar 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants