  In this paper, applying the spinor representation of the electromagnetic
field, we present a quantum-mechanical description of waveguides. As an example
of application, a potential qubit generated via photon tunneling is discussed.
