Adaptive hybrid operator data processing method and device based on quantum bits
By directly constructing quantum circuits using a qubit-based adaptive hybrid operator data processing method, the inefficiency problem in existing technologies is solved, and a fast and efficient hybrid operator route is realized, which is suitable for adaptive hybrid operator data processing in quantum computing.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CCB FINTECH CO LTD
- Filing Date
- 2023-09-14
- Publication Date
- 2026-04-14
AI Technical Summary
In existing technologies, adaptive construction of hybrid operators suffers from low efficiency and long processing time on qubits, especially when the classical information of the quantum state is unknown, making effective mixing impossible. Furthermore, traditional methods require classical bit operations.
An adaptive hybrid operator data processing method based on qubits is adopted. By directly constructing quantum circuits and using quantum gates such as controllable NOT gates, invertible logic gates, and multi-control bit rotation gates, the hybrid operator route is automatically determined, avoiding classical bit operations.
A fast and efficient hybrid operator route was realized under the condition of unknown quantum state classical information, which reduced processing time and improved efficiency, and is suitable for adaptive hybrid operator data processing in quantum computing.
Smart Images

Figure CN117094408B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of quantum computing, specifically to an adaptive hybrid operator data processing method and apparatus based on qubits. Background Technology
[0002] VQE (Variational Quantum Eigenvalue Solver) is a quantum computer-based algorithm used to solve for the ground-state energy and related properties of quantum systems. VQE algorithms have wide applications, such as energy calculations for chemical reactions and materials simulations. The main idea of VQE algorithms is to use a variational quantum circuit to approximate the ground-state energy of the quantum system, and the parameters of this variational quantum circuit are optimized using classical optimization algorithms. Typically, these optimization algorithms are of the form of gradient descent, aiming to make the expected value of the variational circuit's output, under optimized parameters, as close as possible to the ground-state energy of the quantum system.
[0003] Fuchs et al. proposed an adaptive scheme for constructing hybrid operators. However, while the operators designed in this scheme can achieve partial mixing of quantum states within a set, the changes in quantum states outside the set are completely irregular. To some extent, this scheme cannot be used for some qubits, deviating from the original intention of hybrid operator design. Moreover, this scheme is based on classical bit operations, requiring bit copying and injection operations, which are not adaptable to qubits.
[0004] Applying a hybrid operator to a quantum state requires representing the hybrid operator as a quantum fundamental gate. The current mainstream approach is the staircase method, which has excessively deep circuitry and is time-consuming. Summary of the Invention
[0005] To address the problems in the prior art, this application provides an adaptive hybrid operator data processing method and apparatus based on qubits, which can efficiently, quickly and automatically determine the hybrid operator route.
[0006] To solve at least one of the above problems, this application provides the following technical solution:
[0007] In a first aspect, this application provides an adaptive hybrid operator data processing method based on qubits, comprising:
[0008] Convert the target data into binary code;
[0009] The binary code is input into a setting register, wherein the register contains a quantum initial state;
[0010] The register is applied to a set variable quantum circuit, the output of the variable quantum circuit is observed, and the circuit is tuned based on the difference between the observed result and the expected value. The hybrid operator route is determined based on the tuning result.
[0011] Further, after determining the hybrid operator route based on the optimization results, the process includes:
[0012] Initialize the parameters of the qubits and the variable quantum circuit, execute the variable quantum circuit on a quantum computer, and obtain its output results;
[0013] The expected value of the output result is calculated and compared with the ground state energy of the quantum system. Based on the comparison result, the parameters of the variable quantum circuit are adjusted and the variable quantum circuit is re-executed.
[0014] Furthermore, before inputting the binary code into the setting register, the method further includes:
[0015] Compare the bits of the registers in the preset register set to determine if there are any identical bits;
[0016] The corresponding setting register is determined based on the result of the judgment.
[0017] Furthermore, the variable quantum circuit includes at least one first controllable NOT gate, at least one first reversible logic gate, at least one second controllable NOT gate, at least one second reversible logic gate, and at least one multi-control bit rotation gate.
[0018] The control bit of the first controllable NOT gate is a qubit in the register, and the target bit of the first controllable NOT gate is a corresponding qubit in another register;
[0019] The control bits of the first reversible logic gate are the qubits in the other register excluding the key bits and the key bits in the register used for partial mixing operations. The target bits of the first reversible logic gate are the qubits in the register used for partial mixing operations excluding the key bits.
[0020] The control bit of the second controllable NOT gate is a quantum bit in the register excluding the key bit, and the target bit of the second controllable NOT gate is a quantum bit in the register used for partial mixing operations;
[0021] The control bit of the second reversible logic gate is a quantum bit in the other register excluding the key bit, and the target bit of the second reversible logic gate is a quantum bit in the register excluding the key bit.
[0022] Secondly, this application provides a qubit-based adaptive hybrid operator data processing device, comprising:
[0023] The encoding module is used to convert the target data into binary code;
[0024] A register input module is used to input the binary code into a setting register, wherein the register contains a quantum initial state;
[0025] The hybrid operator route calculation module is used to apply the register to a set variable quantum circuit, observe the output of the variable quantum circuit, optimize the circuit based on the difference between the observed result and the expected value, and determine the hybrid operator route based on the optimization result.
[0026] Furthermore, it also includes:
[0027] The circuit execution unit is used to initialize the parameters of the qubits and the variable quantum circuit, execute the variable quantum circuit on the quantum computer, and obtain its output results.
[0028] The parameter tuning unit is used to calculate the expected value of the output result, compare the expected value with the ground state energy of the quantum system, adjust the parameters of the variable quantum circuit according to the comparison result, and re-execute the variable quantum circuit.
[0029] Furthermore, it also includes:
[0030] The bit comparison unit is used to compare the bits of registers in a preset register set to determine whether there are any identical bits.
[0031] The register determination unit is used to determine the corresponding setting register based on the result of the judgment.
[0032] Thirdly, this application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the steps of the aforementioned quantum bit-based adaptive hybrid operator data processing method.
[0033] Fourthly, this application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the aforementioned quantum bit-based adaptive hybrid operator data processing method.
[0034] Fifthly, this application provides a computer program product, including a computer program / instructions that, when executed by a processor, implement the steps of the aforementioned qubit-based adaptive hybrid operator data processing method.
[0035] As can be seen from the above technical solution, this application provides an adaptive mixing operator data processing method and apparatus based on qubits. By directly constructing quantum circuits from a given set of quantum registers, it is faster and more efficient than the traditional method of constructing Hamiltonians and then representing them with quantum gates. Compared with other schemes, this method does not require classical bit injection operations and can achieve mixing even when the classical information of the quantum state is unknown. Mixing can still be achieved when the registers are in a superposition state. Attached Figure Description
[0036] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0037] Figure 1 This is one of the flowcharts illustrating the adaptive hybrid operator data processing method based on qubits in the embodiments of this application;
[0038] Figure 2 This is the second flowchart illustrating the adaptive hybrid operator data processing method based on qubits in the embodiments of this application;
[0039] Figure 3 This is the third flowchart illustrating the adaptive hybrid operator data processing method based on qubits in the embodiments of this application;
[0040] Figure 4 This is one of the structural diagrams of the qubit-based adaptive hybrid operator data processing device in the embodiments of this application;
[0041] Figure 5 This is a second structural diagram of the qubit-based adaptive hybrid operator data processing device in the embodiments of this application;
[0042] Figure 6 This is the third structural diagram of the qubit-based adaptive hybrid operator data processing device in the embodiments of this application;
[0043] Figure 7 This is a flowchart illustrating the construction of a qubit-based adaptive hybrid operator in a specific embodiment of this application.
[0044] Figure 8 This is a schematic diagram of the variable quantum circuit structure in a specific embodiment of this application;
[0045] Figure 9 This is a schematic diagram of the structure of the electronic device in the embodiments of this application. Detailed Implementation
[0046] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0047] The acquisition, storage, use, and processing of data in this application all comply with the relevant provisions of national laws and regulations.
[0048] Considering that the mixing operator must be represented as a quantum gate when applied to a quantum state, the current mainstream method, the staircase method, suffers from problems such as excessive circuit depth and long processing time. This application provides an adaptive mixing operator data processing method and apparatus based on qubits. By directly constructing quantum circuits from a given set of quantum registers, this method is faster and more efficient than the traditional method of constructing Hamiltonians and then representing them with quantum gates. Compared to other schemes, this method does not require classical bit injection operations and can achieve mixing even when the classical information of the quantum state is unknown. Mixing can still be achieved when the registers are in a superposition state.
[0049] To efficiently, quickly, and automatically determine the hybrid operator route, this application provides an embodiment of an adaptive hybrid operator data processing method based on qubits. See [link to embodiment]. Figure 1 The adaptive hybrid operator data processing method based on qubits specifically includes the following:
[0050] Step S101: Convert the target data into binary code;
[0051] Step S102: Input the binary code into the setting register, wherein the register contains the quantum initial state;
[0052] Step S103: Apply the register to the set variable quantum circuit, observe the output of the variable quantum circuit, and optimize it according to the difference between the observation result and the expected value. Determine the hybrid operator route according to the optimization result.
[0053] The variable quantum circuit includes at least one first controllable NOT gate, at least one first reversible logic gate, at least one second controllable NOT gate, at least one second reversible logic gate, and at least one multi-control bit rotation gate.
[0054] The control bit of the first controllable NOT gate is a qubit in the register, and the target bit of the first controllable NOT gate is a corresponding qubit in another register;
[0055] The control bits of the first reversible logic gate are the qubits in the other register excluding the key bits and the key bits in the register used for partial mixing operations. The target bits of the first reversible logic gate are the qubits in the register used for partial mixing operations excluding the key bits.
[0056] The control bit of the second controllable NOT gate is a quantum bit in the register excluding the key bit, and the target bit of the second controllable NOT gate is a quantum bit in the register used for partial mixing operations;
[0057] The control bit of the second reversible logic gate is a quantum bit in the other register excluding the key bit, and the target bit of the second reversible logic gate is a quantum bit in the register excluding the key bit.
[0058] Optionally, the variable quantum circuit of this application can be constructed and implemented through the following steps:
[0059] The first step is to select a suitable pair of registers, A i With A i+1 If i = n, then choose A. n And A1. Then select the active bit register C.
[0060] The second step involves applying the designed quantum circuit in the selected register. For convenience, A... i With A i+1 Let them be denoted as A and B respectively. Here, k is an important parameter; the k-th qubit of register C is the key bit, distinguishing it from the other qubits.
[0061] See Figure 8The circuit consists of the following parts: ① A series of CNOT gates: the control bits are each qubit in register A, and the target bit is the corresponding qubit in register B. The relative indices of the control bits and target bits are consistent within their respective registers. ② A series of Toffoli gates: the control bits are each qubit in register B (excluding k) and the k-th qubit in register C, and the target bits are each qubit in register C (excluding k). ③ A series of Toffoli gates: the control bits are each qubit in register B (excluding k) and the k-th qubit in register A, and the target bits are each qubit in register A (excluding k). ④ A series of CNOT gates: the control bits are each qubit in register A (excluding k), and the target bit is the corresponding qubit in register C. The relative indices of the control bits and target bits are consistent within their respective registers. ⑤ A multi-control bit RX gate, where the black dot control bit is the k-th qubit in register B, and the white dot control each qubit in register C (excluding k). ⑥ The inverse gates of the quantum gates described in steps ④③②① appear to be symmetrical because the inverse gates of the Tofoli and CNOT gates are themselves.
[0062] Step 3: Starting from k=1 and ending at k=m, the quantum circuits designed in step 2, with different k as inputs, are applied to the register in step 1 in turn.
[0063] The fourth step is to determine if i equals n. If yes, the process ends. If no, increment i by 1 and repeat steps one through three.
[0064] The final hybrid operator circuit can be considered to consist of n large blocks, each of which consists of m small blocks, and these small blocks are all in the form shown above. Figure 8 The structure.
[0065] As described above, the qubit-based adaptive mixing operator data processing method provided in this application can directly construct quantum circuits from a given set of quantum registers. Compared to traditional methods that construct Hamiltonians and then represent them using quantum gates, this method is faster and more efficient. Compared to other schemes, this method does not require classical bit injection operations and can achieve mixing even when the classical information of the quantum state is unknown. Mixing can still be achieved when the registers are in a superposition state.
[0066] In one embodiment of the qubit-based adaptive hybrid operator data processing method of this application, see [link to relevant documentation]. Figure 2 After determining the hybrid operator route based on the optimization results, the process includes:
[0067] Step S201: Initialize the parameters of the qubits and the variable quantum circuit, execute the variable quantum circuit on the quantum computer, and obtain its output results;
[0068] Step S202: Calculate the expected value of the output result, compare the expected value with the ground state energy of the quantum system, adjust the parameters of the variable quantum circuit according to the comparison result, and re-execute the variable quantum circuit.
[0069] In one embodiment of the qubit-based adaptive hybrid operator data processing method of this application, see [link to relevant documentation]. Figure 3 It can also specifically include the following:
[0070] Step S301: Compare the bits of the registers in the preset register set to determine if there are any identical bits;
[0071] Step S302: Determine the corresponding setting register based on the result of the judgment.
[0072] It is understandable that a series of registers A1, A2, ..., A n They respectively store quantum states |ψ1〉, |ψ2〉, ..., |ψ n Its quantum state can be either a superposition or a singlet, and classical measurement results are not required to be known. These registers serve as auxiliary bits for designing hybrid operator circuits to partially mix within them.
[0073] To efficiently, quickly, and automatically determine the hybrid operator route, this application provides an embodiment of a qubit-based adaptive hybrid operator data processing apparatus for implementing all or part of the aforementioned qubit-based adaptive hybrid operator data processing method. See [link to embodiment]. Figure 4 The aforementioned quantum bit-based adaptive hybrid operator data processing device specifically includes the following components:
[0074] Encoding module 10 is used to convert target data into binary code;
[0075] Register input module 20 is used to input the binary code into a setting register, wherein the register contains a quantum initial state;
[0076] The hybrid operator route calculation module 30 is used to apply the register to a set variable quantum circuit, observe the output of the variable quantum circuit, optimize the output based on the difference between the observed result and the expected value, and determine the hybrid operator route based on the optimization result.
[0077] The variable quantum circuit includes at least one first controllable NOT gate, at least one first reversible logic gate, at least one second controllable NOT gate, at least one second reversible logic gate, and at least one multi-control bit rotation gate.
[0078] The control bit of the first controllable NOT gate is a qubit in the register, and the target bit of the first controllable NOT gate is a corresponding qubit in another register;
[0079] The control bits of the first reversible logic gate are the qubits in the other register excluding the key bits and the key bits in the register used for partial mixing operations. The target bits of the first reversible logic gate are the qubits in the register used for partial mixing operations excluding the key bits.
[0080] The control bit of the second controllable NOT gate is a quantum bit in the register excluding the key bit, and the target bit of the second controllable NOT gate is a quantum bit in the register used for partial mixing operations;
[0081] The control bit of the second reversible logic gate is a quantum bit in the other register excluding the key bit, and the target bit of the second reversible logic gate is a quantum bit in the register excluding the key bit.
[0082] As described above, the qubit-based adaptive hybrid operator data processing device provided in this application can directly construct quantum circuits from a given set of quantum registers. Compared to the traditional method of constructing Hamiltonians and then representing them with quantum gates, this method is faster and more efficient. Compared to other schemes, this method does not require classical bit injection operations and can achieve hybridization even when the classical information of the quantum state is unknown. Hybridization can still be achieved when the registers are in a superposition state.
[0083] In one embodiment of the qubit-based adaptive hybrid operator data processing device of this application, see [link to relevant documentation]. Figure 5 It also includes:
[0084] The circuit execution unit 41 is used to initialize the parameters of the qubit and the variable quantum circuit, execute the variable quantum circuit on the quantum computer, and obtain its output results.
[0085] The parameter tuning unit 42 is used to calculate the expected value of the output result, compare the expected value with the ground state energy of the quantum system, adjust the parameters of the variable quantum circuit according to the comparison result, and re-execute the variable quantum circuit.
[0086] In one embodiment of the qubit-based adaptive hybrid operator data processing device of this application, see [link to relevant documentation]. Figure 6 It also includes:
[0087] Bit comparison unit 51 is used to compare the bits of registers in a preset register set to determine whether there are any identical bits.
[0088] Register determination unit 52 is used to determine the corresponding setting register based on the result of the judgment.
[0089] To further illustrate this solution, this application also provides a specific application example of implementing the qubit-based adaptive hybrid operator data processing method using the aforementioned qubit-based adaptive hybrid operator data processing device, which specifically includes the following:
[0090] See Figure 7 The construction steps of the adaptive hybrid operator based on qubits include:
[0091] enter:
[0092] 1) The number of iterations i is initially 1, and is incremented by 1 in each iteration until it equals n.
[0093] 2) A series of registers A1, A2, ..., A n They respectively store quantum states |ψ1〉, | ψ >, ..., |ψ n Its quantum state can be either a superposition or a singlet, and classical measurement results are not required to be known. These registers serve as auxiliary bits for designing hybrid operator circuits to partially mix within them.
[0094] 3) Register C, the register actually used for partial mixing operations. Generally, in the initialization circuit of the VQE algorithm, the quantum states stored in register C should be |ψ1>, |ψ2>, ..., |ψ n One of the states in >, or one of the single states represented by the superposition state. The initialization step of the quantum state in C is not considered a function of the hybrid operator circuit, and the initialization is relatively simple, so this step is omitted.
[0095] The first step is to select a suitable pair of registers, A i With A i+1 If i = n, then choose A. n And A1. Then select the active bit register C.
[0096] The second step involves applying the designed quantum circuit in the selected register. For convenience, A... i With A i+1 Let them be denoted as A and B respectively. Here, k is an important parameter; the k-th qubit of register C is the key bit, distinguishing it from the other qubits.
[0097] See Figure 8The circuit consists of the following parts: ① A series of CNOT gates: the control bits are each qubit in register A, and the target bit is the corresponding qubit in register B. The relative indices of the control bits and target bits are consistent within their respective registers. ② A series of Toffoli gates: the control bits are each qubit in register B (excluding k) and the k-th qubit in register C, and the target bits are each qubit in register C (excluding k). ③ A series of Toffoli gates: the control bits are each qubit in register B (excluding k) and the k-th qubit in register A, and the target bits are each qubit in register A (excluding k). ④ A series of CNOT gates: the control bits are each qubit in register A (excluding k), and the target bit is the corresponding qubit in register C. The relative indices of the control bits and target bits are consistent within their respective registers. ⑤ A multi-control bit RX gate, where the black dot control bit is the k-th qubit in register B, and the white dot control each qubit in register C (excluding k). ⑥ The inverse gates of the quantum gates described in steps ④③②① appear to be symmetrical because the inverse gates of the Tofoli and CNOT gates are themselves.
[0098] Step 3: Starting from k=1 and ending at k=m, the quantum circuits designed in step 2, with different k as inputs, are applied to the register in step 1 in turn.
[0099] The fourth step is to determine if i equals n. If yes, the process ends. If no, increment i by 1 and repeat steps one through three.
[0100] The final hybrid operator circuit can be considered to consist of n large blocks, each of which consists of m small blocks, and these small blocks are all in the form shown above. Figure 8 The structure.
[0101] As described above, this application directly constructs quantum circuits from a given set of quantum registers, which is faster and more efficient than the traditional method of constructing Hamiltonians and then representing them with quantum gates. Compared to other schemes, this method does not require classical bit injection operations and can achieve mixing even when the classical information of the quantum state is unknown. Mixing can still be achieved when the registers exist in a superposition state.
[0102] From a hardware perspective, in order to efficiently, quickly, and automatically determine the hybrid operator route, this application provides an embodiment of an electronic device for implementing all or part of the aforementioned qubit-based adaptive hybrid operator data processing method. The electronic device specifically includes the following components:
[0103] The system comprises a processor, memory, a communication interface, and a bus; wherein the processor, memory, and communication interface communicate with each other via the bus; the communication interface is used to realize information transmission between the qubit-based adaptive hybrid operator data processing device and core business systems, user terminals, and related databases and other related devices; the logic controller can be a desktop computer, tablet computer, or mobile terminal, etc., and this embodiment is not limited to these. In this embodiment, the logic controller can be implemented with reference to the embodiments of the qubit-based adaptive hybrid operator data processing method and the embodiments of the qubit-based adaptive hybrid operator data processing device, the contents of which are incorporated herein by reference, and repeated details will not be described again.
[0104] It is understood that the user terminal may include smartphones, tablet computers, network set-top boxes, portable computers, desktop computers, personal digital assistants (PDAs), in-vehicle devices, smart wearable devices, etc. Among these, the smart wearable devices may include smart glasses, smartwatches, smart bracelets, etc.
[0105] In practical applications, parts of the qubit-based adaptive hybrid operator data processing method can be executed on the electronic device side as described above, or all operations can be completed in the client device. The choice can be made based on the processing power of the client device and the limitations of the user's usage scenario. This application does not impose any limitations on this. If all operations are completed in the client device, the client device may further include a processor.
[0106] The aforementioned client device may have a communication module (i.e., a communication unit) that can communicate with a remote server to achieve data transmission. The server may include a server on the task scheduling center side; in other implementation scenarios, it may also include a server on an intermediate platform, such as a server on a third-party server platform that has a communication link with the task scheduling center server. The server may include a single computer device, a server cluster consisting of multiple servers, or a distributed server structure.
[0107] Figure 9 This is a schematic block diagram illustrating the system configuration of the electronic device 9600 according to an embodiment of this application. Figure 9 As shown, the electronic device 9600 may include a central processing unit 9100 and a memory 9140; the memory 9140 is coupled to the central processing unit 9100. It is worth noting that... Figure 9 This is an example; other types of structures can also be used to supplement or replace this structure to achieve telecommunications functions or other functions.
[0108] In one embodiment, the adaptive hybrid operator data processing method based on qubits can be integrated into the central processing unit 9100. The central processing unit 9100 can be configured to perform the following control:
[0109] Step S101: Convert the target data into binary code;
[0110] Step S102: Input the binary code into the setting register, wherein the register contains the quantum initial state;
[0111] Step S103: Apply the register to the set variable quantum circuit, observe the output of the variable quantum circuit, and optimize it according to the difference between the observation result and the expected value. Determine the hybrid operator route according to the optimization result.
[0112] The variable quantum circuit includes at least one first controllable NOT gate, at least one first reversible logic gate, at least one second controllable NOT gate, at least one second reversible logic gate, and at least one multi-control bit rotation gate.
[0113] The control bit of the first controllable NOT gate is a qubit in the register, and the target bit of the first controllable NOT gate is a corresponding qubit in another register;
[0114] The control bits of the first reversible logic gate are the qubits in the other register excluding the key bits and the key bits in the register used for partial mixing operations. The target bits of the first reversible logic gate are the qubits in the register used for partial mixing operations excluding the key bits.
[0115] The control bit of the second controllable NOT gate is a quantum bit in the register excluding the key bit, and the target bit of the second controllable NOT gate is a quantum bit in the register used for partial mixing operations;
[0116] The control bit of the second reversible logic gate is a quantum bit in the other register excluding the key bit, and the target bit of the second reversible logic gate is a quantum bit in the register excluding the key bit.
[0117] As described above, the electronic device provided in this application, by directly constructing quantum circuits from a given set of quantum registers, is faster and more efficient than the traditional method of constructing Hamiltonians and then representing them with quantum gates. Compared to other schemes, this method does not require classical bit injection operations and can achieve mixing even when the classical information of the quantum state is unknown. Mixing can still be achieved when the registers exist in a superposition state.
[0118] In another embodiment, the qubit-based adaptive hybrid operator data processing device can be configured separately from the central processing unit 9100. For example, the qubit-based adaptive hybrid operator data processing device can be configured as a chip connected to the central processing unit 9100, and the qubit-based adaptive hybrid operator data processing method function can be implemented through the control of the central processing unit.
[0119] like Figure 9 As shown, the electronic device 9600 may further include: a communication module 9110, an input unit 9120, an audio processor 9130, a display 9160, and a power supply 9170. It is worth noting that the electronic device 9600 does not necessarily need to include these components. Figure 9 All components shown; in addition, the electronic device 9600 may also include Figure 9 For components not shown, please refer to existing technology.
[0120] like Figure 9 As shown, the central processing unit 9100, sometimes also referred to as a controller or operating control, may include a microprocessor or other processor device and / or logic device, which receives inputs and controls the operation of various components of the electronic device 9600.
[0121] The memory 9140 may be, for example, one or more of a cache, flash memory, hard drive, removable media, volatile memory, non-volatile memory, or other suitable devices. It may store the aforementioned failure-related information, and also store a program for executing that information. The central processing unit 9100 may execute the program stored in the memory 9140 to perform information storage or processing, etc.
[0122] Input unit 9120 provides input to central processing unit 9100. Input unit 9120 may be, for example, a keypad or touch input device. Power supply 9170 provides power to electronic device 9600. Display 9160 displays images and text. Display may be, for example, an LCD display, but is not limited thereto.
[0123] The memory 9140 can be a solid-state memory, such as a read-only memory (ROM), random access memory (RAM), a SIM card, etc. It can also be a memory that retains information even when power is off, can be selectively erased, and contains more data; examples of this type of memory are sometimes referred to as EPROMs. The memory 9140 can also be some other type of device. The memory 9140 includes a buffer memory 9141 (sometimes referred to as a buffer). The memory 9140 may include an application / function storage unit 9142 for storing application programs and function programs or processes for executing the operation of the electronic device 9600 via the central processing unit 9100.
[0124] The memory 9140 may also include a data storage unit 9143 for storing data, such as contacts, digital data, pictures, sounds, and / or any other data used by the electronic device. The driver storage unit 9144 of the memory 9140 may include various drivers for the electronic device's communication functions and / or for performing other functions of the electronic device (such as messaging applications, address book applications, etc.).
[0125] The communication module 9110 is a transmitter / receiver 9110 that transmits and receives signals via the antenna 9111. The communication module (transmitter / receiver) 9110 is coupled to the central processing unit 9100 to provide input signals and receive output signals, which can be the same as in a conventional mobile communication terminal.
[0126] Based on different communication technologies, multiple communication modules 9110 can be configured in the same electronic device, such as cellular network modules, Bluetooth modules, and / or wireless LAN modules. The communication module (transmitter / receiver) 9110 is also coupled to a speaker 9131 and a microphone 9132 via an audio processor 9130 to provide audio output via the speaker 9131 and receive audio input from the microphone 9132, thereby realizing typical telecommunications functions. The audio processor 9130 may include any suitable buffer, decoder, amplifier, etc. Additionally, the audio processor 9130 is coupled to a central processing unit 9100, enabling on-device recording via the microphone 9132 and on-device playback of stored sound via the speaker 9131.
[0127] Embodiments of this application also provide a computer-readable storage medium capable of implementing all steps of the qubit-based adaptive hybrid operator data processing method with a server or client as the execution subject in the above embodiments. The computer-readable storage medium stores a computer program that, when executed by a processor, implements all steps of the qubit-based adaptive hybrid operator data processing method with a server or client as the execution subject in the above embodiments. For example, when the processor executes the computer program, it implements the following steps:
[0128] Step S101: Convert the target data into binary code;
[0129] Step S102: Input the binary code into the setting register, wherein the register contains the quantum initial state;
[0130] Step S103: Apply the register to the set variable quantum circuit, observe the output of the variable quantum circuit, and optimize it according to the difference between the observation result and the expected value. Determine the hybrid operator route according to the optimization result.
[0131] The variable quantum circuit includes at least one first controllable NOT gate, at least one first reversible logic gate, at least one second controllable NOT gate, at least one second reversible logic gate, and at least one multi-control bit rotation gate.
[0132] The control bit of the first controllable NOT gate is a qubit in the register, and the target bit of the first controllable NOT gate is a corresponding qubit in another register;
[0133] The control bits of the first reversible logic gate are the qubits in the other register excluding the key bits and the key bits in the register used for partial mixing operations. The target bits of the first reversible logic gate are the qubits in the register used for partial mixing operations excluding the key bits.
[0134] The control bit of the second controllable NOT gate is a quantum bit in the register excluding the key bit, and the target bit of the second controllable NOT gate is a quantum bit in the register used for partial mixing operations;
[0135] The control bit of the second reversible logic gate is a quantum bit in the other register excluding the key bit, and the target bit of the second reversible logic gate is a quantum bit in the register excluding the key bit.
[0136] As described above, the computer-readable storage medium provided in this application directly constructs quantum circuits from a given set of quantum registers. This method is faster and more efficient than the traditional method of constructing Hamiltonians and then representing them with quantum gates. Compared to other schemes, this method does not require classical bit injection operations and can achieve mixing even when the classical information of the quantum state is unknown. Mixing can still be achieved when the registers are in a superposition state.
[0137] Embodiments of this application also provide a computer program product capable of implementing all steps of the qubit-based adaptive hybrid operator data processing method described above, where the execution subject is a server or client. When executed by a processor, this computer program / instruction implements the steps of the qubit-based adaptive hybrid operator data processing method. For example, the computer program / instruction implements the following steps:
[0138] Step S101: Convert the target data into binary code;
[0139] Step S102: Input the binary code into the setting register, wherein the register contains the quantum initial state;
[0140] Step S103: Apply the register to the set variable quantum circuit, observe the output of the variable quantum circuit, and optimize it according to the difference between the observation result and the expected value. Determine the hybrid operator route according to the optimization result.
[0141] The variable quantum circuit includes at least one first controllable NOT gate, at least one first reversible logic gate, at least one second controllable NOT gate, at least one second reversible logic gate, and at least one multi-control bit rotation gate.
[0142] The control bit of the first controllable NOT gate is a qubit in the register, and the target bit of the first controllable NOT gate is a corresponding qubit in another register;
[0143] The control bits of the first reversible logic gate are the qubits in the other register excluding the key bits and the key bits in the register used for partial mixing operations. The target bits of the first reversible logic gate are the qubits in the register used for partial mixing operations excluding the key bits.
[0144] The control bit of the second controllable NOT gate is a quantum bit in the register excluding the key bit, and the target bit of the second controllable NOT gate is a quantum bit in the register used for partial mixing operations;
[0145] The control bit of the second reversible logic gate is a quantum bit in the other register excluding the key bit, and the target bit of the second reversible logic gate is a quantum bit in the register excluding the key bit.
[0146] As described above, the computer program product provided in this application directly constructs quantum circuits from a given set of quantum registers, which is faster and more efficient than the traditional method of constructing Hamiltonians and then representing them with quantum gates. Compared to other schemes, this method does not require classical bit injection operations and can achieve mixing even when the classical information of the quantum state is unknown. Mixing can still be achieved when the registers are in a superposition state.
[0147] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, apparatus, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0148] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (devices), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0149] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0150] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0151] Specific embodiments have been used to illustrate the principles and implementation methods of this invention. The descriptions of the embodiments above are only for the purpose of helping to understand the method and core ideas of this invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this invention. Therefore, the content of this specification should not be construed as a limitation of this invention.
Claims
1. A qubit-based adaptive hybrid operator data processing method, characterized in that, The method includes: Convert the target data into binary code; The binary code is input into a setting register, wherein the register contains a quantum initial state; The register is applied to the set variable quantum circuit, the output of the variable quantum circuit is observed, and the difference between the observed result and the expected value is used for optimization. The hybrid operator route is determined based on the optimization result. Initialize the parameters of the qubits and the variable quantum circuit, execute the variable quantum circuit on a quantum computer, and obtain its output results; Calculate the expected value of the output result, compare the expected value with the ground state energy of the quantum system, adjust the parameters of the variable quantum circuit according to the comparison result, and re-execute the variable quantum circuit; The variable quantum circuit includes at least one first controllable NOT gate, at least one first reversible logic gate, at least one second controllable NOT gate, at least one second reversible logic gate, and at least one multi-control bit rotation gate. The control bit of the first controllable NOT gate is a qubit in the register, and the target bit of the first controllable NOT gate is a corresponding qubit in another register; The control bits of the first reversible logic gate are the qubits in the other register excluding the key bits and the key bits in the register used for partial mixing operations. The target bits of the first reversible logic gate are the qubits in the register used for partial mixing operations excluding the key bits. The control bit of the second controllable NOT gate is a quantum bit in the register excluding the key bit, and the target bit of the second controllable NOT gate is a quantum bit in the register used for partial mixing operations; The control bit of the second reversible logic gate is a quantum bit in the other register excluding the key bit, and the target bit of the second reversible logic gate is a quantum bit in the register excluding the key bit.
2. The adaptive hybrid operator data processing method based on qubits according to claim 1, characterized in that, Before inputting the binary code into the setting register, the method further includes: Compare the bits of the registers in the preset register set to determine if there are any identical bits; The corresponding setting register is determined based on the result of the judgment.
3. A quantum bit-based adaptive hybrid operator data processing device, characterized in that, include: The encoding module is used to convert the target data into binary code; A register input module is used to input the binary code into a setting register, wherein the register contains a quantum initial state; The hybrid operator route calculation module is used to apply the register to a set variable quantum circuit, observe the output of the variable quantum circuit, optimize the output based on the difference between the observed result and the expected value, and determine the hybrid operator route based on the optimization result. Also includes: The circuit execution unit is used to initialize the parameters of the qubits and the variable quantum circuit, execute the variable quantum circuit on the quantum computer, and obtain its output results. The parameter tuning unit is used to calculate the expected value of the output result, compare the expected value with the ground state energy of the quantum system, adjust the parameters of the variable quantum circuit according to the comparison result, and re-execute the variable quantum circuit. The variable quantum circuit includes at least one first controllable NOT gate, at least one first reversible logic gate, at least one second controllable NOT gate, at least one second reversible logic gate, and at least one multi-control bit rotation gate. The control bit of the first controllable NOT gate is a qubit in the register, and the target bit of the first controllable NOT gate is a corresponding qubit in another register; The control bits of the first reversible logic gate are the qubits in the other register excluding the key bits and the key bits in the register used for partial mixing operations. The target bits of the first reversible logic gate are the qubits in the register used for partial mixing operations excluding the key bits. The control bit of the second controllable NOT gate is a quantum bit in the register excluding the key bit, and the target bit of the second controllable NOT gate is a quantum bit in the register used for partial mixing operations; The control bit of the second reversible logic gate is a quantum bit in the other register excluding the key bit, and the target bit of the second reversible logic gate is a quantum bit in the register excluding the key bit.
4. The adaptive hybrid operator data processing device based on qubits according to claim 3, characterized in that, Also includes: The bit comparison unit is used to compare the bits of registers in a preset register set to determine whether there are any identical bits. The register determination unit is used to determine the corresponding setting register based on the result of the judgment.
5. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the steps of the adaptive hybrid operator data processing method based on qubits as described in any one of claims 1 to 2.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the computer program implements the steps of the qubit-based adaptive hybrid operator data processing method according to any one of claims 1 to 2.