mentpy.mbqc.templates.muta(n_wires, n_layers, **kwargs) MBQCircuit

This is the Multiple Triangle Ansatz (MuTA) template.

n_wires : int

The number of wires in the graph state.

n_layers : int

The number of layers in the graph state.

Keyword Arguments:
one_column : bool

Whether to use only one column of triangles.

Return type:

The graph state with the MuTA template.


Create a MuTA ansatz with 3 wires and 2 layers

In [1]: g = mp.templates.muta(3, 2)

In [2]: mp.draw(g, figsize=(16,5))
Out[2]: (<Figure size 1600x500 with 1 Axes>, <Axes: >)