Parametric Synthesis of Quantum Circuits for Training Perceptron Neural Networks

C. B. Pronin, A. Ostroukh
{"title":"Parametric Synthesis of Quantum Circuits for Training Perceptron Neural Networks","authors":"C. B. Pronin, A. Ostroukh","doi":"10.1109/TIRVED56496.2022.9965536","DOIUrl":null,"url":null,"abstract":"This work contains the analysis of results received after running synthesized quantum circuits for training perceptron neural networks. The training is performed by creating a Grover’s algorithm with a custom oracle function. The concept of synthesizing quantum circuits was showcased in the process of generating training circuits for three perceptron topologies, which were designed to test the accuracy of the synthesis process. The test circuits serve to prove that the proposed synthesis approach could be scaled to utilize more complex quantum computing systems and to solve more practical tasks. IBM’s 100-qubit cloud quantum simulator was used as the debugging environment. Quantum circuits for described algorithms are generated by the \"Naginata\" quantum synthesizer, its source code is published and further documented on GitHub along with the code for the provided example algorithms. The article describes the processes behind the algorithm for synthesizing quantum circuits that perform the training process of single-layer perceptrons by finding their weights by filtering all possible input values through a predefined accuracy criterion. Since quantum computing is still in its early development phase, quantum circuits are created mainly by manual placement of logic elements. Implementing quantum algorithms, especially more use-case specific ones, directly on the quantum circuit level could lead to the circuit easily becoming too complex for human comprehension. Quantum Circuit Synthesizer \"Naginata\" was created to simplify the development and debugging process of quantum algorithms, by adding better clarity to their development process. In our case, better clarity for the development process is achieved by composing functions for commonly used operations performed in the implemented quantum algorithm. The programmer could now implement the quantum algorithm as a set of functions, instead of manually creating a circuit from single logic elements. After this, the synthesizer would handle the task of creating the data for placing logic elements on the circuit. This enables an opportunity of implementing quantum algorithms with higher-level commands. In the scope of this work, parametrically generated generic blocks for frequently used operations such as: the adder, multiplier and digital comparator were created and utilized to form the training circuits. The test results, proved that with the help of the proposed quantum synthesizer, these compositions could be used efficiently as building blocks for implementing quantum algorithms. And by visually comparing sizes of both code and circuit representations of the synthesized circuits, to the code examples used to synthesize these circuits, it is determined that the proposed approach for implementing quantum circuits greatly simplifies the processes of development and debugging a quantum algorithm.","PeriodicalId":173682,"journal":{"name":"2022 Intelligent Technologies and Electronic Devices in Vehicle and Road Transport Complex (TIRVED)","volume":"2 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-09-20","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2022 Intelligent Technologies and Electronic Devices in Vehicle and Road Transport Complex (TIRVED)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/TIRVED56496.2022.9965536","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

This work contains the analysis of results received after running synthesized quantum circuits for training perceptron neural networks. The training is performed by creating a Grover’s algorithm with a custom oracle function. The concept of synthesizing quantum circuits was showcased in the process of generating training circuits for three perceptron topologies, which were designed to test the accuracy of the synthesis process. The test circuits serve to prove that the proposed synthesis approach could be scaled to utilize more complex quantum computing systems and to solve more practical tasks. IBM’s 100-qubit cloud quantum simulator was used as the debugging environment. Quantum circuits for described algorithms are generated by the "Naginata" quantum synthesizer, its source code is published and further documented on GitHub along with the code for the provided example algorithms. The article describes the processes behind the algorithm for synthesizing quantum circuits that perform the training process of single-layer perceptrons by finding their weights by filtering all possible input values through a predefined accuracy criterion. Since quantum computing is still in its early development phase, quantum circuits are created mainly by manual placement of logic elements. Implementing quantum algorithms, especially more use-case specific ones, directly on the quantum circuit level could lead to the circuit easily becoming too complex for human comprehension. Quantum Circuit Synthesizer "Naginata" was created to simplify the development and debugging process of quantum algorithms, by adding better clarity to their development process. In our case, better clarity for the development process is achieved by composing functions for commonly used operations performed in the implemented quantum algorithm. The programmer could now implement the quantum algorithm as a set of functions, instead of manually creating a circuit from single logic elements. After this, the synthesizer would handle the task of creating the data for placing logic elements on the circuit. This enables an opportunity of implementing quantum algorithms with higher-level commands. In the scope of this work, parametrically generated generic blocks for frequently used operations such as: the adder, multiplier and digital comparator were created and utilized to form the training circuits. The test results, proved that with the help of the proposed quantum synthesizer, these compositions could be used efficiently as building blocks for implementing quantum algorithms. And by visually comparing sizes of both code and circuit representations of the synthesized circuits, to the code examples used to synthesize these circuits, it is determined that the proposed approach for implementing quantum circuits greatly simplifies the processes of development and debugging a quantum algorithm.
用于训练感知器神经网络的量子电路参数综合
这项工作包括对运行用于训练感知器神经网络的合成量子电路后收到的结果进行分析。通过使用自定义oracle函数创建Grover算法来执行训练。在生成三种感知器拓扑的训练电路的过程中,展示了合成量子电路的概念,这三种感知器拓扑被设计用来测试合成过程的准确性。测试电路证明了所提出的综合方法可以扩展到更复杂的量子计算系统,并解决更多的实际任务。采用IBM的100量子位云量子模拟器作为调试环境。所述算法的量子电路由“Naginata”量子合成器生成,其源代码与所提供的示例算法的代码一起发布并进一步记录在GitHub上。本文描述了合成量子电路的算法背后的过程,该算法通过通过预定义的精度标准过滤所有可能的输入值来找到单层感知器的权重,从而执行单层感知器的训练过程。由于量子计算仍处于早期发展阶段,量子电路主要是通过人工放置逻辑元件来创建的。直接在量子电路层面上实现量子算法,尤其是更具体的用例算法,可能会导致电路变得过于复杂,人类无法理解。量子电路合成器“Naginata”的创建是为了简化量子算法的开发和调试过程,通过增加更好的清晰度,他们的开发过程。在我们的例子中,通过组合在实现的量子算法中执行的常用操作的函数来实现开发过程的更好清晰度。程序员现在可以将量子算法作为一组函数来实现,而不是用单个逻辑元件手动创建电路。在此之后,合成器将处理创建数据的任务,以便将逻辑元件放置在电路上。这使得用更高级别的命令实现量子算法成为可能。在这项工作的范围内,为经常使用的操作(如加法器、乘法器和数字比较器)创建了参数化生成的通用块,并用于形成训练电路。测试结果证明,在量子合成器的帮助下,这些组合物可以有效地用作实现量子算法的构建块。通过直观地比较合成电路的代码和电路表示的大小,以及用于合成这些电路的代码示例,可以确定所提出的实现量子电路的方法大大简化了量子算法的开发和调试过程。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信