def METHOD_NAME(self):
    """Test circuit with a custom initial state."""
    initial_state = QuantumCircuit(1)
    initial_state.y(0)
    circuit = QAOAAnsatz(initial_state=initial_state, cost_operator=Pauli("I"), reps=1)
    parameters = circuit.parameters
    circuit = circuit.decompose()
    self.assertEqual(1, len(parameters))
    self.assertIsInstance(circuit.data[0].operation, YGate)
    self.assertIsInstance(circuit.decompose().data[1].operation, RXGate)