Skip to main content

operator_sparse

Overloads

NameDescription
operator_sparse(const RealSparseMatrix matrix, integer site) -> OperatorSparse<real>Returns a spin-1/2 OperatorSparse parametrized by the given matrix.
operator_sparse(const RealSparseMatrix matrix, const List<integer> sites) -> OperatorSparse<real>Returns a spin-1/2 OperatorSparse parametrized by the given matrix.
operator_sparse(const ComplexSparseMatrix matrix, integer site) -> OperatorSparse<complex>Returns a spin-1/2 OperatorSparse parametrized by the given matrix.
operator_sparse(const ComplexSparseMatrix matrix, const List<integer> sites) -> OperatorSparse<complex>Returns a spin-1/2 OperatorSparse parametrized by the given matrix.

operator_sparse(const RealSparseMatrix matrix, integer site) -> OperatorSparse<real>

Returns a spin-1/2 OperatorSparse parametrized by the given matrix.

Parameters

  • matrix: The matrix parametrizing the operator.
  • site: The site index where the operator acts.

operator_sparse(const RealSparseMatrix matrix, const List<integer> sites) -> OperatorSparse<real>

Returns a spin-1/2 OperatorSparse parametrized by the given matrix.

Parameters

  • matrix: The matrix parametrizing the operator.
  • sites: Vector of site indices where the operator acts.

operator_sparse(const ComplexSparseMatrix matrix, integer site) -> OperatorSparse<complex>

Returns a spin-1/2 OperatorSparse parametrized by the given matrix.

Parameters

  • matrix: The matrix parametrizing the operator.
  • site: The site index where the operator acts.

operator_sparse(const ComplexSparseMatrix matrix, const List<integer> sites) -> OperatorSparse<complex>

Returns a spin-1/2 OperatorSparse parametrized by the given matrix.

Parameters

  • matrix: The matrix parametrizing the operator.
  • sites: Vector of site indices where the operator acts.