block.operator

Classes for operator matrices and operations.

class block.operator.DensityMatrix(*args, **kwargs)

Bases: block.operator.StackSparseMatrix

Block-sparse matrix. Non-zero blocks are identified by symmetry (quantum numbers) requirements and stored as StackMatrix objects

class block.operator.MapPairInt(*args, **kwargs)

Bases: object

items(self: block.operator.MapPairInt) → iterator
class block.operator.OpTypes

Bases: enum.Enum

Types of operators (enumerator).

Members:

Hamiltonian

Cre

CreCre

DesDesComp

CreDes

CreDesComp

CreCreDesComp

Des

DesDes

CreCreComp

DesCre

DesCreComp

CreDesDesComp

Overlap

Cre = 2
CreCre = 3
CreCreComp = 10
CreCreDesComp = 7
CreDes = 5
CreDesComp = 6
CreDesDesComp = 13
Des = 8
DesCre = 11
DesCreComp = 12
DesDes = 9
DesDesComp = 4
Hamiltonian = 1
Overlap = 14
class block.operator.OperatorArrayBase

Bases: object

class block.operator.OperatorArrayCre(*args, **kwargs)

Bases: block.operator.OperatorArrayBase

An array of Cre operators defined at different sites.

global_element_linear(self: block.operator.OperatorArrayCre, arg0: int) → block.operator.VectorStackSparseMatrix

Get an array of operators (for different spin quantum numbers) defined for the given (flattened) linear index (in global storage).

global_indices

A 1d array contains the site indices of non-zero elements (in local or global storage). It gives a map from flattened single index to multiple site indices. Then this array itself is flattened.

has_global(self: block.operator.OperatorArrayCre, arg0: int) → bool

Query whether the element is non-zero (in local or global storage). The parameters are site indices.

has_local(self: block.operator.OperatorArrayCre, arg0: int) → bool

Query whether the element is non-zero in local storage. The parameters are site indices.

local_element(self: block.operator.OperatorArrayCre, arg0: int) → block.operator.VectorStackSparseMatrix

Get an array of operators (for different spin quantum numbers) defined for the given site indices (in local storage).

local_element_linear(self: block.operator.OperatorArrayCre, arg0: int) → block.operator.VectorStackSparseMatrix

Get an array of operators (for different spin quantum numbers) defined for the given (flattened) linear index (in local storage).

local_indices

A 2d array contains the site indices of non-zero elements in local storage. It gives a map from flattened single index to multiple site indices (which is represented as an array).

n_global_nz

Number of non-zero elements in global storage.

n_local_nz

Number of non-zero elements in local storage.

op_string

Name of the type of operators contained in this array.

class block.operator.OperatorArrayCreCre(*args, **kwargs)

Bases: block.operator.OperatorArrayBase

An array of CreCre operators defined at different sites.

global_element_linear(self: block.operator.OperatorArrayCreCre, arg0: int) → block.operator.VectorStackSparseMatrix

Get an array of operators (for different spin quantum numbers) defined for the given (flattened) linear index (in global storage).

global_indices

A 1d array contains the site indices of non-zero elements (in local or global storage). It gives a map from flattened single index to multiple site indices. Then this array itself is flattened.

has_global(self: block.operator.OperatorArrayCreCre, arg0: int, arg1: int) → bool

Query whether the element is non-zero (in local or global storage). The parameters are site indices.

has_local(self: block.operator.OperatorArrayCreCre, arg0: int, arg1: int) → bool

Query whether the element is non-zero in local storage. The parameters are site indices.

local_element(self: block.operator.OperatorArrayCreCre, arg0: int, arg1: int) → block.operator.VectorStackSparseMatrix

Get an array of operators (for different spin quantum numbers) defined for the given site indices (in local storage).

local_element_linear(self: block.operator.OperatorArrayCreCre, arg0: int) → block.operator.VectorStackSparseMatrix

Get an array of operators (for different spin quantum numbers) defined for the given (flattened) linear index (in local storage).

local_indices

A 2d array contains the site indices of non-zero elements in local storage. It gives a map from flattened single index to multiple site indices (which is represented as an array).

n_global_nz

Number of non-zero elements in global storage.

n_local_nz

Number of non-zero elements in local storage.

op_string

Name of the type of operators contained in this array.

class block.operator.OperatorArrayCreCreComp(*args, **kwargs)

Bases: block.operator.OperatorArrayBase

An array of CreCreComp operators defined at different sites.

global_element_linear(self: block.operator.OperatorArrayCreCreComp, arg0: int) → block.operator.VectorStackSparseMatrix

Get an array of operators (for different spin quantum numbers) defined for the given (flattened) linear index (in global storage).

global_indices

A 1d array contains the site indices of non-zero elements (in local or global storage). It gives a map from flattened single index to multiple site indices. Then this array itself is flattened.

has_global(self: block.operator.OperatorArrayCreCreComp, arg0: int, arg1: int) → bool

Query whether the element is non-zero (in local or global storage). The parameters are site indices.

has_local(self: block.operator.OperatorArrayCreCreComp, arg0: int, arg1: int) → bool

Query whether the element is non-zero in local storage. The parameters are site indices.

local_element(self: block.operator.OperatorArrayCreCreComp, arg0: int, arg1: int) → block.operator.VectorStackSparseMatrix

Get an array of operators (for different spin quantum numbers) defined for the given site indices (in local storage).

local_element_linear(self: block.operator.OperatorArrayCreCreComp, arg0: int) → block.operator.VectorStackSparseMatrix

Get an array of operators (for different spin quantum numbers) defined for the given (flattened) linear index (in local storage).

local_indices

A 2d array contains the site indices of non-zero elements in local storage. It gives a map from flattened single index to multiple site indices (which is represented as an array).

n_global_nz

Number of non-zero elements in global storage.

n_local_nz

Number of non-zero elements in local storage.

op_string

Name of the type of operators contained in this array.

class block.operator.OperatorArrayCreCreDesComp(*args, **kwargs)

Bases: block.operator.OperatorArrayBase

An array of CreCreDesComp operators defined at different sites.

global_element_linear(self: block.operator.OperatorArrayCreCreDesComp, arg0: int) → block.operator.VectorStackSparseMatrix

Get an array of operators (for different spin quantum numbers) defined for the given (flattened) linear index (in global storage).

global_indices

A 1d array contains the site indices of non-zero elements (in local or global storage). It gives a map from flattened single index to multiple site indices. Then this array itself is flattened.

has_global(self: block.operator.OperatorArrayCreCreDesComp, arg0: int) → bool

