- 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.
Calculates the generators of a given circuit in order. The i-th generator corresponds to the i-th trainable node in the circuit.