Photonic quasi-crystal terahertz lasers