ffsim.linalg.GivensRotation

class ffsim.linalg.GivensRotation(c: float, s: complex, i: int, j: int)[source]

Bases: NamedTuple

A Givens rotation.

A Givens rotation acts on the two-dimensional subspace spanned by the \(i\)-th and \(j\)-th basis vectors as

\[\begin{split}\begin{pmatrix} c & s \\ -s^* & c \\ \end{pmatrix}\end{split}\]

where \(c\) is a real number and \(s\) is a complex number.

Methods

Attributes

c

Alias for field number 0

i

Alias for field number 2

j

Alias for field number 3

s

Alias for field number 1