# cirq.Circuit.next_moments_operating_on¶

Circuit.next_moments_operating_on(qubits: Iterable[cirq.ops.raw_types.Qid], start_moment_index: int = 0) → Dict[cirq.ops.raw_types.Qid, int][source]

Finds the index of the next moment that touches each qubit.

Parameters: qubits – The qubits to find the next moments acting on. start_moment_index – The starting point of the search. The index of the next moment that touches each qubit. If there is no such moment, the next moment is specified as the number of moments in the circuit. Equivalently, can be characterized as one plus the index of the last moment after start_moment_index (inclusive) that does not act on a given qubit.