We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Repeat calls of Statevector/DensityMatrix.evolve on subsystems for non-qubit states raises numpy axis errors.
Statevector/DensityMatrix.evolve
import qiskit.quantum_info as qi import numpy as np mat = np.eye(3) state = qi.random_statevector((3, 3, 3), seed=123) state.evolve(mat, [0]).evolve(mat, [1])
Some long traceback to... ValueError: axes don't match array
This doesn't happen for qubit subsystems.
No error
I think I have identified the bug in the OpShape.compose method where an attribute is not being set correctly for non-qubit subsystems.
OpShape.compose
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Environment
What is happening?
Repeat calls of
Statevector/DensityMatrix.evolve
on subsystems for non-qubit states raises numpy axis errors.How can we reproduce the issue?
This doesn't happen for qubit subsystems.
What should happen?
No error
Any suggestions?
I think I have identified the bug in the
OpShape.compose
method where an attribute is not being set correctly for non-qubit subsystems.The text was updated successfully, but these errors were encountered: