Skip to main content

operator_dense

Overloads

NameDescription
operator_dense(const ComplexMatrix matrix, const List<integer> sites) -> OperatorDense<complex>Returns a spin-1/2 OperatorDense parametrized by the given matrix.
operator_dense(const ComplexMatrix matrix, integer site) -> OperatorDense<complex>Returns a spin-1/2 OperatorDense parametrized by the given matrix.
operator_dense(const RealMatrix matrix, const List<integer> sites) -> OperatorDense<real>Returns a spin-1/2 OperatorDense parametrized by the given matrix.
operator_dense(const RealMatrix matrix, integer site) -> OperatorDense<real>Returns a spin-1/2 OperatorDense parametrized by the given matrix.

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.

operator_dense(const RealMatrix matrix, const List<integer> sites) -> OperatorDense<real>

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 RealMatrix matrix, integer site) -> OperatorDense<real>

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.