Knill, Laflamme and Milburn showed that the linear-optical model, with single-photon sources, passive linear optics, photodetectors and feed-forward of detection outcomes, can run quantum algorithms reliably with polynomial overhead. Without feed-forward the same elements give only nondeterministic computation. The construction builds a heralded, nondeterministic entangling gate from linear optics, ancilla photons and postselection, then applies it "offline" to ancilla states and uses teleportation to transfer the successful gate onto the data; increasing the size of the ancilla states drives the probability of a failed teleportation towards zero, and the remaining failures are detectable and handled by encoding.
The original scheme needs large ancilla states per gate. Later proposals reduced this overhead by combining linear-optics entangling measurements with cluster states; see fusion-based computation and the review by Kok et al..