def METHOD_NAME(self):
    """Test configuration checks."""
    mixer = QuantumCircuit(2)
    circuit = QAOAAnsatz(cost_operator=Pauli("I"), reps=1, mixer_operator=mixer)
    self.assertRaises(ValueError, lambda: circuit.parameters)