Query whether the element is non-zero (in local or global storage). The parameters are site indices.

has_local(self: block.operator.OperatorArrayCreCreDesComp, arg0: int) → bool

Query whether the element is non-zero in local storage. The parameters are site indices.

local_element(self: block.operator.OperatorArrayCreCreDesComp, arg0: int) → block.operator.VectorStackSparseMatrix

Get an array of operators (for different spin quantum numbers) defined for the given site indices (in local storage).

local_element_linear(self: block.operator.OperatorArrayCreCreDesComp, arg0: int) → block.operator.VectorStackSparseMatrix

Get an array of operators (for different spin quantum numbers) defined for the given (flattened) linear index (in local storage).

local_indices

A 2d array contains the site indices of non-zero elements in local storage. It gives a map from flattened single index to multiple site indices (which is represented as an array).

n_global_nz

Number of non-zero elements in global storage.

n_local_nz

Number of non-zero elements in local storage.

op_string

Name of the type of operators contained in this array.

class block.operator.OperatorArrayCreDes(*args, **kwargs)

Bases: block.operator.OperatorArrayBase

An array of CreDes operators defined at different sites.

global_element_linear(self: block.operator.OperatorArrayCreDes, arg0: int) → block.operator.VectorStackSparseMatrix

Get an array of operators (for different spin quantum numbers) defined for the given (flattened) linear index (in global storage).

global_indices

A 1d array contains the site indices of non-zero elements (in local or global storage). It gives a map from flattened single index to multiple site indices. Then this array itself is flattened.

has_global(self: block.operator.OperatorArrayCreDes, arg0: int, arg1: int) → bool

Query whether the element is non-zero (in local or global storage). The parameters are site indices.

has_local(self: block.operator.OperatorArrayCreDes, arg0: int, arg1: int) → bool

Query whether the element is non-zero in local storage. The parameters are site indices.

local_element(self: block.operator.OperatorArrayCreDes, arg0: int, arg1: int) → block.operator.VectorStackSparseMatrix

Get an array of operators (for different spin quantum numbers) defined for the given site indices (in local storage).

local_element_linear(self: block.operator.OperatorArrayCreDes, arg0: int) → block.operator.VectorStackSparseMatrix

Get an array of operators (for different spin quantum numbers) defined for the given (flattened) linear index (in local storage).

local_indices

A 2d array contains the site indices of non-zero elements in local storage. It gives a map from flattened single index to multiple site indices (which is represented as an array).

n_global_nz

Number of non-zero elements in global storage.

n_local_nz

Number of non-zero elements in local storage.

op_string

Name of the type of operators contained in this array.

class block.operator.OperatorArrayCreDesComp(*args, **kwargs)

Bases: block.operator.OperatorArrayBase

An array of CreDesComp operators defined at different sites.

global_element_linear(self: block.operator.OperatorArrayCreDesComp, arg0: int) → block.operator.VectorStackSparseMatrix

Get an array of operators (for different spin quantum numbers) defined for the given (flattened) linear index (in global storage).

global_indices

A 1d array contains the site indices of non-zero elements (in local or global storage). It gives a map from flattened single index to multiple site indices. Then this array itself is flattened.

has_global(self: block.operator.OperatorArrayCreDesComp, arg0: int, arg1: int) → bool

Query whether the element is non-zero (in local or global storage). The parameters are site indices.

has_local(self: block.operator.OperatorArrayCreDesComp, arg0: int, arg1: int) → bool

Query whether the element is non-zero in local storage. The parameters are site indices.

local_element(self: block.operator.OperatorArrayCreDesComp, arg0: int, arg1: int) → block.operator.VectorStackSparseMatrix

Get an array of operators (for different spin quantum numbers) defined for the given site indices (in local storage).

local_element_linear(self: block.operator.OperatorArrayCreDesComp, arg0: int) → block.operator.VectorStackSparseMatrix

Get an array of operators (for different spin quantum numbers) defined for the given (flattened) linear index (in local storage).

local_indices

A 2d array contains the site indices of non-zero elements in local storage. It gives a map from flattened single index to multiple site indices (which is represented as an array).

n_global_nz

Number of non-zero elements in global storage.

n_local_nz

Number of non-zero elements in local storage.

op_string

Name of the type of operators contained in this array.

class block.operator.OperatorArrayCreDesDesComp(*args, **kwargs)

Bases: block.operator.OperatorArrayBase

An array of CreDesDesComp operators defined at different sites.

global_element_linear(self: block.operator.OperatorArrayCreDesDesComp, arg0: int) → block.operator.VectorStackSparseMatrix

Get an array of operators (for different spin quantum numbers) defined for the given (flattened) linear index (in global storage).

global_indices

A 1d array contains the site indices of non-zero elements (in local or global storage). It gives a map from flattened single index to multiple site indices. Then this array itself is flattened.

has_global(self: block.operator.OperatorArrayCreDesDesComp, arg0: int) → bool

Query whether the element is non-zero (in local or global storage). The parameters are site indices.

has_local(self: block.operator.OperatorArrayCreDesDesComp, arg0: int) → bool

Query whether the element is non-zero in local storage. The parameters are site indices.

local_element(self: block.operator.OperatorArrayCreDesDesComp, arg0: int) → block.operator.VectorStackSparseMatrix

Get an array of operators (for different spin quantum numbers) defined for the given site indices (in local storage).

local_element_linear(self: block.operator.OperatorArrayCreDesDesComp, arg0: int) → block.operator.VectorStackSparseMatrix

Get an array of operators (for different spin quantum numbers) defined for the given (flattened) linear index (in local storage).

local_indices

A 2d array contains the site indices of non-zero elements in local storage. It gives a map from flattened single index to multiple site indices (which is represented as an array).

n_global_nz

Number of non-zero elements in global storage.

n_local_nz

Number of non-zero elements in local storage.

op_string

Name of the type of operators contained in this array.

class block.operator.OperatorArrayDes(*args, **kwargs)

Bases: block.operator.OperatorArrayBase

An array of Des operators defined at different sites.

global_element_linear(self: block.operator.OperatorArrayDes, arg0: int) → block.operator.VectorStackSparseMatrix

Get an array of operators (for different spin quantum numbers) defined for the given (flattened) linear index (in global storage).

global_indices

A 1d array contains the site indices of non-zero elements (in local or global storage). It gives a map from flattened single index to multiple site indices. Then this array itself is flattened.

has_global(self: block.operator.OperatorArrayDes, arg0: int) → bool

Query whether the element is non-zero (in local or global storage). The parameters are site indices.

