why q is not a state function?
So, in general, our system processes do not happen under such special conditions as perfect constant volume or perfect constant pressure, so in general, q is not a state function because the energy transferred depends on the path chosen.