Skip to main content

QuadraticSum

Overloads

NameDescription
QuadraticSum(const ComplexMatrix matrix) -> OperatorThe QuadraticSum operator is parametrized by a sparse matrix S(i,j)S(i,j) of size 2L×2L2L \times 2L . The operator represents the sum i,jSi,j+,fifj+Si,j,+fifj+Si,j+,+fifj+Si,j,fifj\sum_{i,j}S_{i,j}^{+,-}f_i^{\dagger}f_j + S_{i,j}^{-,+}f_if_j^{\dagger} + S_{i,j}^{+,+}f_i^{\dagger}f_j^{\dagger} + S_{i,j}^{-,-}f_if_j with S=(S+,,S+,+S,,S,+)S =\begin{pmatrix}S^{+,-}, S^{+,+} \\ S^{-,-}, S^{-,+} \end{pmatrix}
QuadraticSum(const RealSparseMatrix matrix) -> OperatorThe QuadraticSum operator is parametrized by a sparse matrix S(i,j)S(i,j) of size 2L×2L2L \times 2L . The operator represents the sum i,jSi,j+,fifj+Si,j,+fifj+Si,j+,+fifj+Si,j,fifj\sum_{i,j}S_{i,j}^{+,-}f_i^{\dagger}f_j + S_{i,j}^{-,+}f_if_j^{\dagger} + S_{i,j}^{+,+}f_i^{\dagger}f_j^{\dagger} + S_{i,j}^{-,-}f_if_j with S=(S+,,S+,+S,,S,+)S =\begin{pmatrix}S^{+,-}, S^{+,+} \\ S^{-,-}, S^{-,+} \end{pmatrix}
QuadraticSum(const ComplexSparseMatrix matrix) -> OperatorThe QuadraticSum operator is parametrized by a sparse matrix S(i,j)S(i,j) of size 2L×2L2L \times 2L . The operator represents the sum i,jSi,j+,fifj+Si,j,+fifj+Si,j+,+fifj+Si,j,fifj\sum_{i,j}S_{i,j}^{+,-}f_i^{\dagger}f_j + S_{i,j}^{-,+}f_if_j^{\dagger} + S_{i,j}^{+,+}f_i^{\dagger}f_j^{\dagger} + S_{i,j}^{-,-}f_if_j with S=(S+,,S+,+S,,S,+)S =\begin{pmatrix}S^{+,-}, S^{+,+} \\ S^{-,-}, S^{-,+} \end{pmatrix}
QuadraticSum(const RealMatrix matrix) -> OperatorThe QuadraticSum operator is parametrized by a sparse matrix S(i,j)S(i,j) of size 2L×2L2L \times 2L . The operator represents the sum i,jSi,j+,fifj+Si,j,+fifj+Si,j+,+fifj+Si,j,fifj\sum_{i,j}S_{i,j}^{+,-}f_i^{\dagger}f_j + S_{i,j}^{-,+}f_if_j^{\dagger} + S_{i,j}^{+,+}f_i^{\dagger}f_j^{\dagger} + S_{i,j}^{-,-}f_if_j with S=(S+,,S+,+S,,S,+)S =\begin{pmatrix}S^{+,-}, S^{+,+} \\ S^{-,-}, S^{-,+} \end{pmatrix}
QuadraticSum(const Operator operator) -> OperatorThe QuadraticSum operator is parametrized by a sparse matrix S(i,j)S(i,j) of size 2L×2L2L \times 2L . The operator represents the sum i,jSi,j+,fifj+Si,j,+fifj+Si,j+,+fifj+Si,j,fifj\sum_{i,j}S_{i,j}^{+,-}f_i^{\dagger}f_j + S_{i,j}^{-,+}f_if_j^{\dagger} + S_{i,j}^{+,+}f_i^{\dagger}f_j^{\dagger} + S_{i,j}^{-,-}f_if_j with S=(S+,,S+,+S,,S,+)S =\begin{pmatrix}S^{+,-}, S^{+,+} \\ S^{-,-}, S^{-,+} \end{pmatrix}
QuadraticSum(const Operator operator, as_real options) -> OperatorThe QuadraticSum operator is parametrized by a sparse matrix S(i,j)S(i,j) of size 2L×2L2L \times 2L . The operator represents the sum i,jSi,j+,fifj+Si,j,+fifj+Si,j+,+fifj+Si,j,fifj\sum_{i,j}S_{i,j}^{+,-}f_i^{\dagger}f_j + S_{i,j}^{-,+}f_if_j^{\dagger} + S_{i,j}^{+,+}f_i^{\dagger}f_j^{\dagger} + S_{i,j}^{-,-}f_if_j with S=(S+,,S+,+S,,S,+)S =\begin{pmatrix}S^{+,-}, S^{+,+} \\ S^{-,-}, S^{-,+} \end{pmatrix}
QuadraticSum(const Operator operator, as_complex options) -> OperatorThe QuadraticSum operator is parametrized by a sparse matrix S(i,j)S(i,j) of size 2L×2L2L \times 2L . The operator represents the sum i,jSi,j+,fifj+Si,j,+fifj+Si,j+,+fifj+Si,j,fifj\sum_{i,j}S_{i,j}^{+,-}f_i^{\dagger}f_j + S_{i,j}^{-,+}f_if_j^{\dagger} + S_{i,j}^{+,+}f_i^{\dagger}f_j^{\dagger} + S_{i,j}^{-,-}f_if_j with S=(S+,,S+,+S,,S,+)S =\begin{pmatrix}S^{+,-}, S^{+,+} \\ S^{-,-}, S^{-,+} \end{pmatrix}

