共查询到18条相似文献,搜索用时 343 毫秒
1.
《计算机光盘软件与应用》2013,(8):276-277
NDQJava2是在NDQJava系统的基础上发展而来的,而计算机硬件的革新,也使得量子效应开始影响到电子元件,量子计算也会在不久的未来终将超越传统计算成为一种新型模式。对于量子程序的设计,应用到NDQJava2这种设计语言,这个系统是对NDQJava的创新,在原本的基础上增加了条件语句、循环语句、子程序、异常处理模块等量子成分,完善了NDQJava系统,使得语法分析更加准确。 相似文献
2.
NDQJava2是在NDQJava语言的基础上增添量子条件语句、量子循环语句、量子子程序、量子模块和量子异常处理机制等多种量子成分而成的一种混成式、结构化、命令式量子程序设计语言.为了在经典计算机上模拟执行NDQJava2语言书写的量子程序,给出了假想量子计算机的基本指令集与汇编指令集的设计,并用Java语言编写了相应的汇编程序和解释程序.结合处理系统的其他部分,验证了平衡函数判定问题的Deutsch算法.实验表明,该汇编程序与解释程序达到了预期目的. 相似文献
3.
4.
5.
目前,在很多高校,C语言都被列为程序设计的入门语言,也是很多计算机专业学生学好《数据结构》、《c++程序设计》等专业课的前提条件。而循环语句又是C语言学习中的一个重点与难点。根据本人的体会,浅谈一下C语言循环语句在学习、生活中的一些应用。 相似文献
6.
循环结构是结构化程序设计的三种基本结构之一,文章对C语言中的for循环语句、while循环语句和do-while循环语句进行分析和比较. 相似文献
7.
8.
C语言一共有三种基本结构,分别为顺序结构、选择结构、循环结构,其中选择结构又称为分支结构,它根据给定的条件是否成立选择接下来执行什么动作,在C语言中,有if语句和switch语句这两种控制语句可以实现上述的判断选择功能。通过几年的C语言教学,我发现其中if语句的学习是不少学生学习C语言的一个"瓶颈",原因主要有以下两点:(1)对if语句两种基本形式的格式掌握不好,含义的理解不够深刻,不知道什么时候该用第一种基本形式,什么时候该用第二种基本形式;(2)由于if语句的嵌套形式多变,使用灵活,使用if语句的嵌套时,学生容易逻辑混乱,层次不清,配对不明。所以,本文将重点就if语句的教学进行讨论。 相似文献
9.
设计了基于通用量子语言Q_language的量子Haar小波变换算法,该算法对于小波变换的应用和量子算法的完善具有重要的意义.分析了3个量子位Haar小波变换过程,给出了量子Haar小波变换算法的Q_language语言描述,并分析得出其时间和空间复杂度,然后给出了实现量子Haar小渡变换应用方法. 相似文献
10.
基于量子逻辑的自动机理论是量子计算模型的一个重要研究方向.该文研究了基于量子逻辑的图灵机(简称量子图灵机)及其一些变形,给出了包括非确定型量子图灵机l-VTM,确定型量子图灵机l-VDTM以及相应类型的多带量子图灵机,并引入量子图灵机基于深度优先与宽度优先识别语言的两种不同定义方式,证明了这两种定义方式在量子逻辑意义下是不等价的.进一步证明了l-VTM、l-VDTM与相应类型的多带量子图灵机之间的等价性.其次,给出了量子递归可枚举语言及量子递归语言的定义,并给出了二者的层次刻画,证明了l-VTM与l-VDTM不等价,但两者作为量子递归语言的识别器是等价的.最后,文中讨论了基于量子逻辑的通用图灵机的存在性问题,给出了一套合理编码系统,证明了基于量子逻辑的通用图灵机在其所取值的正交模格无限时不存在,而在其所取值的正交模格有限时是存在的. 相似文献
11.
Quantum programming languages 总被引:1,自引:0,他引:1
After giving a bird’s view of some existing quantum programming languages, this paper reports the recent results made by the
quantum computation group of the State Key Laboratory for Novel Software Technology and the Department of Computer Science
and Technology at Nanjing University, i.e., the quantum programming languages NDQJava, NDQFP and their processing systems. 相似文献
12.
Statement frequency data can inform programming language research and provide a solid basis for frequency‐based code analysis. This paper presents an analysis of programming language statement frequency in a large corpus of C, C++, and Java source code, comprised of more than 54 million lines of code. Across these languages, the top four work‐performing statement types are Method/Function Call, Assignment, If, and Return. As compared to studies of Formula Translating System, Common Business Oriented Language and Programming Language One in the 1970s, the main change is the prevalence of method/function calls. Statement use frequency across languages is remarkably similar, and within each individual language, most statement types have a frequency distribution that occupies a small range. A more detailed examination of assignment and looping statement types shows that many assignments simply involve copying of data and that C++/Java use for statements more than C. Copyright © 2014 John Wiley & Sons, Ltd. 相似文献
13.
After giving a bird’s view of some existing quantum programming languages, this paper reports the recent results made by the quantum computation group of the State Key Laboratory for Novel Software Technology and the Department of Computer Science and Technology at Nanjing University, i.e., the quantum programming languages NDQJava, NDQFP and their processing systems. 相似文献
14.
在C语言程序设计课程中,break语句有两个作用:一是应用于switch语句中,可以结束多分支选择结构;二是应用于循环结构中,可以结束本层循环.通过实例分析出break语句使用的条件,break语句的功能,以及注意事项,明确了break语句的使用方法. 相似文献
15.
C. Wrandle Barth 《Software》1974,4(3):289-298
The case statement is one of the newest and one of the least known of the ‘standard’ control structures in higher level languages. Its importance has increased with the greater use of structured and goto-less programming. This paper surveys the development of the case statement and provides two extensions which are natural and intuitive and which, it is claimed, increase the intellectual manageability of the host language. 相似文献
16.
17.
介绍一个可在经典计算机上模拟量子计算的工具Qsimulation。该工具由4个主要部分组成:一个命令式的量子编程语言,一个量子计算解释器,一个用于模拟量子程序执行的图形用户界面以及错误处理模块,它能帮助教师和新手设计并测试简单的量子电路和量子程序。 相似文献
18.
XU JiaFu SONG FangMin 《中国科学F辑(英文版)》2008,(6):623-637
Starting with some simple representative quantum programming languages, this paper lays stress on quantum computation, language paradigm, program structure, input/output, exception facility, and especially the recent results of the quantum computation group at Nanjing University, namely the functional quantum programming language NDQFP. All primitive functions and combining forms in NDQFP are given in the appendix. 相似文献