Co-developing methods for lattice gauge theory simulations and qudit compilation