My bet is "user error".
Most rifles are far more accurate than the shooter.
I would suggest two things.
1) Try and sight it in with a higher magnification scope. This will instantly tell you if it's the gun or you.
2) Try different brands and grain weights of ammo.
Typically a 1/9 twist rate will do well with 55 grain loads but even in the 55 grain ammo, you can and will get huge disparity between brand A and brand B or C, etc...
If you tried wolf, try also federal or Winchester or another comparable, high quality brand of ammo.
Also try out 62 grain ammo to see if the change in grain weight works for your rifle.
Understand that every rifle has a favorite ammo. Your rifle might like federal American Eagle 55 grain, while "your friends exact same make and model rifle" likes Wolf gold .223 55 grain.
To me the best part of a new rifle is the research I do to find out what ammo my rifle likes best.
My SCAR 16 for example will easily shoot 1/2 MOA all day with PPU match 75 grain, but I can't get 2 MOA with 55 grain federal 223 on the same rifle.
Good luck, shoot straight, and be safe.