The ideal government is the one that doesn’t exist since there are too few humans to require one.
Barring this, the ideal government is one that seeks to prioritize and protect individual freedom above all else and whose participation in/allegiance to is entirely voluntary and transparent.