语义计算

A few months ago, I published an article about an obscure mathematical concept which can be used to describe high-level semantic information. The gist is that certain algebraic structures (particularly the free commutative magma) can represent any discrete high-level semantic concept using an arbitrary reference frame of initial concepts. This model leads to a unique programming paradigm and file format detailed in this Medium article and Google Colab notebook:

几个月前,我发表了一篇有关模糊数学概念的文章,该数学概念可用于描述高级语义信息。 要点是,某些代数结构(尤其是自由交换岩浆 )可以使用初始概念的任意参考框架表示任何离散的高级语义概念。 此模型导致独特的编程范例和文件格式,在这篇中型文章和Google Colab笔记本中有详细介绍:

After thinking some more about this topic, I realized that a similar concept emerges in the mathematical model of quantum computing. While this explanation will require some prior knowledge of linear algebra and quantum mechanics, I will do my best to explain this in a way that can be vaguely understood by everyone.

在对这个话题进行了更多思考之后,我意识到在量子计算的数学模型中也出现了类似的概念。 尽管这种解释需要线性代数和量子力学的一些先验知识,但我将尽我所能地以每个人都可以理解的方式进行解释。

Any classical and quantum algorithm can be represented via a matrix M which maps some given input state x to a corresponding output y, represented by the equation y = Mx. The key difference between computing models can be seen in the limitations of the matrices and vectors.

任何经典算法和量子算法都可以通过矩阵M表示,矩阵M将某些给定的输入状态x映射到相应的输出y ,由等式y = Mx表示 。 计算模型之间的关键区别可以从矩阵和向量的局限性中看出。

Classical computers require M to be a logical matrix and impart a one-hot restriction on x and y. For instance, the number 3 can be represented as [00010000…] (three zeros and then one 1). For clarity, we can drop trailing zeros, e.g. [0001…] = 3.

古典计算机要求M为逻辑矩阵 ,并对xy施加一重限制。 例如,数字3可以表示为[00010000…] (三个零然后一个1)。 为了清楚起见,我们可以删除尾随的零,例如[0001…] = 3

Notice that this model represents zero as [10…] and one as [01…]. In bra-ket notation, this is usually written as |0⟩ = [10] and |1⟩ = [01]. From here, we can find the physical binary representation by thinking of x as the Kronecker product of the binary representation of the number.

注意,该模型将零表示为[10…] ,将一个表示为[01…] 。 用括弧 表示法 ,通常写为|0⟩= [10]|1⟩= [01] 。 从这里,我们可以通过将x视为数字的二进制表示形式的Kronecker乘积来找到物理二进制表示形式。

The number 6 is 110 in binary, which is written as |0⟩|1⟩|1⟩ or more concisely |011⟩. The order of the bits is flipped because our vector [0000001…] begins from the left rather than the right like typical counting numbers.

数字6是二进制形式的110 ,它写成|0⟩ |1⟩ |1⟩或更简而言|011⟩ 。 因为我们的向量[0000001…]从左开始而不是像典型的计数数字一样从右开始,所以位的顺序被翻转。

0  │0⟩ │0⟩ │0⟩ │0⟩ ...1  │1⟩ │0⟩ │0⟩ │0⟩ ...2  │0⟩ │1⟩ │0⟩ │0⟩ ...3  │1⟩ │1⟩ │0⟩ │0⟩ ...4  │0⟩ │0⟩ │1⟩ │0⟩ ...5  │1⟩ │0⟩ │1⟩ │0⟩ ...6  │0⟩ │1⟩ │1⟩ │0⟩ ...7  │1⟩ │1⟩ │1⟩ │0⟩ ...8  │0⟩ │0⟩ │0⟩ │1⟩ ...9  │1⟩ │0⟩ │0⟩ │1⟩ ...

While this is quite a complex way to think about algorithms, it lays the groundwork for understanding the logic of both quantum computing and semantic polymorphism.

尽管这是一种考虑算法的复杂方法,但它为理解量子计算和语义多态性的逻辑奠定了基础。

Unlike their classical counterparts, quantum computers are able to work with any combination of numbers simultaneously and in specific proportions via quantum superposition. In other words, it is possible to run algorithms on a wave function of bit configurations, each with a rotation-like phase and relative magnitude. The catch is that while x is far more flexible, M must be a unitary matrix and y can only be measured indirectly based on the probability distribution generated by the algorithm.

与经典计算机不同,量子计算机能够通过量子叠加以特定比例同时处理数字的任何组合。 换句话说,可以对位配置的波动函数运行算法,每个位配置都具有类似旋转的相位和相对大小。 问题是,尽管x灵活得多,但M必须是一个ary矩阵,而y只能根据算法生成的概率分布间接测量。

If you are looking for ways to better understand this computational model, I highly recommend Michael Nelsen’s Quantum Computing for the Determined YouTube series:

如果您正在寻找更好地理解这种计算模型的方法,我强烈建议Michael Nelsen的“确定的 YouTube”系列的“ 量子计算 ”:

Now is where things begin to get interesting for those already familiar with the above topics. The vectors |0⟩ and |1⟩ form a basis in a two-dimensional space, and each Kronecker product doubles the number of dimensions in the system. As such, we end up with a countably infinite dimensionality.

现在对于已经熟悉上述主题的人来说,事情开始变得有趣起来。 向量|0⟩|1⟩在二维空间中形成基础 ,并且每个Kronecker乘积使系统中的维数加倍。 这样,我们最终得到了无限的维度。

The key concept that fascinates me is the ability to reinterpret each dimension as an entirely different chain of Kronecker products. By abstracting away the underlying architecture of bits or qubits, we can, for example, relabel the entire system using a three-dimensional basis of |0⟩, |1⟩, and |2⟩.

使我着迷的关键概念是能够将每个维度重新解释为完全不同的Kronecker产品链。 通过抽象化位或量子位的基础架构,例如,我们可以使用|0⟩|1⟩的三维基础重新标记整个系统。 和|2⟩

Natural numbers reinterpreted as a ternary tree.自然数重新解释为三叉树。
0  │0⟩ │0⟩ │0⟩ ...1  │1⟩ │0⟩ │0⟩ ...2  │2⟩ │0⟩ │0⟩ ...3  │0⟩ │1⟩ │0⟩ ...4  │1⟩ │1⟩ │0⟩ ...5  │2⟩ │1⟩ │0⟩ ...6  │0⟩ │2⟩ │0⟩ ...7  │1⟩ │2⟩ │0⟩ ...8  │2⟩ │2⟩ │0⟩ ...9  │0⟩ │0⟩ │1⟩ ...

In this sense, we can easily “simulate” any other basis simply by using a different numerical base for our vector indices. This concept has significant potential for discovering new quantum algorithms and languages.

从这个意义上讲,我们可以简单地通过对向量索引使用不同的数字基础来“模拟”任何其他基础。 这个概念对于发现新的量子算法和语言具有巨大的潜力。

Since the quantum computing ecosystem has not yet reached this level of abstraction, I made an experimental language designed around reinterpreting the dimensions of quantum systems. You can learn more by browsing the GitHub repository, skimming this article, or running the online examples.

由于量子计算生态系统尚未达到这种抽象水平,因此我设计了一种实验语言,旨在重新解释量子系统的维度。 您可以通过浏览GitHub存储库 ,浏览本文或运行在线示例来了解更多信息 。

FunQy :: High-Level Quantum ComputingFunQy ::高级量子计算

Let’s take this a step further. Since we can choose any interpretation of the space, it is possible to represent increasingly unusual structures.

让我们更进一步。 由于我们可以选择对空间的任何解释,因此有可能代表越来越不寻常的结构。

Natural numbers as a free commutative submagma.自然数作为自由的可交换子岩浆。

These systems can be simulated by one another by choosing a one-to-one mapping between states. In these examples, we use the natural numbers to define an arbitrary total order for each system. In practical situations, one might derive a total order based on the physical location of each qudit in the architecture.

通过选择状态之间的一对一映射,可以相互模拟这些系统。 在这些示例中,我们使用自然数为每个系统定义任意总顺序 。 在实际情况下,可能会基于体系结构中每个Qudit的物理位置来得出总顺序。

In essence, this layout is the semantic “file format” described in the previously mentioned notebook. We can now move on to explore how a sense of logical polymorphism emerges from this structure.

本质上,此布局是前面提到的笔记本中描述的语义“文件格式”。 现在,我们可以继续探索如何从这种结构中产生一种逻辑多态性。

As a brief recap of the relevant information in the notebook, it is possible to use the counting system shown above to recursively define concepts using a discrete semantic basis. Inspired by RDF and Hexastore, the system is designed for semantic representation and querying. Instead of using the slightly anthropocentric notion of subject-verb-object triples, we focus on a general formulation which corresponds to an infinite undirected recursively defined graph. In doing so, a “query” directly corresponds to an algorithm derived from the abstract high-level interpretation of a given model.

作为笔记本中相关信息的简要概述,可以使用上面显示的计数系统使用离散语义基础来递归定义概念。 受RDF和Hexastore的启发,该系统旨在进行语义表示和查询。 而不是使用主语-动词-宾语三元组的稍微以人为中心的概念,我们将重点放在对应于无限无向递归定义图的一般表述上。 在这种情况下,“查询”直接对应于从给定模型的抽象高级解释中得出的算法。

