  We establish a formal bridge between qubit-based and photonic quantum
computing. We do this by defining a functor from the ZX calculus to linear
optical circuits. In the process we provide a compositional theory of quantum
linear optics which allows to reason about events involving multiple photons
such as those required to perform linear-optical and fusion-based quantum
computing.
