Exemple #1
0
 def to_circuit(self) -> circuit.Circuit:
     return circuit.Circuit(self.all_operations(),
                            strategy=circuit.InsertStrategy.EARLIEST)
Exemple #2
0
 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
     )