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 operator initialization from circuit #2723

Merged
merged 5 commits into from
Jul 2, 2019

Conversation

chriseclectic
Copy link
Member

Summary

Fixes #2622

Fixes a bug in Operator and SuperOp where circuit gates that didn't have an explicit matrix definition (such as rx, ry, rz) were always applied to qubit-0.

Details and comments

* gates were applied to incorrect qubits if they didn't have a matrix definition
@ajavadia ajavadia merged commit 2c2f91c into Qiskit:master Jul 2, 2019
lia-approves pushed a commit to edasgupta/qiskit-terra that referenced this pull request Jul 30, 2019
* fix bug in converting circuit to op

* gates were applied to incorrect qubits if they didn't have a matrix definition

* add additional test

* update changelog

* remove debug comment
@chriseclectic chriseclectic deleted the fix-circ2op branch November 14, 2019 15:11
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.

Operator(circuit) does not return the correct unitary
2 participants