We study a cavity-photon-switched coherent electron transport in a symmetric double quantum waveguide. The waveguide system is weakly connected to two electron reservoirs, but strongly coupled to a single quantized photon cavity mode. A coupling window is placed between the waveguides to allow for electron interference or inter-waveguide transport. The transient electron transport in the system is investigated using a quantum master equation. We present a cavityphoton tunable semiconductor quantum waveguide implementation of an inverter quantum gate in which the output of the waveguide system may be selected via the selection of an appropriate photon number, or 'photon frequency' of the cavity. In addition, the importance of the photon polarization in the cavity that is either parallel or perpendicular to the direction of electron propagation in the waveguide system is demonstrated.