2.1.2. filter_functions.basis
This module defines the Basis class, a subclass of NumPy’s ndarray, to represent operator bases.
2.1.2.1. Classes
BasisThe operator basis as an array of shape (d**2, d, d) with d the dimension of the Hilbert space
2.1.2.2. Functions
normalize()Function to normalize a
Basisinstanceexpand()Function to expand an array of operators in a given basis
ggm_expand()Fast function to expand an array of operators in a Generalized Gell-Mann basis
Functions
|
Get the indices of the equivalent (up to identities tensored to it) basis elements of Pauli bases of qubits at position idx in the total Pauli basis for N qubits. |
|
Expand the array M in the basis given by basis. |
|
Expand the matrix M in a Generalized Gell-Mann basis [R0112a120aa9b-Bert08]. |
|
Return a copy of the basis b normalized with respect to the Frobenius norm [R262ffa5493c5-Gol85]: |
|
For a N-qubit Pauli basis, transpose the order of the subsystems and return the indices that permute the old basis to the new. |
Classes
|
Class for operator bases. |