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

MPS: Support multi-qubit apply matrix #634

Merged
merged 26 commits into from
Feb 26, 2020
Merged

Conversation

merav-aharoni
Copy link
Contributor

Summary

Enabled applying unitary matrices on more than 2 qubits.

Details and comments

This PR uses developments from PR #603, so must be merge after merging #603.

Copy link
Member

@atilag atilag left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!

case 2:
apply_2_qubit_gate(qubits[0], qubits[1], su4, mat);
break;
// case 2:
Copy link
Member

Choose a reason for hiding this comment

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

Just remove these lines, no need for commenting.

@atilag atilag merged commit 150f405 into Qiskit:master Feb 26, 2020
mtreinish pushed a commit to mtreinish/qiskit-aer that referenced this pull request Mar 2, 2020
* added support for computing expectation value pauli when qubits are not in ascending order
* in expectation_value_pauli, moved the reverse_qubits to before the sort
* update MPS expectation value snapshots
* added support for expectation value matrix when the qubits are not ordered in ascending order
* rewrote the function move_qubits_to_new_position
* fixed bug in the optimization for the case where the qubits are given in consecutive order
* changed name of method and parameters, to suit functionality
* updated documentation accordingly
* added support for multi-qubit apply_matrix

Co-authored-by: yaelbh <yaelbh@il.ibm.com>
(cherry picked from commit 150f405)
@merav-aharoni merav-aharoni deleted the apply_matrix branch March 19, 2020 14:58
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.

3 participants