def METHOD_NAME(self, little_endian):
    """Test the outcome for different endianness."""
    qform = QuadraticForm(2, linear=[0, 1], little_endian=little_endian)
    circuit = QuantumCircuit(4)
    circuit.x(1)
    circuit.compose(qform, inplace=True)
    # the result is x_0 linear_0 + x_1 linear_1 = 1 = '0b01'
    result = "01"
    # the state is encoded as |q(x)>|x>, |x> = |x_1 x_0> = |10>
    index = (result if little_endian else result[::-1]) + "10"
    ref = np.zeros(2**4, dtype=complex)
    ref[int(index, 2)] = 1
    self.assertTrue(Statevector.from_instruction(circuit).equiv(ref))