def METHOD_NAME(
    q: int,
    args: sim.CliffordTableauSimulationState,
    operations: List[ops.Operation],
    qubits: List['cirq.Qid'],
):
    # Apply the tableau with S^\{dagger}
    protocols.act_on(ops.S**-1, args, qubits=[qubits[q]], allow_decompose=False)
    operations.append(ops.S(qubits[q]))