def is_two_qubit_gate_layer(moment):
    """Helper function to check whether a moment in a circuit contains
       one- or two-qubit gates."""
       
    if len(next(iter(moment)).qubits) == 1:
        return False
    return True