# cirq.Circuit.operation_at¶

Circuit.operation_at(qubit: cirq.ops.raw_types.Qid, moment_index: int) → Optional[cirq.ops.raw_types.Operation][source]

Finds the operation on a qubit within a moment, if any.

Parameters: qubit – The qubit to check for an operation on. moment_index – The index of the moment to check for an operation within. Allowed to be beyond the end of the circuit. None if there is no operation on the qubit at the given moment, or else the operation.