Skip to main content

operator_generic

Overloads

NameDescription
operator_generic(const OperatorGenericFunction<ComplexMatrix, IntegerArray> function, const List<integer> sites) -> SpinHalfOperatorCreates a spin-1/2 OperatorGeneric from a string representation.
operator_generic(const OperatorGenericFunction<RealMatrix, IntegerArray> function, const List<integer> sites, as_real type_tag) -> SpinHalfOperatorCreates a spin-1/2 OperatorGeneric from a string representation.
operator_generic(const OperatorGenericFunction<ComplexMatrix, IntegerArray> function, const List<integer> sites, as_complex type_tag) -> SpinHalfOperatorCreates a spin-1/2 OperatorGeneric from a string representation.

operator_generic(const OperatorGenericFunction<ComplexMatrix, IntegerArray> function, const List<integer> sites) -> SpinHalfOperator

Creates a spin-1/2 OperatorGeneric from a string representation.

Parameters

  • function: A function taking a vector and an array of indices.
  • sites: Vector of site indices where the operator acts.

operator_generic(const OperatorGenericFunction<RealMatrix, IntegerArray> function, const List<integer> sites, as_real type_tag) -> SpinHalfOperator

Creates a spin-1/2 OperatorGeneric from a string representation.

Parameters

  • function: A function taking a vector and an array of indices.
  • sites: Vector of site indices where the operator acts.
  • type_tag: A global constant tagging the object type.

operator_generic(const OperatorGenericFunction<ComplexMatrix, IntegerArray> function, const List<integer> sites, as_complex type_tag) -> SpinHalfOperator

Creates a spin-1/2 OperatorGeneric from a string representation.

Parameters

  • function: A function taking a vector and an array of indices.
  • sites: Vector of site indices where the operator acts.
  • type_tag: A global constant tagging the object type.