Programmable architecture for quantum computing