Exploring Applications of Deep Learning for Quantum Architecture Search
Patrick Selig
Abstract
There is increasing interest in the area of quantum computing, but using and developing new quantum algorithms, often represented as quantum circuits, is arduous and requires designers with a wide area of experience. The exploration of techniques for the automatic design of quantum algorithms, i.e., quantum architecture search, is therefore of high importance. This work explores the use of neural networks for quantum architecture search, since neural networks have proven quite successful in various complex search domains, and current approaches in quantum architecture search make very restricted use of them. There are many different domains in which quantum architecture search can be applied. They can be used to compile unitaries into quantum circuits, develop ansätze for variational quantum circuits, or develop new quantum algorithms by applying it to input output pairs of one task one wishes to solve. The focus in this thesis is on the task of quantum state preparation, a very important task in the field of quantum computing, as it is a subroutine in a large number of quantum algorithms like quantum machine learning and Hamiltonian simulation. This thesis approaches the task of quantum architecture search first by establishing the importance of the structure of quantum circuits. This is done with a large-scale study of the influence different circuit structure parameters, such as qubits and depth, have on the performance on variational quantum machine learning. During this research, four guidelines for designing circuits for variational quantum machine learning were established. DeepQPrep, a neural network-augmented deductive search for the automatic design of quantum circuits for quantum state preparation, was proposed. It is able to create non-parameterized quantum circuits to solve 76.9% of a restrictive set of quantum states with quantum circuits that were much shallower than the ones found in the ground-truth data. The model was trained on a dataset created in this thesis as none were available at the time. During the exploration of extensions of DeepQPrep to enable it to solve more arbitrary quantum state preparation problems without the need for labeled data, different challenges became apparent. A study on the difficulty of training neural networks to create parameterized quantum circuits using reinforcement learning found that training is hampered by the barren plateau problem of quantum computing. It shows that the variance of the gradient of the quantum circuit output with respect to its parameters goes exponentially to zero. A study showed that this problem makes the application of neural networks to encode quantum circuits highly challenging when no intermediate quantum state information is used. This culminated in DeepQPrepGrad, which combines parameterized circuits, the inductive search of DeepQPrep, and the reinforcement learning-based approach with more compact representations. By combining these parts with the gradients of quantum circuits, an approach that is able to create parameterized quantum circuits for arbitrary quantum states was obtained. The approach was evaluated on 20000 arbitrary 3-qubit quantum states without the need for any labeled data, resulting in a mean minimal similarity of 0.97 alleviated the found challenges to a large degree. This thesis explored key challenges faced when training neural networks to encode quantum circuits. These challenges are of paramount importance as they potentially affect a wide range of tasks in the field of quantum computing to which neural networks could be applied. Lastly, DeepQPrepGrad provides a significant step forward for the creation of quantum circuits using neural networks. DeepQPrepGrad makes great progress in solving the challenges highlighted above and has the potential to be applicable in a wide range of quantum architecture search tasks, such as variational eigensolver and variational quantum machine learning.