squlearn.util.optree.OpTreeCircuit

class squlearn.util.optree.OpTreeCircuit(circuit: QuantumCircuit)

A leaf of the OpTree that represents a circuit.

Parameters:

circuit (QuantumCircuit) – The circuit that is represented by the leaf.

copy()

Function for copying a OpTreeLeafCircuit object.