netket.operator.SumOperator¶
-
class
netket.operator.
SumOperator
(*operators, coefficients=1.0, dtype=None)¶ Bases:
netket.operator.ContinuousOperator
This class implements the action of the _expect_kernel()-method of ContinuousOperator for a sum of ContinuousOperator objects.
- Inheritance
-
__init__
(*operators, coefficients=1.0, dtype=None)[source]¶ Returns the action of a sum of local operators. :type operators:
List
:param operators: A list of ContinuousOperator objects :type coefficients:Union
[float
,List
[float
]] :param coefficients: A coefficient for each ContinuousOperator object :type dtype:Optional
[Any
] :param dtype: Data type of the matrix elements. Defaults to np.float64
- Attributes
-
H
¶ Returns the Conjugate-Transposed operator
- Return type
-
T
¶ Returns the transposed operator
- Return type
-
hilbert
¶ The hilbert space associated to this operator.
- Return type
-
is_hermitian
¶
-
- Methods
-
collect
()¶ Returns a guranteed concrete instancce of an operator.
As some operations on operators return lazy wrapperes (such as transpose, hermitian conjugate…), this is used to obtain a guaranteed non-lazy operator.
- Return type
-
conj
(*, concrete=False)¶ - Return type
-
conjugate
(*, concrete=False)¶ Returns the complex-conjugate of this operator.
- Parameters
concrete – if True returns a concrete operator and not a lazy wrapper
- Return type
- Returns
if concrete is not True, self or a lazy wrapper; the complex-conjugated operator otherwise
-
transpose
(*, concrete=False)¶ Returns the transpose of this operator.
- Parameters
concrete – if True returns a concrete operator and not a lazy wrapper
- Return type
- Returns
if concrete is not True, self or a lazy wrapper; the transposed operator otherwise
-