Learn more about our quantum error correction milestone

Module: openfermion.linalg.givens_rotations

Givens rotations routines.

Functions

double_givens_rotate(...): Apply a double Givens rotation.

fermionic_gaussian_decomposition(...): Decompose a matrix into a sequence of Givens rotations and

givens_decomposition(...): Decompose a matrix into a sequence of Givens rotations.

givens_decomposition_square(...): Decompose a square matrix into a sequence of Givens rotations.

givens_matrix_elements(...): Compute the matrix elements of the Givens rotation that zeroes out one

givens_rotate(...): Apply a Givens rotation to coordinates i and j of an operator.

swap_columns(...): Swap columns i and j of matrix M.

swap_rows(...): Swap rows i and j of matrix M.

EQ_TOLERANCE 1e-08