Programmable networks for quantum algorithms.