has_local(self: block.operator.OperatorArrayDes, arg0: int) → bool

Query whether the element is non-zero in local storage. The parameters are site indices.

local_element(self: block.operator.OperatorArrayDes, arg0: int) → block.operator.VectorStackSparseMatrix

Get an array of operators (for different spin quantum numbers) defined for the given site indices (in local storage).

local_element_linear(self: block.operator.OperatorArrayDes, arg0: int) → block.operator.VectorStackSparseMatrix

Get an array of operators (for different spin quantum numbers) defined for the given (flattened) linear index (in local storage).

local_indices

A 2d array contains the site indices of non-zero elements in local storage. It gives a map from flattened single index to multiple site indices (which is represented as an array).

n_global_nz

Number of non-zero elements in global storage.

n_local_nz

Number of non-zero elements in local storage.

op_string

Name of the type of operators contained in this array.

class block.operator.OperatorArrayDesCre(*args, **kwargs)

Bases: block.operator.OperatorArrayBase

An array of DesCre operators defined at different sites.

global_element_linear(self: block.operator.OperatorArrayDesCre, arg0: int) → block.operator.VectorStackSparseMatrix

Get an array of operators (for different spin quantum numbers) defined for the given (flattened) linear index (in global storage).

global_indices

A 1d array contains the site indices of non-zero elements (in local or global storage). It gives a map from flattened single index to multiple site indices. Then this array itself is flattened.

has_global(self: block.operator.OperatorArrayDesCre, arg0: int, arg1: int) → bool

Query whether the element is non-zero (in local or global storage). The parameters are site indices.

has_local(self: block.operator.OperatorArrayDesCre, arg0: int, arg1: int) → bool

Query whether the element is non-zero in local storage. The parameters are site indices.

local_element(self: block.operator.OperatorArrayDesCre, arg0: int, arg1: int) → block.operator.VectorStackSparseMatrix

Get an array of operators (for different spin quantum numbers) defined for the given site indices (in local storage).

local_element_linear(self: block.operator.OperatorArrayDesCre, arg0: int) → block.operator.VectorStackSparseMatrix

Get an array of operators (for different spin quantum numbers) defined for the given (flattened) linear index (in local storage).

local_indices

A 2d array contains the site indices of non-zero elements in local storage. It gives a map from flattened single index to multiple site indices (which is represented as an array).

n_global_nz

Number of non-zero elements in global storage.

n_local_nz

Number of non-zero elements in local storage.

op_string

Name of the type of operators contained in this array.

class block.operator.OperatorArrayDesCreComp(*args, **kwargs)

Bases: block.operator.OperatorArrayBase

An array of DesCreComp operators defined at different sites.

global_element_linear(self: block.operator.OperatorArrayDesCreComp, arg0: int) → block.operator.VectorStackSparseMatrix

Get an array of operators (for different spin quantum numbers) defined for the given (flattened) linear index (in global storage).

global_indices

A 1d array contains the site indices of non-zero elements (in local or global storage). It gives a map from flattened single index to multiple site indices. Then this array itself is flattened.

has_global(self: block.operator.OperatorArrayDesCreComp, arg0: int, arg1: int) → bool

Query whether the element is non-zero (in local or global storage). The parameters are site indices.

has_local(self: block.operator.OperatorArrayDesCreComp, arg0: int, arg1: int) → bool

Query whether the element is non-zero in local storage. The parameters are site indices.

local_element(self: block.operator.OperatorArrayDesCreComp, arg0: int, arg1: int) → block.operator.VectorStackSparseMatrix

Get an array of operators (for different spin quantum numbers) defined for the given site indices (in local storage).

local_element_linear(self: block.operator.OperatorArrayDesCreComp, arg0: int) → block.operator.VectorStackSparseMatrix

Get an array of operators (for different spin quantum numbers) defined for the given (flattened) linear index (in local storage).

local_indices

A 2d array contains the site indices of non-zero elements in local storage. It gives a map from flattened single index to multiple site indices (which is represented as an array).

n_global_nz

Number of non-zero elements in global storage.

n_local_nz

Number of non-zero elements in local storage.

op_string

Name of the type of operators contained in this array.

class block.operator.OperatorArrayDesDes(*args, **kwargs)

Bases: block.operator.OperatorArrayBase

An array of DesDes operators defined at different sites.

global_element_linear(self: block.operator.OperatorArrayDesDes, arg0: int) → block.operator.VectorStackSparseMatrix

Get an array of operators (for different spin quantum numbers) defined for the given (flattened) linear index (in global storage).

global_indices

A 1d array contains the site indices of non-zero elements (in local or global storage). It gives a map from flattened single index to multiple site indices. Then this array itself is flattened.

has_global(self: block.operator.OperatorArrayDesDes, arg0: int, arg1: int) → bool

Query whether the element is non-zero (in local or global storage). The parameters are site indices.

has_local(self: block.operator.OperatorArrayDesDes, arg0: int, arg1: int) → bool

Query whether the element is non-zero in local storage. The parameters are site indices.

local_element(self: block.operator.OperatorArrayDesDes, arg0: int, arg1: int) → block.operator.VectorStackSparseMatrix

Get an array of operators (for different spin quantum numbers) defined for the given site indices (in local storage).

local_element_linear(self: block.operator.OperatorArrayDesDes, arg0: int) → block.operator.VectorStackSparseMatrix

Get an array of operators (for different spin quantum numbers) defined for the given (flattened) linear index (in local storage).

local_indices

A 2d array contains the site indices of non-zero elements in local storage. It gives a map from flattened single index to multiple site indices (which is represented as an array).

n_global_nz

Number of non-zero elements in global storage.

n_local_nz

Number of non-zero elements in local storage.

op_string

Name of the type of operators contained in this array.

class block.operator.OperatorArrayDesDesComp(*args, **kwargs)

Bases: block.operator.OperatorArrayBase

An array of DesDesComp operators defined at different sites.

global_element_linear(self: block.operator.OperatorArrayDesDesComp, arg0: int) → block.operator.VectorStackSparseMatrix

Get an array of operators (for different spin quantum numbers) defined for the given (flattened) linear index (in global storage).

global_indices

A 1d array contains the site indices of non-zero elements (in local or global storage). It gives a map from flattened single index to multiple site indices. Then this array itself is flattened.

has_global(self: block.operator.OperatorArrayDesDesComp, arg0: int, arg1: int) → bool

Query whether the element is non-zero (in local or global storage). The parameters are site indices.

has_local(self: block.operator.OperatorArrayDesDesComp, arg0: int, arg1: int) → bool

