  A diagrammatic method is presented for averaging over the circular ensemble
of random-matrix theory. The method is applied to phase-coherent conduction
through a chaotic cavity (a ``quantum dot'') and through the interface between
a normal metal and a superconductor.
