mm.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.

ansatz

The ansatz of the representation.

ansatz

The ansatz of the representation.

from_ansatz(ansatz)

Returns a representation from an ansatz.

reorder(order)

Reorders the representation indices.

abstract from_ansatz(ansatz)[source]

Returns a representation from an ansatz.

Return type:

Representation

abstract reorder(order)[source]

Reorders the representation indices.

Return type:

Representation