It turns out that in a quantum context, semantic models show some fascinating and useful behavior. Typically, given an initial state and a set of rules, one may continue to expand the state to encompass the full logical implications of the system. However, upon introducing the ability to superpose states and rules, the model generates a probability distribution as though each rule operated on all possible logical structures. Likewise, phase shifting can be used to distinguish between different types of logical outcomes. For instance, an input concept which uses the complex unit vector i can be interpreted as “this concept is definitely outside of the model.” After applying quantum phase estimation, one can identify the extent to which a statement is expected to be within the model assuming unknown as the default conclusion.

事实证明,在量子上下文中,语义模型显示出一些有趣而有用的行为。 通常,在给定初始状态和一组规则的情况下,可以继续扩展状态以涵盖系统的全部逻辑含义。 但是,一旦引入了叠加状态和规则的能力,该模型就会生成概率分布,就好像每个规则都在所有可能的逻辑结构上进行操作一样。 同样, 相移可用于区分不同类型的逻辑结果。 例如,使用复数单位向量i的输入概念可以解释为“此概念肯定在模型之外。” 在应用了量子相位估计之后 ,人们可以在未知的假设为默认结论的情况下,确定陈述在模型中的预期程度。

TLDR: you can interpret quantum superposition as a probability distribution of logical assertions. Likewise, you can use the phase of a quantum state to distinguish between two types of conclusions, such as “known to be true” and “known to be false” assuming unknown for everything else.

TLDR :您可以将量子叠加解释为逻辑断言的概率分布。 同样,您可以使用量子态的相位来区分两种类型的结论,例如“已知为真”和“已知为假”,并假设其他所有条件均未知。

In summary, it’s possible to design more intuitive quantum algorithms by relabeling the individual states of a quantum system, and this approach is ideal for expressing higher-order logic and semantic information.

总而言之,可以通过重新标记量子系统的各个状态来设计更直观的量子算法,并且该方法非常适合表示高阶逻辑和语义信息。

I hope that this article has given you some ideas and inspiration for your next project.

我希望本文能为您的下一个项目提供一些想法和启发。

Cheers!

干杯!

翻译自: https://medium.com/@ryanvandersmith/how-semantic-polymorphism-works-in-quantum-computing-65949e1ce6c5

语义计算


http://www.taodudu.cc/news/show-2912791.html

相关文章:

  • 点击父组件按钮 显示子组件_按钮设计用户界面组件系列
  • anna 跨域_认识anna morgiel的Android初级软件工程师和热情的社区组织者
  • SitePoint播客#94:新年快乐!
  • 神经网络历史_神经网络完整有趣且令人费解的历史
  • 如何安装svelte_svelte js框架介绍编译器
  • 英语邮件常用句子
  • 机器学习项目泰坦尼克号问题陈述
  • 中级职称英语计算机考试题库,全国中级职称英语考试试题
  • animals中文谐音_搞笑的英语句子谐音
  • 泰坦尼克号 机器学习_机器学习项目泰坦尼克号问题陈述
  • java英语句子_经典英语句子 (转) - HelloWorld 善战者,求之于势,不责于人;故能择人而任势。 - BlogJava...
  • 【吊打面试官】计算机基础知识
  • 第四扩展fs_四个fs
  • 利用Python爬虫获取招聘网站职位信息
  • 招聘信息获取途径
  • python爬虫招聘网站(智联)
  • 从潞晨到世界名校,实习生火热招聘中
  • 华为 2017 实习生招聘笔试题
  • 南方电网计算机招聘笔试,南方电网招聘笔试题(附答案).PDF
  • 爱奇艺2017校园招聘笔试题
  • python招聘现状-python招聘现状
  • 与传统招聘方式相比,小程序招聘都有哪些优势?
  • 又到招聘季,说说网络招聘的那些坑!!!
  • 历年茅台计算机招聘考试真题,2020贵州茅台招聘考试试题及答案(7)
  • Java爬虫 爬取某招聘网站招聘信息
  • 招聘宣言
  • 【米哈游】2022春季校园招聘
  • 人员招聘与培训实务【3】
  • 获取招聘网站下的HR-Email信息
  • EDG牛逼

