moment_by_moment_schedule(device: cirq.devices.device.Device, circuit: cirq.circuits.circuit.Circuit)¶
Returns a schedule aligned with the moment structure of the Circuit.This method attempts to create a schedule in which each moment of a circuitis scheduled starting at the same time. Given the constraints of thegiven device, such a schedule may not be possible, in this case thethe method will raise a ValueError with a description of the conflict.The schedule that is produced will take each moments and schedule theoperations in this moment in a time slice of length equal to the maximumtime of an operation in the moment.
Returns: A Schedule for the circuit. Raises:
ValueError– if the scheduling cannot be done.