By finding a certain kind of defect inside a block of diamond and fashioning a pattern of nanoscale pillars on the surface above it, engineering researchers can now control the shape of individual photons emitted by the defect. Because those photons carry information about the spin state of an electron, such a system could be used as the basis for compact quantum technologies.