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

Fixed cz gate of DensityMatrixThrust #754 #760

Merged
merged 6 commits into from
May 30, 2020

Conversation

doichanj
Copy link
Collaborator

Summary

I modified cz gate implementation of DensityMatrixThrust class to fix issue #754
I noticed y gate also has issue so I fixed it.

Details and comments

The matrix to be applied by apply_matrix in cz gate was wrong, diagonal elements should be set to 1 but set to 0.
Also the matrix set in y gate was wrong, I created separate kernel for y gate.

@chriseclectic
Copy link
Member

Hi @doichanj, can you separate the bug fix from the CMake changes (this also seems to include #743).

Also can you add a release note about the bug fix

@chriseclectic chriseclectic added this to the 0.5.2 milestone May 29, 2020
@chriseclectic chriseclectic added stable-backport-potential The issue or PR might be minimal and/or import enough to backport to stable Changelog: Bugfix Include in the Fixed section of the changelog labels May 29, 2020
@chriseclectic
Copy link
Member

I added this to PR #765 which fixes the tests which werent being run for density matrix simulator and it looks like a couple are still failing

@doichanj
Copy link
Collaborator Author

Sorry I removed cmake files.

Also I fixed cz gate again. Using apply_diagonal_matrix instead of apply_matrix

@chriseclectic chriseclectic removed this from the 0.5.2 milestone May 30, 2020
@chriseclectic chriseclectic removed the stable-backport-potential The issue or PR might be minimal and/or import enough to backport to stable label May 30, 2020
@chriseclectic chriseclectic added the stable-backport-potential The issue or PR might be minimal and/or import enough to backport to stable label May 30, 2020
@chriseclectic chriseclectic added this to the 0.5.2 milestone May 30, 2020
@chriseclectic chriseclectic merged commit eea9a48 into Qiskit:master May 30, 2020
chriseclectic added a commit to chriseclectic/qiskit-aer that referenced this pull request May 30, 2020
* fixed cz and y gates of DensityMatrixThrust Qiskit#754

Co-authored-by: Christopher Wood <cjwood@us.ibm.com>
chriseclectic added a commit to chriseclectic/qiskit-aer that referenced this pull request Jun 1, 2020
chriseclectic added a commit to chriseclectic/qiskit-aer that referenced this pull request Jun 1, 2020
chriseclectic added a commit that referenced this pull request Jun 1, 2020
chriseclectic added a commit to chriseclectic/qiskit-aer that referenced this pull request Jun 1, 2020
chriseclectic added a commit to chriseclectic/qiskit-aer that referenced this pull request Jun 1, 2020
* fixed cz and y gates of DensityMatrixThrust Qiskit#754

Co-authored-by: Christopher Wood <cjwood@us.ibm.com>
chriseclectic added a commit to chriseclectic/qiskit-aer that referenced this pull request Jun 1, 2020
chriseclectic added a commit to chriseclectic/qiskit-aer that referenced this pull request Jun 1, 2020
* fixed cz and y gates of DensityMatrixThrust Qiskit#754

Co-authored-by: Christopher Wood <cjwood@us.ibm.com>
chriseclectic added a commit to chriseclectic/qiskit-aer that referenced this pull request Jun 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: Bugfix Include in the Fixed section of the changelog stable-backport-potential The issue or PR might be minimal and/or import enough to backport to stable
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants