Skip to main content

commutator

Method of PauliSum.

Overloads

NameDescription
commutator(const PauliSum T) -> PauliSumCalculates the commutator [S,T] of the PauliSum S with a PauliSum T.
commutator(const PauliTerm P) -> PauliSumCalculates 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.

Returns

The commutator of the PauliSum and the PauliTerm