pygsti.baseobjs.basisconstructors

pygsti.baseobjs.basisconstructors#

Functions for creating the standard sets of matrices in the standard, Pauli, Gell-Mann, and qutrit bases

Functions

cl_labels(dim)

Return the classical-basis labels based on a vector dimension.

cl_vectors(dim)

Get the elements (vectors) of the classical basis with dimension dim

clgm_labels(dim)

Return the classical Gell-Mann basis labels based on a vector dimension.

clgm_vectors(dim)

Get the elements (vectors) of the classical Gell-Mann basis with dimension dim

clpp_labels(dim)

Return the classical Pauli-product basis labels based on a vector dimension.

clpp_vectors(dim)

Get the elements (vectors) of the classical Pauli-product basis with dimension dim

col_labels(matrix_dim)

Return the column-stacked-matrix-basis labels based on a matrix dimension.

col_matrices(matrix_dim)

Get the elements of the matrix unit, or "column-stacked", basis of matrix-dimension matrix_dim.

gm_labels(matrix_dim)

Gell-Mann basis labels.

gm_matrices(matrix_dim)

Get the normalized elements of the generalized Gell-Mann basis with matrix dimension matrix_dim.

gm_matrices_unnormalized(matrix_dim)

Get the elements of the generalized Gell-Mann basis spanning the density-matrix space given by matrix_dim.

identity_labels(dim)

The identity-basis labels based on a matrix dimension.

identity_matrices(matrix_dim)

Matrices for the "identity" basis of matrix dimension matrix_dim.

lf_labels(matrix_dim)

lf_matrices(matrix_dim)

This basis is used to isolate the parts of Hilbert-Schmidt space that act on the computational subspace induced from a partition of 3-dimensional complex Hilbert space into a 2-dimensional computational subspace and a 1-dimensional leakage space.

mut(i, j, n)

A matrix unit.

pp_labels(matrix_dim)

Pauli-product basis labels.

pp_matrices(matrix_dim[, max_weight, normalize])

Get the elements of the Pauil-product basis with matrix dimension matrix_dim.

qsim_labels(matrix_dim)

QSim basis labels.

qsim_matrices(matrix_dim)

Get the elements of the QuantumSim basis with matrix dimension matrix_dim.

qt_labels(matrix_dim)

The qutrit-basis labels based on a matrix dimension.

qt_matrices(matrix_dim[, selected_pp_indices])

Get the elements of a special basis spanning the density-matrix space of a qutrit.

std_labels(matrix_dim)

Return the standard-matrix-basis labels based on a matrix dimension.

std_matrices(matrix_dim)

Get the elements of the matrix unit, or "standard", basis of matrix-dimension matrix_dim.

sv_labels(dim)

Return the state-vector-basis labels based on a vector dimension.

sv_vectors(dim)

Get the elements (vectors) of the complex state-vector basis with dimension dim.

unknown_els(dim)

The elements of the "unknown" basis.

unknown_labels(dim)

The labels for the "unknown" basis.

Classes

DiagonalMatrixBasisConstructor(longname, ...)

A factory class for constructing builtin basis types whose elements are diagonal matrices.

MatrixBasisConstructor(longname, ...)

A factory class for constructing builtin basis types whose elements are matrices.

SingleElementMatrixBasisConstructor(...)

A constructor for a basis containing just a single element (e.g. the identity).

VectorBasisConstructor(longname, ...)

A factory class for constructing builtin basis types whose elements are vectors.