Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update and correct pow function for PauliSum (#6019)
* Update and correct pow function for PauliSum Updated pow function for PauliSum to use binary exponentiation * Format and remainder initialisation correction +Corrected formatting +Corrected initialisation of remainder to identity * Format and remainder initialisation correction +Corrected formatting +Corrected initialisation of remainder to identity * using local variable instead of self and reformatting * reverting to regular linear multiplication and adding tests * Adding test for range (1,9) * trailing blank * remove trailing blank test * Getting rid of extraneous variables * Fix up final formatting issue --------- Co-authored-by: Tanuj Khattar <tanujkhattar@google.com> Co-authored-by: Pavol Juhas <juhas@google.com>
- Loading branch information