Query whether the element is non-zero in local storage. The parameters are site indices.

local_element(self: block.operator.OperatorArrayDesDesComp, arg0: int, arg1: int) → block.operator.VectorStackSparseMatrix

Get an array of operators (for different spin quantum numbers) defined for the given site indices (in local storage).

local_element_linear(self: block.operator.OperatorArrayDesDesComp, arg0: int) → block.operator.VectorStackSparseMatrix

Get an array of operators (for different spin quantum numbers) defined for the given (flattened) linear index (in local storage).

local_indices

A 2d array contains the site indices of non-zero elements in local storage. It gives a map from flattened single index to multiple site indices (which is represented as an array).

n_global_nz

Number of non-zero elements in global storage.

n_local_nz

Number of non-zero elements in local storage.

op_string

Name of the type of operators contained in this array.

class block.operator.OperatorArrayHamiltonian(*args, **kwargs)

Bases: block.operator.OperatorArrayBase

An array of Hamiltonian operators defined at different sites.

global_element_linear(self: block.operator.OperatorArrayHamiltonian, arg0: int) → block.operator.VectorStackSparseMatrix

Get an array of operators (for different spin quantum numbers) defined for the given (flattened) linear index (in global storage).

global_indices

A 1d array contains the site indices of non-zero elements (in local or global storage). It gives a map from flattened single index to multiple site indices. Then this array itself is flattened.

has_global(self: block.operator.OperatorArrayHamiltonian) → bool

Query whether the element is non-zero (in local or global storage).

has_local(self: block.operator.OperatorArrayHamiltonian) → bool

Query whether the element is non-zero in local storage.

local_element(self: block.operator.OperatorArrayHamiltonian) → block.operator.VectorStackSparseMatrix

Get the array of operators (for different spin quantum numbers, in local storage).

local_element_linear(self: block.operator.OperatorArrayHamiltonian, arg0: int) → block.operator.VectorStackSparseMatrix

Get an array of operators (for different spin quantum numbers) defined for the given (flattened) linear index (in local storage).

local_indices

A 2d array contains the site indices of non-zero elements in local storage. It gives a map from flattened single index to multiple site indices (which is represented as an array).

n_global_nz

Number of non-zero elements in global storage.

n_local_nz

Number of non-zero elements in local storage.

op_string

Name of the type of operators contained in this array.

class block.operator.OperatorArrayOverlap(*args, **kwargs)

Bases: block.operator.OperatorArrayBase

An array of Overlap operators defined at different sites.

global_element_linear(self: block.operator.OperatorArrayOverlap, arg0: int) → block.operator.VectorStackSparseMatrix

Get an array of operators (for different spin quantum numbers) defined for the given (flattened) linear index (in global storage).

global_indices

A 1d array contains the site indices of non-zero elements (in local or global storage). It gives a map from flattened single index to multiple site indices. Then this array itself is flattened.

has_global(self: block.operator.OperatorArrayOverlap) → bool

Query whether the element is non-zero (in local or global storage).

has_local(self: block.operator.OperatorArrayOverlap) → bool

Query whether the element is non-zero in local storage.

local_element(self: block.operator.OperatorArrayOverlap) → block.operator.VectorStackSparseMatrix

Get the array of operators (for different spin quantum numbers, in local storage).

local_element_linear(self: block.operator.OperatorArrayOverlap, arg0: int) → block.operator.VectorStackSparseMatrix

Get an array of operators (for different spin quantum numbers) defined for the given (flattened) linear index (in local storage).

local_indices

A 2d array contains the site indices of non-zero elements in local storage. It gives a map from flattened single index to multiple site indices (which is represented as an array).

n_global_nz

Number of non-zero elements in global storage.

n_local_nz

Number of non-zero elements in local storage.

op_string

Name of the type of operators contained in this array.

class block.operator.OperatorCre(*args, **kwargs)

Bases: block.operator.StackSparseMatrix

Block-sparse matrix. Non-zero blocks are identified by symmetry (quantum numbers) requirements and stored as StackMatrix objects

class block.operator.OperatorCreCre(*args, **kwargs)

Bases: block.operator.StackSparseMatrix

Block-sparse matrix. Non-zero blocks are identified by symmetry (quantum numbers) requirements and stored as StackMatrix objects

class block.operator.OperatorCreCreComp(*args, **kwargs)

Bases: block.operator.StackSparseMatrix

Block-sparse matrix. Non-zero blocks are identified by symmetry (quantum numbers) requirements and stored as StackMatrix objects

class block.operator.OperatorCreCreDesComp(*args, **kwargs)

Bases: block.operator.StackSparseMatrix

Block-sparse matrix. Non-zero blocks are identified by symmetry (quantum numbers) requirements and stored as StackMatrix objects

class block.operator.OperatorCreDes(*args, **kwargs)

Bases: block.operator.StackSparseMatrix

Block-sparse matrix. Non-zero blocks are identified by symmetry (quantum numbers) requirements and stored as StackMatrix objects

class block.operator.OperatorCreDesComp(*args, **kwargs)

Bases: block.operator.StackSparseMatrix

Block-sparse matrix. Non-zero blocks are identified by symmetry (quantum numbers) requirements and stored as StackMatrix objects

class block.operator.OperatorCreDesDesComp(*args, **kwargs)

Bases: block.operator.StackSparseMatrix

Block-sparse matrix. Non-zero blocks are identified by symmetry (quantum numbers) requirements and stored as StackMatrix objects

class block.operator.OperatorDes(*args, **kwargs)

Bases: block.operator.StackSparseMatrix

Block-sparse matrix. Non-zero blocks are identified by symmetry (quantum numbers) requirements and stored as StackMatrix objects

class block.operator.OperatorDesCre(*args, **kwargs)

Bases: block.operator.StackSparseMatrix

Block-sparse matrix. Non-zero blocks are identified by symmetry (quantum numbers) requirements and stored as StackMatrix objects

class block.operator.OperatorDesCreComp(*args, **kwargs)

Bases: block.operator.StackSparseMatrix

Block-sparse matrix. Non-zero blocks are identified by symmetry (quantum numbers) requirements and stored as StackMatrix objects

class block.operator.OperatorDesDes(*args, **kwargs)

Bases: block.operator.StackSparseMatrix

Block-sparse matrix. Non-zero blocks are identified by symmetry (quantum numbers) requirements and stored as StackMatrix objects

class block.operator.OperatorDesDesComp(*args, **kwargs)

Bases: block.operator.StackSparseMatrix

