摘要
NDQJava2语言是一种混成式、结构化、命令式量子程序设计语言,它在NDQJava语言的基础上增添了更多的量子成分。NDQJava2处理系统则是在经典计算机上对NDQJava2语言进行模拟实现的处理系统。着重介绍了NDQJava2处理系统的代码转换程序,详细讨论了其设计与实现过程,采用自顶向下、逐层转换的方式,将语法树转换成带量子汇编指令的Java代码。实验表明,该代码转换程序较好地完成了预期目标。
NDQJava2 language is a hybrid, structured and imperative quantum programming language, which is an extension of NDQJava language with some additional quantum components. The processing system of NDQJava2 is a simulative implementation of NDQJava2 on classical computers. This paper describes the code converter of NDQ- Java2 processing system, and discusses its design and implementation in detail. It adopts top-down and layer-by-layer conversion method, and converts syntax tree into Java code with quantum assembly instructions. Experiments show that the code converter achieves the desired purpose.
出处
《计算机科学与探索》
CSCD
2013年第7期659-666,共8页
Journal of Frontiers of Computer Science and Technology