QuadraticSum(const ComplexMatrix matrix) -> Operator

The QuadraticSum operator is parametrized by a sparse matrix S(i,j)S(i,j) of size 2L×2L2L \times 2L . The operator represents the sum i,jSi,j+,fifj+Si,j,+fifj+Si,j+,+fifj+Si,j,fifj\sum_{i,j}S_{i,j}^{+,-}f_i^{\dagger}f_j + S_{i,j}^{-,+}f_if_j^{\dagger} + S_{i,j}^{+,+}f_i^{\dagger}f_j^{\dagger} + S_{i,j}^{-,-}f_if_j with S=(S+,,S+,+S,,S,+)S =\begin{pmatrix}S^{+,-}, S^{+,+} \\ S^{-,-}, S^{-,+} \end{pmatrix}

Parameters

  • matrix: The Bogoliubov-de-Gennes matrix of a quadratic fermionic Hamiltonian.

QuadraticSum(const RealSparseMatrix matrix) -> Operator

The QuadraticSum operator is parametrized by a sparse matrix S(i,j)S(i,j) of size 2L×2L2L \times 2L . The operator represents the sum i,jSi,j+,fifj+Si,j,+fifj+Si,j+,+fifj+Si,j,fifj\sum_{i,j}S_{i,j}^{+,-}f_i^{\dagger}f_j + S_{i,j}^{-,+}f_if_j^{\dagger} + S_{i,j}^{+,+}f_i^{\dagger}f_j^{\dagger} + S_{i,j}^{-,-}f_if_j with S=(S+,,S+,+S,,S,+)S =\begin{pmatrix}S^{+,-}, S^{+,+} \\ S^{-,-}, S^{-,+} \end{pmatrix}

Parameters

  • matrix: The Bogoliubov-de-Gennes matrix of a quadratic fermionic Hamiltonian.

QuadraticSum(const ComplexSparseMatrix matrix) -> Operator

The QuadraticSum operator is parametrized by a sparse matrix S(i,j)S(i,j) of size 2L×2L2L \times 2L . The operator represents the sum i,jSi,j+,fifj+Si,j,+fifj+Si,j+,+fifj+Si,j,fifj\sum_{i,j}S_{i,j}^{+,-}f_i^{\dagger}f_j + S_{i,j}^{-,+}f_if_j^{\dagger} + S_{i,j}^{+,+}f_i^{\dagger}f_j^{\dagger} + S_{i,j}^{-,-}f_if_j with S=(S+,,S+,+S,,S,+)S =\begin{pmatrix}S^{+,-}, S^{+,+} \\ S^{-,-}, S^{-,+} \end{pmatrix}

