iqsharp icon indicating copy to clipboard operation
iqsharp copied to clipboard

Add %config to switch DumpOperation output to big endian indices

Open tcNickolas opened this issue 2 years ago • 0 comments

Is your feature request related to a problem? Please describe. (Passing on a feature request I heard recently from a student)

Describe the solution you'd like It would be great to have a %config option, similar to dump.basisStateLabelingConvention (or even reuse it), that would switch DumpOperation output to use big endian indices instead of little endian. This would make it a lot easier to follow papers and books that use big endian for expressing matrices.

For example, calling DumpOperation(2, ApplyToFirstTwoQubitsCA(CNOT, _)); after applying that config would produce the more familiar matrix image rather than the current somewhat surprising one image

tcNickolas avatar Aug 20 '21 20:08 tcNickolas