Skip to main content

operator_sparse

Overloads

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

operator_sparse(const RealSparseMatrix matrix, integer site) -> SpinHalfOperator

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) -> SpinHalfOperator

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) -> SpinHalfOperator

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) -> SpinHalfOperator

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.