commutator
Method of PauliSum.
Overloads
| Name | Description |
|---|---|
commutator(const PauliSum T) -> PauliSum | Calculates the commutator [S,T] of the PauliSum S with a PauliSum T. |
commutator(const PauliTerm P) -> PauliSum | Calculates the commutator [S,P] of the PauliSum S with a PauliTerm P. |
commutator(const PauliSum T) -> PauliSum
Calculates the commutator [S,T] of the PauliSum S with a PauliSum T.
Parameters
- T: The PauliSum to calculate the commutator with.
Returns
The commutator of the PauliSum and the PauliSum
commutator(const PauliTerm P) -> PauliSum
Calculates the commutator [S,P] of the PauliSum S with a PauliTerm P.
Parameters
- P: The PauliTerm to calculate the commutator with.