# cirq.Circuit.from_ops¶

static Circuit.from_ops(*operations, strategy: cirq.circuits.insert_strategy.InsertStrategy = cirq.InsertStrategy.EARLIEST, device: cirq.devices.device.Device = cirq.UnconstrainedDevice) → cirq.circuits.circuit.Circuit[source]

Creates an empty circuit and appends the given operations.

Parameters: operations – The operations to append to the new circuit. strategy – How to append the operations. device – Hardware that the circuit should be able to run on. The constructed circuit containing the operations.