qsharp-runtime icon indicating copy to clipboard operation
qsharp-runtime copied to clipboard

Ordering of states in DumpMachine

Open vivienlonde opened this issue 3 years ago • 3 comments

Describe the bug The computational basis states listed by DumpMachine are ordered according to a left to right lexicographical order instead of a right to left lexicographical order (see screenshot).

Capture

The bug is visible when DumpMachine is called on at least 4 qubits. (It is called on 15 qubits on the above screenshot.)

vivienlonde avatar Apr 04 '22 15:04 vivienlonde

Thanks for filing this, @vivienlonde. Depending on whether this was observed in a C# + Q# program, a Q# standalone command-line program, or a Python + Q# program, we may need to transfer this issue to either qsharp-runtime (C# + Q# or Q# command-line) or to iqsharp (Python + Q#) to correctly address your report. Thanks!

cgranade avatar Apr 04 '22 15:04 cgranade

Thank you @cgranade, it was observed on a Q# standalone command-line program.

vivienlonde avatar Apr 04 '22 15:04 vivienlonde

Thanks for the additional details, @vivienlonde! I'll go on and transfer it to qsharp-runtime for further triage, then. Thanks!

cgranade avatar Apr 04 '22 15:04 cgranade