mentpy.utils.calculate_ordered_gens(circuit: MBQCircuit)

Calculates the generators of a given circuit in order. The i-th generator corresponds to the i-th trainable node in the circuit.

Parameters:
circuit : MBQCircuit

The state for which to calculate the possible rotations

Returns:

The possible rotations achievable by the circuit

Return type:

PauliOp