Returns the qubits acted upon by Operations in this circuit.

def all_qubits(self) -> FrozenSet[ops.Qid]:
        """Returns the qubits acted upon by Operations in this circuit."""
        return frozenset(q for m in self._moments for q in m.qubits)