Parameters

  • matrix: The Bogoliubov-de-Gennes matrix of a quadratic fermionic Hamiltonian.

QuadraticSum(const RealMatrix matrix) -> Operator

The QuadraticSum operator is parametrized by a sparse matrix S(i,j)S(i,j) of size 2L×2L2L \times 2L . The operator represents the sum i,jSi,j+,fifj+Si,j,+fifj+Si,j+,+fifj+Si,j,fifj\sum_{i,j}S_{i,j}^{+,-}f_i^{\dagger}f_j + S_{i,j}^{-,+}f_if_j^{\dagger} + S_{i,j}^{+,+}f_i^{\dagger}f_j^{\dagger} + S_{i,j}^{-,-}f_if_j with S=(S+,,S+,+S,,S,+)S =\begin{pmatrix}S^{+,-}, S^{+,+} \\ S^{-,-}, S^{-,+} \end{pmatrix}

Parameters

  • matrix: The Bogoliubov-de-Gennes matrix of a quadratic fermionic Hamiltonian.

QuadraticSum(const Operator operator) -> Operator

The QuadraticSum operator is parametrized by a sparse matrix S(i,j)S(i,j) of size 2L×2L2L \times 2L . The operator represents the sum i,jSi,j+,fifj+Si,j,+fifj+Si,j+,+fifj+Si,j,fifj\sum_{i,j}S_{i,j}^{+,-}f_i^{\dagger}f_j + S_{i,j}^{-,+}f_if_j^{\dagger} + S_{i,j}^{+,+}f_i^{\dagger}f_j^{\dagger} + S_{i,j}^{-,-}f_if_j with S=(S+,,S+,+S,,S,+)S =\begin{pmatrix}S^{+,-}, S^{+,+} \\ S^{-,-}, S^{-,+} \end{pmatrix}

Parameters

  • operator: A sum of fermionic operators corresponding to either pairing or hopping terms.

QuadraticSum(const Operator operator, as_real options) -> Operator

The QuadraticSum operator is parametrized by a sparse matrix S(i,j)S(i,j) of size 2L×2L2L \times 2L . The operator represents the sum i,jSi,j+,fifj+Si,j,+fifj+Si,j+,+fifj+Si,j,fifj\sum_{i,j}S_{i,j}^{+,-}f_i^{\dagger}f_j + S_{i,j}^{-,+}f_if_j^{\dagger} + S_{i,j}^{+,+}f_i^{\dagger}f_j^{\dagger} + S_{i,j}^{-,-}f_if_j with S=(S+,,S+,+S,,S,+)S =\begin{pmatrix}S^{+,-}, S^{+,+} \\ S^{-,-}, S^{-,+} \end{pmatrix}

Parameters

  • operator: A sum of fermionic operators corresponding to either pairing or hopping terms.
  • options: Options used to specify the type of the stored coefficients. Options currently include as_real and as_complex

QuadraticSum(const Operator operator, as_complex options) -> Operator

The QuadraticSum operator is parametrized by a sparse matrix S(i,j)S(i,j) of size 2L×2L2L \times 2L . The operator represents the sum i,jSi,j+,fifj+Si,j,+fifj+Si,j+,+fifj+Si,j,fifj\sum_{i,j}S_{i,j}^{+,-}f_i^{\dagger}f_j + S_{i,j}^{-,+}f_if_j^{\dagger} + S_{i,j}^{+,+}f_i^{\dagger}f_j^{\dagger} + S_{i,j}^{-,-}f_if_j with S=(S+,,S+,+S,,S,+)S =\begin{pmatrix}S^{+,-}, S^{+,+} \\ S^{-,-}, S^{-,+} \end{pmatrix}

Parameters

  • operator: A sum of fermionic operators corresponding to either pairing or hopping terms.
  • options: Options used to specify the type of the stored coefficients. Options currently include as_real and as_complex