Reorder u8 values for sparseobservable terms so that it is easier to determine diagonal vs off-diagonal element #13826
Labels
type: feature request
New feature or request
Milestone
What should we add?
It would be nice if the unsigned char values for the operators in a sparseobservable were renumbered so that lower indices corresponded to diagonal operators and the higher ones off-diagonal. Then checking if the operator is diagonal for a given qubit is a simple
operator_u8 < num_diag_terms
check.The text was updated successfully, but these errors were encountered: