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