mentpy.utils.calculate_lie_algebra(circuit: MBQCircuit, max_iter: int = 10000)

Calculates the Lie algebra of a given MBQCircuit

Examples

Calculate the Lie algebra of a 3x3 grid cluster state

In [1]: circ = mp.templates.grid_cluster(3,3)

In [2]: lie_alg = mp.utils.calculate_lie_algebra(circ)

In [3]: print(lie_alg)
IXZ
XZI
XZX
ZXZ
ZXI
IZX
XYZ
YYY
ZYX
III