mm.physics.ansatze.Ansatz¶
- class mrmustard.physics.ansatze.Ansatz[source]¶
Bases:
ABC
A function over a continuous and/or discrete domain.
An ansatz supports basic mathematical operations such as addition, subtraction, multiplication, division, negation, equality, etc.
Note that
n
-dimensional arrays are like functions defined over an integer lattice of points, so this class also works for, e.g., the Fock representation.This class is abstract. Concrete
Ansatz
classes have to implement the__call__
,__mul__
,__add__
,__sub__
,__neg__
, and__eq__
methods.Methods
__call__
(point)Evaluates this ansatz at a given point in the domain.
code/api/mrmustard.physics.ansatze.Ansatz
Download Python script
Download Notebook
View on GitHub