Researchers at Edinburgh, Scotland's Heriot-Watt University have developed a potent new method for programming optical circuits, which are essential for the development of future technologies like ultrafast quantum computers and unhackable communications networks.