Data structure representing quantum program
A data structure and quantum technology, applied in the field of quantum computing, can solve the problems of simple judgment conditions of the control process and the inability to record the control process in the data structure recording quantum instructions, so as to realize the decoupling of software and hardware, improve development efficiency, and reduce workload Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0039] In order to solve the problem that the data structure for recording quantum instructions in the prior art cannot record the execution process, or the judgment conditions of the control process are too simple and do not reflect the concept of quantum circuits, a data structure representing quantum programs in the present invention is used to load quantum The data structure of the bit measurement value, which can load multiple measurement values, and provides a set of calculation system of this type of data structure, which defines the operation mechanism of basic operations such as addition, subtraction, or, and, of multiple measurement values .
[0040] refer to figure 1 , the data structure specifically includes quantum circuits, quantum programs, nodes, quantum logic gate nodes, control nodes, and judgment expression nodes. Wherein, the quantum circuit class is used to store a group of quantum logic gates in a container, and the order of the quantum logic gate queue ...
Embodiment 2
[0052] refer to figure 1 , the technical solution is basically the same as in Embodiment 1, and the difference from Embodiment 1 is that the control node class includes a conditional judgment control node class and a loop control node class. This design can facilitate developers to use conditional judgment sentences in quantum programs and loop statements.
[0053] The conditional judgment control node class is used to save the conditional judgment expression, the node of the correct branch of the jump, the target node of the failed branch of the jump, the target node of the jump after the judgment is correct, and the target node of the jump after the judgment fails.
[0054] The loop control node class is used to save the conditional judgment expression, the target node of the correct branch of the jump, and the target node of the jump after the judgment is correct. Wherein, the order of the node classes in the container is the execution timing of the nodes.
[0055] In thi...
Embodiment 3
[0127] A data structure representing a quantum program in this embodiment is basically the same as that in Embodiment 1, further:
[0128] The judgment expression node class includes logical operator node class and classic register node class.
[0129] Wherein, the logical operator node class is used to store logical operators of judgment expressions. The classical register node class is used for the classical register name, the measured value of the target qubit obtained by the measurement. The role of the classical register node class is to obtain the measured value of the target qubit obtained by measurement. The measured value of the qubit is stored in the memory of the classical computer or the memory of the peripheral components of the classical computer (such as FPGA) after measurement. The classical register node class provides an interface for reading the measured value to read the data of the target memory address or send it to A peripheral component (such as an FP...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com