sf.physics.ansatze.Ansatz¶
- class mrmustard.physics.ansatze.Ansatz[source]¶
Bases:
ABCA 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
Ansatzclasses 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