Compiling Quantum Gauge Theories for Quantum Computation