Block-sparse matrix. Non-zero blocks are identified by symmetry (quantum numbers) requirements and stored as StackMatrix objects

class block.operator.OperatorHamiltonian(*args, **kwargs)

Bases: block.operator.StackSparseMatrix

Block-sparse matrix. Non-zero blocks are identified by symmetry (quantum numbers) requirements and stored as StackMatrix objects

class block.operator.OperatorOverlap(*args, **kwargs)

Bases: block.operator.StackSparseMatrix

Block-sparse matrix. Non-zero blocks are identified by symmetry (quantum numbers) requirements and stored as StackMatrix objects

class block.operator.StackMatrix(*args, **kwargs)

Bases: object

Very simple Matrix class that provides a Matrix type interface for a double array. It does not own its own data.

Note that the C++ class used indices counting from 1. Here we count from 0. Row-major (C) storage.

cols
ref

A numpy.ndarray reference.

rows
class block.operator.StackSparseMatrix(*args, **kwargs)

Bases: object

Block-sparse matrix. Non-zero blocks are identified by symmetry (quantum numbers) requirements and stored as StackMatrix objects

allocate(self: block.operator.StackSparseMatrix, arg0: block.symmetry.VectorStateInfo) → None
allocate_memory(self: block.operator.StackSparseMatrix, arg0: int) → None
allowed(self: block.operator.StackSparseMatrix, arg0: int, arg1: int) → bool
clear(self: block.operator.StackSparseMatrix) → None
cols
conjugacy
deallocate(self: block.operator.StackSparseMatrix) → None
deep_clear_copy(self: block.operator.StackSparseMatrix, arg0: block.operator.StackSparseMatrix) → None
deep_copy(self: block.operator.StackSparseMatrix, arg0: block.operator.StackSparseMatrix) → None
delta_quantum

Allowed change of quantum numbers between states.

fermion
get_scaling(self: block.operator.StackSparseMatrix, leftq: block.symmetry.SpinQuantum, rightq: block.symmetry.SpinQuantum) → float
initialized
map_to_non_zero_blocks

A map from pair of bra and ket indices, to the index in StackSparseMatrix.non_zero_blocks.

non_zero_blocks

A list of non zero blocks. Each element in the list is a pair of a pair of bra and ket indices, and StackMatrix.

operator_element(self: block.operator.StackSparseMatrix, arg0: int, arg1: int) → block.operator.StackMatrix
ref

A numpy.ndarray reference.

rows
shallow_copy(self: block.operator.StackSparseMatrix, arg0: block.operator.StackSparseMatrix) → None
symm_scale
total_memory
transpose(self: block.operator.StackSparseMatrix) → SpinAdapted::StackTransposeview
class block.operator.StackTransposeView(*args, **kwargs)

Bases: block.operator.StackSparseMatrix

Block-sparse matrix. Non-zero blocks are identified by symmetry (quantum numbers) requirements and stored as StackMatrix objects

class block.operator.VectorCre(*args, **kwargs)

Bases: object

append(self: block.operator.VectorCre, x: block.operator.OperatorCre) → None

Add an item to the end of the list

count(self: block.operator.VectorCre, x: block.operator.OperatorCre) → int

Return the number of times x appears in the list

extend(*args, **kwargs)

Overloaded function.

  1. extend(self: block.operator.VectorCre, L: block.operator.VectorCre) -> None

Extend the list by appending all the items in the given list

  1. extend(self: block.operator.VectorCre, L: iterable) -> None

Extend the list by appending all the items in the given list

insert(self: block.operator.VectorCre, i: int, x: block.operator.OperatorCre) → None

Insert an item at a given position.

pop(*args, **kwargs)

Overloaded function.

  1. pop(self: block.operator.VectorCre) -> block.operator.OperatorCre

Remove and return the last item

  1. pop(self: block.operator.VectorCre, i: int) -> block.operator.OperatorCre

Remove and return the item at index i

remove(self: block.operator.VectorCre, x: block.operator.OperatorCre) → None

Remove the first item from the list whose value is x. It is an error if there is no such item.

class block.operator.VectorCreCre(*args, **kwargs)

Bases: object

append(self: block.operator.VectorCreCre, x: block.operator.OperatorCreCre) → None

Add an item to the end of the list

count(self: block.operator.VectorCreCre, x: block.operator.OperatorCreCre) → int

Return the number of times x appears in the list

extend(*args, **kwargs)

Overloaded function.

  1. extend(self: block.operator.VectorCreCre, L: block.operator.VectorCreCre) -> None

Extend the list by appending all the items in the given list

  1. extend(self: block.operator.VectorCreCre, L: iterable) -> None

Extend the list by appending all the items in the given list

insert(self: block.operator.VectorCreCre, i: int, x: block.operator.OperatorCreCre) → None

Insert an item at a given position.

pop(*args, **kwargs)

Overloaded function.

  1. pop(self: block.operator.VectorCreCre) -> block.operator.OperatorCreCre

Remove and return the last item

  1. pop(self: block.operator.VectorCreCre, i: int) -> block.operator.OperatorCreCre

Remove and return the item at index i

remove(self: block.operator.VectorCreCre, x: block.operator.OperatorCreCre) → None

Remove the first item from the list whose value is x. It is an error if there is no such item.

class block.operator.VectorCreCreComp(*args, **kwargs)

Bases: object

append(self: block.operator.VectorCreCreComp, x: block.operator.OperatorCreCreComp) → None

Add an item to the end of the list

count(self: block.operator.VectorCreCreComp, x: block.operator.OperatorCreCreComp) → int

Return the number of times x appears in the list

extend(*args, **kwargs)

Overloaded function.

  1. extend(self: block.operator.VectorCreCreComp, L: block.operator.VectorCreCreComp) -> None

Extend the list by appending all the items in the given list

  1. extend(self: block.operator.VectorCreCreComp, L: iterable) -> None

Extend the list by appending all the items in the given list

insert(self: block.operator.VectorCreCreComp, i: int, x: block.operator.OperatorCreCreComp) → None

Insert an item at a given position.

pop(*args, **kwargs)

Overloaded function.

  1. pop(self: block.operator.VectorCreCreComp) -> block.operator.OperatorCreCreComp

Remove and return the last item

  1. pop(self: block.operator.VectorCreCreComp, i: int) -> block.operator.OperatorCreCreComp

Remove and return the item at index i

remove(self: block.operator.VectorCreCreComp, x: block.operator.OperatorCreCreComp) → None

Remove the first item from the list whose value is x. It is an error if there is no such item.

class block.operator.VectorCreCreDesComp(*args, **kwargs)

