Automated control of quantum devices