Quantum computing promises remarkable computational power with minimal energy consumption. However, the complexity of developing quantum circuits and codes hinders fully exploiting this potential. The study proposes an approach based on the automatic quantum circuit and code generation based on deep learning. It enables the resynthesis of existing circuits and the creation of new ones from undefined inputs. The system transforms inputs into reversible truth tables, generates a quantum unitary matrix, corrects errors, optimizes it, and converts it into a quantum code or circuit. This approach has been implemented on circuits and codes that involve up to five variables. Rigorous evaluations include both the Deep Neural Network and the overall approach. Although the DNN output does not guarantee absolute correctness, our approach compensates with supplementary processes, ensuring the precise generation of quantum codes and circuits. Comprehensive testing confirmed the approach's effectiveness in overcoming challenges in quantum circuit and code development. • Benefiting from the low energy and high computing power potential offered by quantum computing. • Developing quantum circuits and algorithms is a challenging task. • The number of competent people in the field who can develop quantum circuits and algorithms is low. • Classical algorithms do not work on quantum computers. • Insufficient number of quantum circuits and algorithms running on quantum computers.
Quantum computing promises remarkable computational power with minimal energy consumption. However, the complexity of developing quantum circuits and codes hinders fully exploiting this potential. The study proposes an approach based on the automatic quantum circuit and code generation based on deep learning. It enables the resynthesis of existing circuits and the creation of new ones from undefined inputs. The system transforms inputs into reversible truth tables, generates a quantum unitary matrix, corrects errors, optimizes it, and converts it into a quantum code or circuit. This approach has been implemented on circuits and codes that involve up to five variables. Rigorous evaluations include both the Deep Neural Network and the overall approach. Although the DNN output does not guarantee absolute correctness, our approach compensates with supplementary processes, ensuring the precise generation of quantum codes and circuits. Comprehensive testing confirmed the approach's effectiveness in overcoming challenges in quantum circuit and code development. • Benefiting from the low energy and high computing power potential offered by quantum computing. • Developing quantum circuits and algorithms is a challenging task. • The number of competent people in the field who can develop quantum circuits and algorithms is low. • Classical algorithms do not work on quantum computers. • Insufficient number of quantum circuits and algorithms running on quantum computers.
Today, although there are studies for the active use of quantum computers, deep learning-based studies on quantum computing are few. Since the large amount of data needed by deep learning cannot be met from the literature, using deep learning in subjects such as quantum circuit optimization, and quantum circuit/algorithm generation challenges researchers. In this study, an approach is proposed to overcome the data and dataset deficiencies related to quantum circuits in the literature. The proposed approach generates datasets consisting of quantum circuits, truth tables of quantum circuits, unitary matrices, visuals, and pairs of these data. The circuits, data, and datasets produced with this approach have already been studied and are still being actively done. The performance of the proposed approach was evaluated as dependent on different variables and as elapsed time. With the proposed approach, circuits, data, and datasets with desired properties can be generated successfully. As a result, the contribution and performance of the proposed approach have been verified.
Quantum computing promises significant advancements over classical computing by enabling exponential speedups for specific problems. Despite its potential, quantum software development remains challenging due to its complexity, cost, and susceptibility to errors. Aligned with the novel paradigm of Quantum Software Engineering (QSE), this paper introduces a tool designed to automate the generation of quantum software components from truth tables. The tool simplifies the development process by allowing users to specify expected output values for given inputs, which the tool then translates into the corresponding quantum code. This approach reduces the manual effort required and helps ensure accuracy in quantum program development. Our method not only streamlines quantum software generation but also optimizes the resulting quantum circuits by minimizing unnecessary computations. The paper provides a detailed overview of the algorithm, tool implementation, and potential applications, highlighting the tool's efficacy in facilitating more efficient quantum software development.
While the ability to build quantum computers is improving dramatically, developing quantum algorithms is limited and relies on human insight and ingenuity. Although a number of quantum programming languages have been developed, it is challenging for software developers who are not familiar with quantum computing to learn and use these languages. It is, therefore, necessary to develop tools to support developing new quantum algorithms and programs automatically. This paper proposes AutoQC, an approach to automatically synthesizing quantum circuits using the neural network from input and output pairs. We consider a quantum circuit a sequence of quantum gates and synthesize a quantum circuit probabilistically by prioritizing with a neural network at each step. The experimental results highlight the ability of AutoQC to synthesize some essential quantum circuits at a lower cost.
Quantum computers may solve some computing tasks more efficiently than classical computers, but to do so requires the design of appropriate quantum circuits. However, it is hard to design even simple quantum programs. Recent results have shown that deep learning augmented search has the potential to discover good circuits for a problem, but it is not yet sufficiently understood how well deep learning is able to model such a complex domain: the search space and output space grow exponentially. This work explores the ability of neural networks to encode quantum circuits for tasks that require knowledge about the unitary representation of the circuit. To this end, we trained neural networks to directly learn to predict the unitary of a circuit and applied reinforcement learning to train neural networks to solve circuit based quantum state preparation. This work finds that encoding quantum circuits is quite difficult especially with regards to the amount of entanglement applied in both application domains. The use of intermediate states and structure in quantum circuits combined with a reasonable inductive bias, where applicable, can alleviate these problems to some extent. The use of intermediate states also greatly improves the results of Deep Reinforcement Learning for quantum state preparation. Based on these results, we discuss the next set of challenges to address if we are to design neural network-based approaches for the automatic generation of quantum circuits. Add sentence on how it improves things in the end.
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.
While the ability to build quantum computers is improving dramatically, developing quantum algorithms is very limited and relies on human insight and ingenuity. Although several quantum programming languages have been developed, it is challenging for software developers unfamiliar with quantum computing to learn and use these languages. It is, therefore, necessary to develop tools to support developing new quantum algorithms and programs automatically. This paper proposes AutoQC, an approach to automatically synthesizing quantum circuits using the neural network from input and output pairs. We consider a quantum circuit a sequence of quantum gates and synthesize a quantum circuit probabilistically by prioritizing through a neural network at each step. The experimental results highlight the ability of AutoQC to synthesize some essential quantum circuits at a lower cost.