Bases: object

append(self: block.operator.VectorCreCreDesComp, x: block.operator.OperatorCreCreDesComp) → None

Add an item to the end of the list

count(self: block.operator.VectorCreCreDesComp, x: block.operator.OperatorCreCreDesComp) → int

Return the number of times x appears in the list

extend(*args, **kwargs)

Overloaded function.

  1. extend(self: block.operator.VectorCreCreDesComp, L: block.operator.VectorCreCreDesComp) -> None

Extend the list by appending all the items in the given list

  1. extend(self: block.operator.VectorCreCreDesComp, L: iterable) -> None

Extend the list by appending all the items in the given list

insert(self: block.operator.VectorCreCreDesComp, i: int, x: block.operator.OperatorCreCreDesComp) → None

Insert an item at a given position.

pop(*args, **kwargs)

Overloaded function.

  1. pop(self: block.operator.VectorCreCreDesComp) -> block.operator.OperatorCreCreDesComp

Remove and return the last item

  1. pop(self: block.operator.VectorCreCreDesComp, i: int) -> block.operator.OperatorCreCreDesComp

Remove and return the item at index i

remove(self: block.operator.VectorCreCreDesComp, x: block.operator.OperatorCreCreDesComp) → None

Remove the first item from the list whose value is x. It is an error if there is no such item.

class block.operator.VectorCreDes(*args, **kwargs)

Bases: object

append(self: block.operator.VectorCreDes, x: block.operator.OperatorCreDes) → None

Add an item to the end of the list

count(self: block.operator.VectorCreDes, x: block.operator.OperatorCreDes) → int

Return the number of times x appears in the list

extend(*args, **kwargs)

Overloaded function.

  1. extend(self: block.operator.VectorCreDes, L: block.operator.VectorCreDes) -> None

Extend the list by appending all the items in the given list

  1. extend(self: block.operator.VectorCreDes, L: iterable) -> None

Extend the list by appending all the items in the given list

insert(self: block.operator.VectorCreDes, i: int, x: block.operator.OperatorCreDes) → None

Insert an item at a given position.

pop(*args, **kwargs)

Overloaded function.

  1. pop(self: block.operator.VectorCreDes) -> block.operator.OperatorCreDes

Remove and return the last item

  1. pop(self: block.operator.VectorCreDes, i: int) -> block.operator.OperatorCreDes

Remove and return the item at index i

remove(self: block.operator.VectorCreDes, x: block.operator.OperatorCreDes) → None

Remove the first item from the list whose value is x. It is an error if there is no such item.

class block.operator.VectorCreDesComp(*args, **kwargs)

Bases: object

append(self: block.operator.VectorCreDesComp, x: block.operator.OperatorCreDesComp) → None

Add an item to the end of the list

count(self: block.operator.VectorCreDesComp, x: block.operator.OperatorCreDesComp) → int

Return the number of times x appears in the list

extend(*args, **kwargs)

Overloaded function.

  1. extend(self: block.operator.VectorCreDesComp, L: block.operator.VectorCreDesComp) -> None

Extend the list by appending all the items in the given list

  1. extend(self: block.operator.VectorCreDesComp, L: iterable) -> None

Extend the list by appending all the items in the given list

insert(self: block.operator.VectorCreDesComp, i: int, x: block.operator.OperatorCreDesComp) → None

Insert an item at a given position.

pop(*args, **kwargs)

Overloaded function.

  1. pop(self: block.operator.VectorCreDesComp) -> block.operator.OperatorCreDesComp

Remove and return the last item

  1. pop(self: block.operator.VectorCreDesComp, i: int) -> block.operator.OperatorCreDesComp

Remove and return the item at index i

remove(self: block.operator.VectorCreDesComp, x: block.operator.OperatorCreDesComp) → None

Remove the first item from the list whose value is x. It is an error if there is no such item.

class block.operator.VectorCreDesDesComp(*args, **kwargs)

Bases: object

append(self: block.operator.VectorCreDesDesComp, x: block.operator.OperatorCreDesDesComp) → None

Add an item to the end of the list

count(self: block.operator.VectorCreDesDesComp, x: block.operator.OperatorCreDesDesComp) → int

Return the number of times x appears in the list

extend(*args, **kwargs)

Overloaded function.

  1. extend(self: block.operator.VectorCreDesDesComp, L: block.operator.VectorCreDesDesComp) -> None

Extend the list by appending all the items in the given list

  1. extend(self: block.operator.VectorCreDesDesComp, L: iterable) -> None

Extend the list by appending all the items in the given list

insert(self: block.operator.VectorCreDesDesComp, i: int, x: block.operator.OperatorCreDesDesComp) → None

Insert an item at a given position.

pop(*args, **kwargs)

Overloaded function.

  1. pop(self: block.operator.VectorCreDesDesComp) -> block.operator.OperatorCreDesDesComp

Remove and return the last item

  1. pop(self: block.operator.VectorCreDesDesComp, i: int) -> block.operator.OperatorCreDesDesComp

Remove and return the item at index i

remove(self: block.operator.VectorCreDesDesComp, x: block.operator.OperatorCreDesDesComp) → None

Remove the first item from the list whose value is x. It is an error if there is no such item.

class block.operator.VectorDes(*args, **kwargs)

Bases: object

append(self: block.operator.VectorDes, x: block.operator.OperatorDes) → None

Add an item to the end of the list

count(self: block.operator.VectorDes, x: block.operator.OperatorDes) → int

Return the number of times x appears in the list

extend(*args, **kwargs)

Overloaded function.

  1. extend(self: block.operator.VectorDes, L: block.operator.VectorDes) -> None

Extend the list by appending all the items in the given list

  1. extend(self: block.operator.VectorDes, L: iterable) -> None

Extend the list by appending all the items in the given list

insert(self: block.operator.VectorDes, i: int, x: block.operator.OperatorDes) → None

Insert an item at a given position.

pop(*args, **kwargs)

Overloaded function.

  1. pop(self: block.operator.VectorDes) -> block.operator.OperatorDes

Remove and return the last item

  1. pop(self: block.operator.VectorDes, i: int) -> block.operator.OperatorDes

Remove and return the item at index i

remove(self: block.operator.VectorDes, x: block.operator.OperatorDes) → None

Remove the first item from the list whose value is x. It is an error if there is no such item.

class block.operator.VectorDesCre(*args, **kwargs)

Bases: object

append(self: block.operator.VectorDesCre, x: block.operator.OperatorDesCre) → None

Add an item to the end of the list