语义计算_语义多态性如何在量子计算中起作用相关推荐

  1. python 量子计算包_ProjectQ:解锁Python实现量子计算的新方式!

    原标题:ProjectQ:解锁Python实现量子计算的新方式! [ ] [IT168 资讯]现在已经有很多软件框架可用于访问量子计算机,本文将要提到的ProjectQ就是其中之一.ProjectQ是 ...

  2. [量子计算-001]用一个例子解释量子计算

    量子计算是这样的:一个量子位可以同时表示0和1,也就是说,有一定的概率是0,有一定的概率是1,概率和是1,这一个很好理解,中学物理的波函数的概念.量子位没有被测量的时候,值是不定的,可能是0和1,如果 ...

  3. 可扩展量子计算的里程碑,量子点成为量子计算“拉锯战”中新的佼佼者

    中央处理器(CPU)是计算机的核心,通过使用半导体技术构建,这种技术允许在一个芯片上放置数十亿个晶体管.现在,QuTech的研究人员已经证明,半导体技术可以用来构建一个二维量子比特阵列,作为量子处理器 ...

  4. si9000阻抗匹配计算_如何在设计之初计算出两层PCB板差分线的阻抗,线宽,间距...

    最近在设计一款两层板PCB.板上一些高速信号线,分别是MIMP接口的差分线和USB2.0的差分线.既然是高速线,那么就需要设计成阻抗匹配走线.MIMP差分线需要做100ohm匹配,USB线需要做90o ...

  5. 阿贡国家实验室:量子中继器及其在量子网络中的作用

    很多人小时候都玩过传声筒游戏:A将消息小声告诉B,然后B将他听到的内容小声告诉C,依此类推,玩过的人都知道,最后传达到的信息往往和真实消息完全不同. 从某种意义上说,这和中继器技术的重要性强相关.中继 ...

  6. 天蓝色在ps中的色值_天蓝色AI服务在游戏世界中的作用

    天蓝色在ps中的色值 Welcome Back Readers, 欢迎读者, 介绍 (Introduction) I am Dhruv Trehan, Microsoft Student Partne ...

  7. gcn语义分割_语义分割该如何走下去?

    来自 | 知乎    编辑 | 深度学习这件小事链接 | https://www.zhihu.com/question/390783647本文仅供交流,如有侵权,请联系删除   问题语义分割该如何走下 ...

  8. 英语 语义分割_语义分割细度的文化成因与英语词语搭配

    语义分割细度的文化成因与英语词语搭配 吕英 [摘 要] 语言与文化双生双息--语言是文化最重要的载体 , 是文化的管窥.镜像 , 它承载着一个民族文化发生.发展和传承的全过程 ; 同时 , 文化又制约 ...

  9. python数学计算_初学者Python学习笔记--数学计算

    四则运算 加减乘除 1 + 2 3 10 - 6 4 5 * 5 25 20 / 5 4.0 3 ** 3 27 取整计算 13//3 4 取余数计算 13%3 1 计算顺序,括号>乘除> ...

最新文章

  1. 自建git服务器连接Pycharm系列二:在centos7上搭建git服务器
  2. 甘肃张掖祁连山境内出现雪豹
  3. vector 不是模板
  4. js字符串截取函数substr substring slice使用对比
  5. 编译成功但链接失败的原因
  6. html5 自动横屏,html5自动横屏的方法
  7. CCIE-LAB-第十六篇-NAT+OSPF下发默认路由+校验配置(模块一结束篇章)
  8. vue路由切换组件没有加载_Vue面试题: 如何实现路由懒加载?
  9. 3 天撸了个数据中台出来,我飘了~
  10. 我的内核学习笔记9:Intel内部看门狗iTCO_wdt驱动
  11. 用户交互输入--mtd-utils代码一例
  12. 【CCNA题库】Ti CCNA640-802V30版题库
  13. win10系统中如何查看wifi密码
  14. 樊登读书会掌控读后感_樊登读书刻意练习读后感
  15. matlab实现正割法求根和Aitken加速方法
  16. 【转载】IntelliJ IDEA 完美破解(2099年到期)
  17. asm 多工 控制文件
  18. 一个QQ空间的钓鱼盗号过程揭露,大家谨防上当
  19. ModuleNotFoundError: No module named ‘sentence_transformers‘
  20. Mysql中Page(页)和结构的认识

热门文章

  1. 前端项目的总结——为什么要组件化?
  2. 破解ESX主机ROOT帐户密码。
  3. Android自定义网络状态请求页面
  4. 马赛克与反马赛克技术
  5. Centos下openresty-1.19.9-1环境搭建
  6. 删除文件后,磁盘可用空间并没有释放怎么办?
  7. 使用Python实现QQ窗口抖动
  8. Delphi中的线程类--之(1)
  9. 2202年了,“小样本”还值得卷吗?
  10. C++头文件和源文件的编译过程