colder.core.quantum package

colder.core.quantum.numpy module

class colder.core.quantum.numpy.operators[source]

Bases: object

X: ndarray = array([[0.+0.j, 1.+0.j],        [1.+0.j, 0.+0.j]])
Y: ndarray = array([[ 0.+0.j, -0.-1.j],        [ 0.+1.j,  0.+0.j]])
Z: ndarray = array([[ 1.+0.j,  0.+0.j],        [ 0.+0.j, -1.+0.j]])
Id: ndarray = array([[1.+0.j, 0.+0.j],        [0.+0.j, 1.+0.j]])
class colder.core.quantum.numpy.quantum_sparse(size: int, local_dim: int = 2)[source]

Bases: object

kron_site(operator: ndarray, site: int) ndarray[source]
kron_list(operators: List[ndarray], sites: List[int]) ndarray[source]

colder.core.quantum.sparse module

class colder.core.quantum.sparse.operators[source]

Bases: object

X: spmatrix = <2x2 sparse matrix of type '<class 'numpy.complex128'>' with 2 stored elements in Compressed Sparse Row format>
Y: spmatrix = <2x2 sparse matrix of type '<class 'numpy.complex128'>' with 2 stored elements in Compressed Sparse Row format>
Z: spmatrix = <2x2 sparse matrix of type '<class 'numpy.complex128'>' with 2 stored elements in Compressed Sparse Row format>
Id: spmatrix = <2x2 sparse matrix of type '<class 'numpy.complex128'>' with 2 stored elements (1 diagonals) in DIAgonal format>
class colder.core.quantum.sparse.quantum_sparse(size: int, local_dim: int = 2)[source]

Bases: object

kron_site(operator: spmatrix, site: int) spmatrix[source]
kron_list(operators: List[spmatrix], sites: List[int]) spmatrix[source]

Module contents