count(self: block.operator.VectorDesCre, x: block.operator.OperatorDesCre) → int

Return the number of times x appears in the list

extend(*args, **kwargs)

Overloaded function.

  1. extend(self: block.operator.VectorDesCre, L: block.operator.VectorDesCre) -> None

Extend the list by appending all the items in the given list

  1. extend(self: block.operator.VectorDesCre, L: iterable) -> None

Extend the list by appending all the items in the given list

insert(self: block.operator.VectorDesCre, i: int, x: block.operator.OperatorDesCre) → None

Insert an item at a given position.

pop(*args, **kwargs)

Overloaded function.

  1. pop(self: block.operator.VectorDesCre) -> block.operator.OperatorDesCre

Remove and return the last item

  1. pop(self: block.operator.VectorDesCre, i: int) -> block.operator.OperatorDesCre

Remove and return the item at index i

remove(self: block.operator.VectorDesCre, x: block.operator.OperatorDesCre) → None

Remove the first item from the list whose value is x. It is an error if there is no such item.

class block.operator.VectorDesCreComp(*args, **kwargs)

Bases: object

append(self: block.operator.VectorDesCreComp, x: block.operator.OperatorDesCreComp) → None

Add an item to the end of the list

count(self: block.operator.VectorDesCreComp, x: block.operator.OperatorDesCreComp) → int

Return the number of times x appears in the list

extend(*args, **kwargs)

Overloaded function.

  1. extend(self: block.operator.VectorDesCreComp, L: block.operator.VectorDesCreComp) -> None

Extend the list by appending all the items in the given list

  1. extend(self: block.operator.VectorDesCreComp, L: iterable) -> None

Extend the list by appending all the items in the given list

insert(self: block.operator.VectorDesCreComp, i: int, x: block.operator.OperatorDesCreComp) → None

Insert an item at a given position.

pop(*args, **kwargs)

Overloaded function.

  1. pop(self: block.operator.VectorDesCreComp) -> block.operator.OperatorDesCreComp

Remove and return the last item

  1. pop(self: block.operator.VectorDesCreComp, i: int) -> block.operator.OperatorDesCreComp

Remove and return the item at index i

remove(self: block.operator.VectorDesCreComp, x: block.operator.OperatorDesCreComp) → None

Remove the first item from the list whose value is x. It is an error if there is no such item.

class block.operator.VectorDesDes(*args, **kwargs)

Bases: object

append(self: block.operator.VectorDesDes, x: block.operator.OperatorDesDes) → None

Add an item to the end of the list

count(self: block.operator.VectorDesDes, x: block.operator.OperatorDesDes) → int

Return the number of times x appears in the list

extend(*args, **kwargs)

Overloaded function.

  1. extend(self: block.operator.VectorDesDes, L: block.operator.VectorDesDes) -> None

Extend the list by appending all the items in the given list

  1. extend(self: block.operator.VectorDesDes, L: iterable) -> None

Extend the list by appending all the items in the given list

insert(self: block.operator.VectorDesDes, i: int, x: block.operator.OperatorDesDes) → None

Insert an item at a given position.

pop(*args, **kwargs)

Overloaded function.

  1. pop(self: block.operator.VectorDesDes) -> block.operator.OperatorDesDes

Remove and return the last item

  1. pop(self: block.operator.VectorDesDes, i: int) -> block.operator.OperatorDesDes

Remove and return the item at index i

remove(self: block.operator.VectorDesDes, x: block.operator.OperatorDesDes) → None

Remove the first item from the list whose value is x. It is an error if there is no such item.

class block.operator.VectorDesDesComp(*args, **kwargs)

Bases: object

append(self: block.operator.VectorDesDesComp, x: block.operator.OperatorDesDesComp) → None

Add an item to the end of the list

count(self: block.operator.VectorDesDesComp, x: block.operator.OperatorDesDesComp) → int

Return the number of times x appears in the list

extend(*args, **kwargs)

Overloaded function.

  1. extend(self: block.operator.VectorDesDesComp, L: block.operator.VectorDesDesComp) -> None

Extend the list by appending all the items in the given list

  1. extend(self: block.operator.VectorDesDesComp, L: iterable) -> None

Extend the list by appending all the items in the given list

insert(self: block.operator.VectorDesDesComp, i: int, x: block.operator.OperatorDesDesComp) → None

Insert an item at a given position.

pop(*args, **kwargs)

Overloaded function.

  1. pop(self: block.operator.VectorDesDesComp) -> block.operator.OperatorDesDesComp

Remove and return the last item

  1. pop(self: block.operator.VectorDesDesComp, i: int) -> block.operator.OperatorDesDesComp

Remove and return the item at index i

remove(self: block.operator.VectorDesDesComp, x: block.operator.OperatorDesDesComp) → None

Remove the first item from the list whose value is x. It is an error if there is no such item.

class block.operator.VectorHamiltonian(*args, **kwargs)

Bases: object

append(self: block.operator.VectorHamiltonian, x: block.operator.OperatorHamiltonian) → None

Add an item to the end of the list

count(self: block.operator.VectorHamiltonian, x: block.operator.OperatorHamiltonian) → int

Return the number of times x appears in the list

extend(*args, **kwargs)

Overloaded function.

  1. extend(self: block.operator.VectorHamiltonian, L: block.operator.VectorHamiltonian) -> None

Extend the list by appending all the items in the given list

  1. extend(self: block.operator.VectorHamiltonian, L: iterable) -> None

Extend the list by appending all the items in the given list

insert(self: block.operator.VectorHamiltonian, i: int, x: block.operator.OperatorHamiltonian) → None

Insert an item at a given position.

pop(*args, **kwargs)

Overloaded function.

  1. pop(self: block.operator.VectorHamiltonian) -> block.operator.OperatorHamiltonian

Remove and return the last item

  1. pop(self: block.operator.VectorHamiltonian, i: int) -> block.operator.OperatorHamiltonian

Remove and return the item at index i

remove(self: block.operator.VectorHamiltonian, x: block.operator.OperatorHamiltonian) → None

Remove the first item from the list whose value is x. It is an error if there is no such item.

class block.operator.VectorNonZeroStackMatrix(*args, **kwargs)

Bases: object

append(self: block.operator.VectorNonZeroStackMatrix, x: Tuple[Tuple[int, int], block.operator.StackMatrix]) → None

Add an item to the end of the list

extend(*args, **kwargs)

Overloaded function.

  1. extend(self: block.operator.VectorNonZeroStackMatrix, L: block.operator.VectorNonZeroStackMatrix) -> None

