DURATION_LIKE= typing.Union[NoneType, datetime.timedelta, _ForwardRef('cirq.Duration')]¶
cirq.Durationor value that can trivially converted to one.A
cirq.DURATION_LIKE. It is converted whilepreserving its duration.
cirq.DURATION_LIKEthat converts into a zero-length duration.Note that 0 is a
DURATION_LIKE, despite the fact that
intis not listed,because 0 is the only integer where the physical unit doesn’t matter.