pygsti.baseobjs.basisconstructors.cl_vectors

Contents

pygsti.baseobjs.basisconstructors.cl_vectors#

cl_vectors(dim)#

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

That is, the dim standard unit vectors of length dim.

Parameters:

dim (int) – dimension of the vector space.

Returns:

A list of dim numpy arrays each of shape (dim,).

Return type:

list