You need to look at your headphone's specs first, sensitivity and impedance in particular. Let's say you have a headphone, its impedance is 32 ohms and its sensitivity is 105dB/mW. That means if you had an amplifier that has a maximum output power of 1mW into 32 ohm it would make your phones to sound 105dB SPL loud.
Something to note here: if you double the input power, it will make the phones to sound 3 dB louder so if you wanted your headphones to be let's say 120dB SPL loud you would need an amplifier that could output 5mW of power into 32 ohm.
You want to make sure the amp's output impedance is significantly lower than the impedance of your headphones. People usually say that amp's output impedance should be lower than the eighth of your headphone's impedance, but of course, the lower, the better.
You also need to look at the amplifier's distortion characteristics such as the frequency response, total harmonic distortion and intermodulation distortion.
The frequency response is straightforward, you want it to be flat. The THD and IMD can be given in numerous ways. You want those figures to be below the threshold of audibility ( I don't know what's considered to be below the threshold and it varies from person to person that's why I'm usinga vague term here).
For example this is how fiio gives you the thd figures of their amps: ≥ 70 mW (32 Ω/THD+N<1%) This means that if you feed 70mW of power into 32 ohm the total harmonic distortion (+noise in this case) will stay below 1% across the frequencies.
There are more things to consider and I realize I simplify some things but I guess this is a good starting point. By the way, this is only the case if you don't want to color the sound of your headphones. For example, if you think your headphones have too much treble, then an amplifier that rolls off highs may sound better than a flat one. If you enjoy the sound of harmonic distortion, you don't want it to be so low you don't notice it.
I personally prefer to change the sound of my headphones with DSP, not with amps/dacs/cables etc.
EDIT: I almost forgot, the easy way is to listen to the pairing and see if you like it. If you are, then you are good to go.
so when choosing a dap or amp, how can i determine if they suit together, sorry to keep asking