sf.physics.representations.Representation

class mrmustard.physics.representations.Representation[source]

Bases: ABC

A base class for representations.

Representations can be initialized using the from_ansatz method, which automatically equips them with all the functionality required to perform mathematical operations, such as equality, multiplication, subtraction, etc.

from_ansatz(ansatz)

Returns a representation from an ansatz.

abstract from_ansatz(ansatz)[source]

Returns a representation from an ansatz.

Return type:

Representation