Extend the list by appending all the items in the given list

  1. extend(self: block.operator.VectorNonZeroStackMatrix, L: iterable) -> None

Extend the list by appending all the items in the given list

insert(self: block.operator.VectorNonZeroStackMatrix, i: int, x: Tuple[Tuple[int, int], block.operator.StackMatrix]) → None

Insert an item at a given position.

pop(*args, **kwargs)

Overloaded function.

  1. pop(self: block.operator.VectorNonZeroStackMatrix) -> Tuple[Tuple[int, int], block.operator.StackMatrix]

Remove and return the last item

  1. pop(self: block.operator.VectorNonZeroStackMatrix, i: int) -> Tuple[Tuple[int, int], block.operator.StackMatrix]

Remove and return the item at index i

class block.operator.VectorOperatorArrayBase(*args, **kwargs)

Bases: object

append(self: block.operator.VectorOperatorArrayBase, x: block.operator.OperatorArrayBase) → None

Add an item to the end of the list

count(self: block.operator.VectorOperatorArrayBase, x: block.operator.OperatorArrayBase) → int

Return the number of times x appears in the list

extend(*args, **kwargs)

Overloaded function.

  1. extend(self: block.operator.VectorOperatorArrayBase, L: block.operator.VectorOperatorArrayBase) -> None

Extend the list by appending all the items in the given list

  1. extend(self: block.operator.VectorOperatorArrayBase, L: iterable) -> None

Extend the list by appending all the items in the given list

insert(self: block.operator.VectorOperatorArrayBase, i: int, x: block.operator.OperatorArrayBase) → None

Insert an item at a given position.

pop(*args, **kwargs)

Overloaded function.

  1. pop(self: block.operator.VectorOperatorArrayBase) -> block.operator.OperatorArrayBase

Remove and return the last item

  1. pop(self: block.operator.VectorOperatorArrayBase, i: int) -> block.operator.OperatorArrayBase

Remove and return the item at index i

remove(self: block.operator.VectorOperatorArrayBase, x: block.operator.OperatorArrayBase) → None

Remove the first item from the list whose value is x. It is an error if there is no such item.

class block.operator.VectorOverlap(*args, **kwargs)

Bases: object

append(self: block.operator.VectorOverlap, x: block.operator.OperatorOverlap) → None

Add an item to the end of the list

count(self: block.operator.VectorOverlap, x: block.operator.OperatorOverlap) → int

Return the number of times x appears in the list

extend(*args, **kwargs)

Overloaded function.

  1. extend(self: block.operator.VectorOverlap, L: block.operator.VectorOverlap) -> None

Extend the list by appending all the items in the given list

  1. extend(self: block.operator.VectorOverlap, L: iterable) -> None

Extend the list by appending all the items in the given list

insert(self: block.operator.VectorOverlap, i: int, x: block.operator.OperatorOverlap) → None

Insert an item at a given position.

pop(*args, **kwargs)

Overloaded function.

  1. pop(self: block.operator.VectorOverlap) -> block.operator.OperatorOverlap

Remove and return the last item

  1. pop(self: block.operator.VectorOverlap, i: int) -> block.operator.OperatorOverlap

Remove and return the item at index i

remove(self: block.operator.VectorOverlap, x: block.operator.OperatorOverlap) → None

Remove the first item from the list whose value is x. It is an error if there is no such item.

class block.operator.VectorStackSparseMatrix(*args, **kwargs)

Bases: object

append(self: block.operator.VectorStackSparseMatrix, x: block.operator.StackSparseMatrix) → None

Add an item to the end of the list

count(self: block.operator.VectorStackSparseMatrix, x: block.operator.StackSparseMatrix) → int

Return the number of times x appears in the list

extend(*args, **kwargs)

Overloaded function.

  1. extend(self: block.operator.VectorStackSparseMatrix, L: block.operator.VectorStackSparseMatrix) -> None

Extend the list by appending all the items in the given list

  1. extend(self: block.operator.VectorStackSparseMatrix, L: iterable) -> None

Extend the list by appending all the items in the given list

insert(self: block.operator.VectorStackSparseMatrix, i: int, x: block.operator.StackSparseMatrix) → None

Insert an item at a given position.

pop(*args, **kwargs)

Overloaded function.

  1. pop(self: block.operator.VectorStackSparseMatrix) -> block.operator.StackSparseMatrix

Remove and return the last item

  1. pop(self: block.operator.VectorStackSparseMatrix, i: int) -> block.operator.StackSparseMatrix

Remove and return the item at index i

remove(self: block.operator.VectorStackSparseMatrix, x: block.operator.StackSparseMatrix) → None

Remove the first item from the list whose value is x. It is an error if there is no such item.

class block.operator.VectorWavefunction(*args, **kwargs)

Bases: object

append(self: block.operator.VectorWavefunction, x: block.operator.Wavefunction) → None

Add an item to the end of the list

extend(*args, **kwargs)

Overloaded function.

  1. extend(self: block.operator.VectorWavefunction, L: block.operator.VectorWavefunction) -> None

Extend the list by appending all the items in the given list

  1. extend(self: block.operator.VectorWavefunction, L: iterable) -> None

Extend the list by appending all the items in the given list

insert(self: block.operator.VectorWavefunction, i: int, x: block.operator.Wavefunction) → None

Insert an item at a given position.

pop(*args, **kwargs)

Overloaded function.

  1. pop(self: block.operator.VectorWavefunction) -> block.operator.Wavefunction

Remove and return the last item

  1. pop(self: block.operator.VectorWavefunction, i: int) -> block.operator.Wavefunction

Remove and return the item at index i

class block.operator.Wavefunction(*args, **kwargs)

Bases: block.operator.StackSparseMatrix

Block-sparse matrix. Non-zero blocks are identified by symmetry (quantum numbers) requirements and stored as StackMatrix objects

copy_data(self: block.operator.Wavefunction, arg0: block.operator.Wavefunction) → None
initialize(self: block.operator.Wavefunction, arg0: block.symmetry.VectorSpinQuantum, arg1: block.symmetry.StateInfo, arg2: block.symmetry.StateInfo, arg3: bool) → None
initialize_from(self: block.operator.Wavefunction, arg0: block.operator.Wavefunction) → None
onedot
save_wavefunction_info(self: block.operator.Wavefunction, arg0: block.symmetry.StateInfo, arg1: block.VectorInt, arg2: int) → None
block.operator.multiply_with_own_transpose(arg0: block.operator.StackSparseMatrix, arg1: block.operator.StackSparseMatrix, arg2: float) → None