OperatorDense<complex>
Class representing a spin-1/2 dense operator. The operator is parametrized with a dense matrix and the site indices. The matrix dimension must be equal to , where is the number of sites the operator acts on.
Factories
operator_dense(const ComplexMatrix matrix, const List<integer> sites) -> OperatorDense<complex>
Returns a spin-1/2 OperatorDense parametrized by the given matrix.
Parameters
- matrix: The matrix parametrizing the operator.
- sites: Vector of site indices where the operator acts.
operator_dense(const ComplexMatrix matrix, integer site) -> OperatorDense<complex>
Returns a spin-1/2 OperatorDense parametrized by the given matrix.
Parameters
- matrix: The matrix parametrizing the operator.
- site: The site index where the operator acts.
Symbols
| Name | Description |
|---|---|
= | Assignment operator for spin-1/2 OperatorDense. |