def to_circuit(self) -> circuit.Circuit: return circuit.Circuit(self.all_operations(), strategy=circuit.InsertStrategy.EARLIEST)
def to_circuit(self) -> circuit.Circuit: if self._device == devices.UNCONSTRAINED_DEVICE: return circuit.Circuit(self.all_operations(), strategy=circuit.InsertStrategy.EARLIEST) return circuit.Circuit( self.all_operations(), strategy=circuit.InsertStrategy.EARLIEST, device=self._device )