Most of the problems started under LBJ and go worse under Nixon. Those two are most to blame.
Carter is the least responsible, and with his appointment of Paul Volcker to the fed could be given the credit for solving the inflation mess.
It’s true that Volcker understood what needed to be done — raise interest rates.
But it took Ronald Reagan to encourage him to actually do that.