operator_generic
Overloads
| Name | Description |
|---|---|
operator_generic(const OperatorGenericFunction<ComplexMatrix, IntegerArray> function, const List<integer> sites) -> OperatorGeneric<complex> | Creates a spin-1/2 OperatorGeneric from a string representation. |
operator_generic(const OperatorGenericFunction<ComplexMatrix, IntegerArray> function, const List<integer> sites, as_complex type_tag) -> OperatorGeneric<complex> | Creates a spin-1/2 OperatorGeneric from a string representation. |
operator_generic(const OperatorGenericFunction<RealMatrix, IntegerArray> function, const List<integer> sites, as_real type_tag) -> OperatorGeneric<real> | Creates a spin-1/2 OperatorGeneric from a string representation. |
operator_generic(const OperatorGenericFunction<ComplexMatrix, IntegerArray> function, const List<integer> sites) -> OperatorGeneric<complex>
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<ComplexMatrix, IntegerArray> function, const List<integer> sites, as_complex type_tag) -> OperatorGeneric<complex>
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<RealMatrix, IntegerArray> function, const List<integer> sites, as_real type_tag) -> OperatorGeneric<real>
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.