Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and system for realizing conditional statements by quantum computer

A technology of quantum computer and conditional statement, applied in the field of quantum computing, can solve the problem that quantum computer cannot realize conditional statement and so on

Active Publication Date: 2021-07-20
GUANGDONG UNIV OF TECH
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In order to overcome the defect that the quantum computer cannot realize the conditional statement in the above-mentioned prior art, the present invention provides a method and system for the quantum computer to realize the conditional statement

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system for realizing conditional statements by quantum computer
  • Method and system for realizing conditional statements by quantum computer
  • Method and system for realizing conditional statements by quantum computer

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0034] The if / then / else conditional statement in classical computing means "if (meeting the i-th condition) then (executing the i-th operation)"; in this embodiment, a method for implementing a conditional statement by a quantum computer is provided, Described method step flow process is as figure 1 As shown, the method includes the following steps:

[0035] S1: Two quantum registers are used as the control register and the target register respectively; in this embodiment, the control register and the target register are both multi-state systems, and are not limited to a single qubit with only two orthogonal states; In other embodiments of the present invention, both the control register and the target register can also use a single qubit with only two orthogonal states.

[0036] S2: Select a projection operator P for the control register i , such that the i-th condition is satisfied, the projection operator P i Will project successfully, select a unitary operator U for the...

Embodiment 2

[0049] This embodiment provides a construction method of a controlled-NOT (c-NOT) gate. The function of the controlled-NOT gate is defined as: when it acts on two registers A and B, if A's If the content is 0, keep the content of B unchanged; if the content of A is 1, reverse the content of B (that is, change 0 to 1, and change 1 to 0). Note that the two registers here only store 1 bit of information, that is, their contents are only selected from 0 and 1, not 2, 3... and other higher values.

[0050] That is equivalent to the following if / then logic:

[0051] If the 0th condition is met, that is, when the content of the control register A is 0,

[0052] Then execute the 0th operation: keep the target register B unchanged;

[0053] If the first condition is met, that is, when the content of the control register A is 1,

[0054] then executes the first operation: inverting the target register B.

[0055] Using a quantum computer to accomplish this task, the control register...

Embodiment 3

[0064] This embodiment provides a method for constructing a controlled-SWAP (c-SWAP) gate, also known as a Fredkin gate. The controlled-SWAP gate is a logic gate about three registers A, B and C, Where B and C are target registers.

[0065] The function of the controlled exchange gate is defined as: if the content of the control register A is 0, keep the contents of B and C unchanged; otherwise, if the content of A is 1, swap the contents of B and C.

[0066] That is equivalent to the following if / then logic:

[0067] If the 0th condition is met, that is, when the content of the control register A is 0,

[0068] Then execute the 0th operation: keep the target registers B and C unchanged;

[0069] If the first condition is met, that is, when the content of the control register A is 1,

[0070] then executes the first operation: swap the contents of the target registers B and C.

[0071] Same as Embodiment 2, when constructing its quantum form, the conditional statement is t...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a method and system for realizing conditional statements by a quantum computer. The method comprises the following steps: respectively taking two quantum registers as a control register and a target register; selecting a projection operator Pi for the control register; selecting a projection operator Ui for the target register; and calculating the direct product of the projection operators Pi and Ui, then summing all i, and simultaneously executing operations corresponding to all conditions in a quantum superposition mode. By calculating the direct product of the operator Pi and the operator Ui, the Pi is successfully projected, and then the Ui executes the corresponding operation, so that the conditional statement of the quantum computer is realized, and the defect that the conventional quantum computer cannot realize the conditional statement is overcome.

Description

technical field [0001] The invention relates to the technical field of quantum computing, and more specifically, to a method and system for realizing conditional statements by a quantum computer. Background technique [0002] The classical computer is one of the most important inventions in the 20th century, which has had an extremely important impact on human production and social activities. Its application fields have expanded from the initial military scientific research applications to various fields of society, and a huge scale has been formed. The computer industry has driven technological progress on a global scale, which has triggered profound social changes and has become an indispensable tool in the information society. [0003] One of the powerful functions of classical computers is that they can automatically judge which preset conditions are met according to instructions or data, and make corresponding operations, which makes it have good performance in automat...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/30G06N10/00
CPCG06F8/31G06N10/00Y02D10/00
Inventor 何广平王帮海
Owner GUANGDONG UNIV OF TECH