iqsharp
iqsharp copied to clipboard
Add %config to switch DumpOperation output to big endian indices
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
rather than the current somewhat surprising one