DensityMatrix.partial_transpose
does not preserve input dimensions
#10155
Labels
bug
Something isn't working
Environment
What is happening?
The
partial_transpose
should return a density matrix of the same dimensionality as the inputDensityMatrix
object. When the dimensions are for systems different than qubits, the dimensions are currently not preserved.How can we reproduce the issue?
For in the following example, the dimensions of the output density matrix ρ2 are (9,) but they should be (3,3).
What should happen?
It should be an easy fix. The function should return:
instead of just:
Any suggestions?
No response
The text was updated successfully, but these errors were encountered: