def METHOD_NAME(self):
    """
    Testing if the analytical backend fails if the number of layers, p, is different than 1.
    """
    n_qubits = 8
    p = 2
    mixer_hamil = X_mixer_hamiltonian(n_qubits)
    betas = [np.pi / 8, np.pi / 8]
    gammas = [np.pi / 4, np.pi / 4]
    register, cost_hamil, qaoa_descriptor, variate_params = Disagrees_SetUp(
        n_qubits, p, mixer_hamil, betas, gammas
    )
    exception = False
    try:
        backend_analytical = QAOABackendAnalyticalSimulator(qaoa_descriptor)
    except:
        exception = True
    assert exception, "p != 1 didn't fail."