{"title":"基于彩色Petri网的量子算法建模方法","authors":"Shichen Zhou , Xu Guo , Jian-tao Zhou","doi":"10.1016/j.jss.2025.112567","DOIUrl":null,"url":null,"abstract":"<div><div>Verifying the correctness of quantum algorithms and reducing the understanding threshold are important parts of quantum computing. Formal methods, as effective techniques, are increasingly being focused on for these purpose. Given the superposition and entanglement of quantum algorithms, reasonably and intuitively formalizing them is a big challenge. In our work, Coloured Petri Nets (CPN), a sophisticated extension of Petri nets, are harnessed to represent the quantum states in the Hilbert space, the formal approach based on CPN for quantum algorithms is proposed in this paper. Then, the process of constructing a CPN quantum model is demonstrated using the modeling of the Deutsch algorithm, simulations of the algorithm are conducted within the model, with intermediate quantum states being recorded, and the simulation results subsequently analyzed. The quantum properties of Deutsch algorithm such as superposition and entanglement among quantum states can be formalized reasonably, demonstrating the rationality and effectiveness of the model in this paper. Finally, this paper verifies the model’s capability in modeling complex-valued operations of entangled qubits through the construction of a simple circuit.</div></div>","PeriodicalId":51099,"journal":{"name":"Journal of Systems and Software","volume":"230 ","pages":"Article 112567"},"PeriodicalIF":4.1000,"publicationDate":"2025-07-26","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"A Modeling approach based on Coloured Petri Nets for Quantum algorithm\",\"authors\":\"Shichen Zhou , Xu Guo , Jian-tao Zhou\",\"doi\":\"10.1016/j.jss.2025.112567\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<div><div>Verifying the correctness of quantum algorithms and reducing the understanding threshold are important parts of quantum computing. Formal methods, as effective techniques, are increasingly being focused on for these purpose. Given the superposition and entanglement of quantum algorithms, reasonably and intuitively formalizing them is a big challenge. In our work, Coloured Petri Nets (CPN), a sophisticated extension of Petri nets, are harnessed to represent the quantum states in the Hilbert space, the formal approach based on CPN for quantum algorithms is proposed in this paper. Then, the process of constructing a CPN quantum model is demonstrated using the modeling of the Deutsch algorithm, simulations of the algorithm are conducted within the model, with intermediate quantum states being recorded, and the simulation results subsequently analyzed. The quantum properties of Deutsch algorithm such as superposition and entanglement among quantum states can be formalized reasonably, demonstrating the rationality and effectiveness of the model in this paper. Finally, this paper verifies the model’s capability in modeling complex-valued operations of entangled qubits through the construction of a simple circuit.</div></div>\",\"PeriodicalId\":51099,\"journal\":{\"name\":\"Journal of Systems and Software\",\"volume\":\"230 \",\"pages\":\"Article 112567\"},\"PeriodicalIF\":4.1000,\"publicationDate\":\"2025-07-26\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Journal of Systems and Software\",\"FirstCategoryId\":\"94\",\"ListUrlMain\":\"https://www.sciencedirect.com/science/article/pii/S0164121225002365\",\"RegionNum\":2,\"RegionCategory\":\"计算机科学\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q1\",\"JCRName\":\"COMPUTER SCIENCE, SOFTWARE ENGINEERING\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of Systems and Software","FirstCategoryId":"94","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0164121225002365","RegionNum":2,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"COMPUTER SCIENCE, SOFTWARE ENGINEERING","Score":null,"Total":0}
A Modeling approach based on Coloured Petri Nets for Quantum algorithm
Verifying the correctness of quantum algorithms and reducing the understanding threshold are important parts of quantum computing. Formal methods, as effective techniques, are increasingly being focused on for these purpose. Given the superposition and entanglement of quantum algorithms, reasonably and intuitively formalizing them is a big challenge. In our work, Coloured Petri Nets (CPN), a sophisticated extension of Petri nets, are harnessed to represent the quantum states in the Hilbert space, the formal approach based on CPN for quantum algorithms is proposed in this paper. Then, the process of constructing a CPN quantum model is demonstrated using the modeling of the Deutsch algorithm, simulations of the algorithm are conducted within the model, with intermediate quantum states being recorded, and the simulation results subsequently analyzed. The quantum properties of Deutsch algorithm such as superposition and entanglement among quantum states can be formalized reasonably, demonstrating the rationality and effectiveness of the model in this paper. Finally, this paper verifies the model’s capability in modeling complex-valued operations of entangled qubits through the construction of a simple circuit.
期刊介绍:
The Journal of Systems and Software publishes papers covering all aspects of software engineering and related hardware-software-systems issues. All articles should include a validation of the idea presented, e.g. through case studies, experiments, or systematic comparisons with other approaches already in practice. Topics of interest include, but are not limited to:
•Methods and tools for, and empirical studies on, software requirements, design, architecture, verification and validation, maintenance and evolution
•Agile, model-driven, service-oriented, open source and global software development
•Approaches for mobile, multiprocessing, real-time, distributed, cloud-based, dependable and virtualized systems
•Human factors and management concerns of software development
•Data management and big data issues of software systems
•Metrics and evaluation, data mining of software development resources
•Business and economic aspects of software development processes
The journal welcomes state-of-the-art surveys and reports of practical experience for all of these topics.