A method for quantum information encoding

Simplifying the circuit through ZX calculation solves the problem of lack of universal quantum information encoding method for real number signals and large circuit depth in the existing technology, achieves more concise and efficient quantum information encoding, and provides a universal encoding solution for real number signals.

CN115085823BActive Publication Date: 2024-10-01SOUTHEAST UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210713389.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-22
Publication Date
2024-10-01
Estimated Expiration
2042-06-22

AI Technical Summary

Technical Problem

The existing technology lacks a universal quantum information encoding method for real number signals and the problem of the deep depth of the original quantum encoding circuit.

Method used

ZX calculation is used to simplify the circuit, and the data after Nyquist sampling is compressed and normalized, encoded on the quantum basis, and the ZX graph is used to simplify and restore the circuit to realize quantum information encoding. Specific steps include data compression, encoding, quantum state preparation, conditional probability calculation, auxiliary bit encoding, ZX graph conversion and simplifying operations.

Benefits of technology

It achieves a more concise and efficient quantum information encoding circuit, reduces the circuit depth, and provides a universal quantum information encoding method for real number signals, improving the fidelity of encoding.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115085823B_ABST
    Figure CN115085823B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for encoding classical information into a quantum state, comprising: (1) compressing a discrete signal obtained after Nyquist sampling; (2) encoding the compressed data into a selected quantum basis as required; (3) designing a quantum circuit according to a theoretical process to realize the formulation of a quantum information encoding circuit; (4) simplifying and restoring the quantum information encoding circuit by using ZX calculation to simplify the quantum circuit; (5) preparing an encoded quantum state from an initial quantum state |0…00> through a simplified quantum information encoding circuit, and calculating the fidelity F. The method for quantum information encoding of the present invention combines ZX calculation rewriting, simplification rules and restoration back to quantum circuit methods, and can realize encoding classical information into a quantum state. The method is universal, optimizes the circuit structure, and can improve the simplicity and efficiency of quantum information encoding.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of quantum computing and quantum circuit optimization, and in particular relates to a method for quantum information encoding. Background Art

[0002] Quantum information coding is the process of encoding the classically sampled signal into a quantum basis. Since the classical signal includes the entire real number domain, quantum information coding must achieve arbitrary changes in the amplitude of the quantum basis, including positive and negative signs. The accuracy of quantum information coding can be described by fidelity, which is defined as 0≤F(ρ,σ)≤1, where ρ and σ are the density matrices of the two quantum states respectively. If both quantum states are pure states, the fidelity can be simplified to F(ρ,σ)=|<ψρ|ψσ>| 2 .

[0003] In the process of quantum information encoding, a general method for preparing an arbitrary quantum state from the initial state |0…0> is a key point. The existing technology includes methods for preparing quantum states that are only positive in amplitude, and machine learning methods to reduce circuit complexity. However, these methods are not general methods for quantum information encoding of real signals alone. Summary of the invention

[0004] The present invention aims to provide a method for quantum information encoding to solve the technical problems in the prior art that there is no universal quantum information encoding method for real number signals and the original quantum encoding circuit is too deep.

[0005] In order to solve the above technical problems, the specific technical solutions of the present invention are as follows:

[0006] A method for quantum information encoding, realizing a quantum information encoding circuit and simplifying the circuit using ZX calculation, comprises the following steps:

[0007] Step 1: compress the discrete signal obtained after Nyquist sampling;

[0008] Step 2: Encode the compressed data into the selected quantum basis according to the user's usage requirements;

[0009] Step 3: Design quantum circuits according to the process to achieve the formulation of quantum information encoding circuits;

[0010] The steps for formulating the quantum information encoding circuit are as follows:

[0011] Step 3.1, the discrete signal after data compression is normalized according to the arithmetic square root of the modulus sum;

[0012] Step 3.2, encode the normalized information into the amplitude and phase of the quantum bit to obtain the quantum state to be prepared;

[0013] Step 3.3, write the quantum state to be prepared in the form of conditional probability;

[0014] Step 3.4, calculate the quantum bit pre-coefficient according to the form of the conditional probability of the quantum state;

[0015] Step 3.5, expand the coefficients before the quantum bit into binary decimal form;

[0016] Step 3.6, encoding the value represented by the auxiliary bit into the amplitude phase of the target quantum bit through the auxiliary quantum bit;

[0017] Step 4: Use ZX calculation to simplify and restore the quantum information encoding circuit to simplify the quantum circuit;

[0018] Step 5: The initial quantum state |0…00> is used to prepare the encoded quantum state through a simplified quantum information encoding circuit, and the fidelity F is calculated.

[0019] Furthermore, in step 1, the sampled discrete information is compressed into classical data.

[0020] Furthermore, the rule for rewriting the quantum coding circuit into a ZX diagram in step 4 is as follows:

[0021] Step 4.1.1, the ZX diagram is a gray-white line diagram, in which the gray dots represent single-bit X rotation gates, and the phase mark is inside the dots; the white dots represent single-bit Z rotation gates, and the phase mark is inside the dots; in addition, the white boxes represent Hadamard gates;

[0022] Step 4.1.2: The quantum circuit is converted into a ZX diagram, the original connection remains unchanged, and the original quantum gate is converted into a node representation in the ZX diagram;

[0023] Step 4.1.3, the two-bit CNOT gate is rewritten as follows: the control end is represented by a white dot and the phase is zero, and the controlled end is represented by a gray dot and the phase is zero;

[0024] Step 4.1.4: The universal single-bit quantum gate is rewritten into a form of white dots, gray dots, and white dots connected to each other, and the influence of the global phase during the rewriting process is ignored.

[0025] Furthermore, in step 4, the quantum coding circuit is simplified and restored by ZX calculation, and the specific simplification operation includes:

[0026] Step 4.2.1, points of the same color are merged and their phases are added;

[0027] Step 4.2.2: When the white box passes through a point, the color of the point needs to be changed to the opposite color;

[0028] Step 4.2.3: If there are two lines connecting two points of different colors, these two lines can be eliminated at the same time;

[0029] Step 4.2.4, rewrite the structure of the phase tool equivalently to realize the CNOT gate distribution from ladder-like to tree-like.

[0030] Furthermore, the ZX calculation restoration operation includes: the inverse operation of the ZX rewriting rule and the implementation of the Gaussian elimination method.

[0031] A method for quantum information encoding of the present invention has the following advantages:

[0032] The present invention provides a method for quantum information encoding, which uses ZX calculation on the encoded quantum circuit and performs simplified operations on the ZX diagram, so that the converted circuit has a more concise feature and the quantum information is encoded efficiently. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 It is a work flow chart of the present invention;

[0034] Figure 2 A quantum information encoding circuit diagram designed in an embodiment of the present invention;

[0035] Figure 3 This is the ZX simplified quantum information encoding circuit in the embodiment of the present invention. DETAILED DESCRIPTION

[0036] In order to better understand the purpose, structure and function of the present invention, a method for quantum information encoding of the present invention is further described in detail below in conjunction with the accompanying drawings.

[0037] like Figure 1 The flowchart of quantum information encoding is shown, which includes the following steps:

[0038] Step 1: compress the discrete signal obtained after Nyquist sampling;

[0039] The sampled discrete information is compressed into classical data. Classical operations are the algorithmic operations in current classical computers. It is well known in the art that there are many mature solutions for classical data compression, and different compression methods can be selected according to different usage requirements.

[0040] Step 2: Encode the compressed data into the selected quantum basis as required;

[0041] Step 3: Design quantum circuits according to the theoretical process to achieve the formulation of quantum information encoding circuits;

[0042] The design method steps are:

[0043] Step 3.1: Discrete signal S after data compression n , normalized by the square root of the modulus sum, we get

[0044] Step 3.2: Normalize the classical information Encoded into n-Qbit amplitude and phase to obtain n-bit quantum state |Ψ>;

[0045] Step 3.3, write the n-bit quantum state |Ψ> in the form of conditional probability;

[0046] Step 3.4: Let α be the coefficient of the conditional probability form of the quantum state |Ψ>, for example, α 01 The first bit in the conditional probability form of the above example is |0>, and the second bit |1> is the previous coefficient. The conditional probability form of the n-bit quantum state |Ψ> is used to calculate 2 n+1 -2 w0, w1, w 00 ,w 01 ,w 10 ,w 11 ,…w 111…1 Composition w;

[0047] Step 3.5: Expand the elements in w into binary decimals to get an array

[0048] Step 3.6: Use n+k qubits, with k bits as auxiliary bits, to encode the cos(2πw) value into |0> and the sin(2πw) value into |1>.

[0049] Step 4: Use ZX calculation to simplify and restore the quantum information encoding circuit to simplify the quantum circuit;

[0050] The rules for simplifying and restoring the quantum coding circuit to ZX calculation and rewriting the quantum coding circuit into a ZX diagram are as follows:

[0051] Step 4.1.1, ZX diagram is a gray-white connection diagram, in which the gray dots (single input single output) represent single-bit X rotation gates, and the phase mark is inside the dots; the white dots (single input single output) represent single-bit Z rotation gates, and the phase mark is inside the dots. In addition, the white boxes (single input single output) represent Hadamard gates;

[0052] Step 4.1.2: The quantum circuit is converted into a ZX diagram, the original connection remains unchanged, and the original quantum gate is converted into a node representation in the ZX diagram;

[0053] Step 4.1.3, the two-bit CNOT gate is rewritten as follows: the control end is represented by a white dot and the phase is zero, and the controlled end is represented by a gray dot and the phase is zero;

[0054] Step 4.1.4, the universal single-bit quantum gate is rewritten into a form of white dots, gray dots, and white dots connected to each other, and the influence of the global phase during the rewriting process can be ignored;

[0055] The specific simplification operations include:

[0056] Step 4.2.1: Points of the same color are merged with each other and their phases are added; points of the same color represent the same type of revolving doors, which is the rule and definition in ZX calculation.

[0057] Step 4.2.2: When a white box passes through a point, the color of the point needs to be changed to the opposite color; the white box represents the Hadamard gate, which is the rule and definition in ZX calculation.

[0058] Step 4.2.3: If there are two lines connecting two points of different colors, these two lines can be eliminated at the same time;

[0059] Step 4.2.4, rewrite the structure of the phase gadget to realize the CNOT gate distribution from ladder to tree. The phase gadget is a method in ZX calculation, which is called phase gadgets in the literature.

[0060] The ZX calculation restoration operation includes: the inverse operation of the ZX rewriting rule and other algorithm implementations. Other algorithms include Gaussian elimination, which is an algorithm in the literature, and there may be other restoration algorithms.

[0061] Step 5: The initial quantum state |0…00> is used to prepare the encoded quantum state through a simplified quantum information encoding circuit, and the fidelity F is calculated.

[0062] like Figure 2 The figure shows the designed quantum information encoding circuit (q0, q1…q7 are auxiliary quantum bits, q8, q9, q 10 The specific encoding process is as follows:

[0063] Step 1: Obtain m discrete signals R after satisfying the Nyquist sampling theorem m Compression of classical data yields 2 n A discrete signal S n , in this embodiment, a compression method of deleting all 0s is adopted; in this example:

[0064]

[0065]

[0066] Step 2: Encode the compressed data into the selected quantum basis according to the user's requirements

[0067] Step 3.1: Compress the discrete signal S n , normalized by the square root of the modulus sum, we get In this example:

[0068]

[0069] Step 3.2: Normalize the classical information Encoding into n-Qbit amplitude and phase yields an n-bit quantum state |Ψ>; in this example:

[0070]

[0071] Step 3.3, write the n-bit quantum state |Ψ> in the form of conditional probability and calculate to w; in this example:

[0072]

[0073] Step 3.4: Let α be the coefficient of the conditional probability form of the quantum state |Ψ>, for example, α 01 In the conditional probability form in the above example, the first bit is |0>, the second bit |1> the previous coefficient The conditional probability form of the n-bit quantum state |Ψ> is used to calculate 2 n+1 -2 w0, w1, w 00 ,w 01 ,w 10 ,w 11 ,…w 111…1 ; Since the first n-1 quantum states give priority to extracting positive coefficients, the number of w that needs to be calculated can be reduced to 2 n -1; the calculated w of the first n-1 coefficients satisfies: cos 2 (2πw β0 )=(α β0 ) 2 , The coefficients before the nth digit satisfy w β ∈[0,1); in this example:

[0074] w=[0.0833 0.1667 0.0833 0.4167 0.1250 0.8333 0.1250]

[0075] Step 3.5: Expand the elements in w into binary decimals to get an array In this example, 8 digits are reserved (rounding is adopted, and the number of digits reserved is related to the precision). In this example:

[0076]

[0077] Step 3.6. In this example, n+8 qubits are used, of which 8 are auxiliary bits to encode the cos(2πw) value to |0> and the sin(2πw) value to |1>. Changing the number of auxiliary bits to calculate the fidelity yields the following table:

[0078]

[0079] Step 4: Figure 3 The figure shows that the quantum information coding circuit is optimized according to the general simplification rules of the ZX diagram and some explored rules, and then restored to the quantum circuit to obtain a simplified quantum coding circuit. The simplified circuit is compared with Figure 2 The original circuit, with a shallower depth and fewer quantum gates.

[0080] Step 5: The initial quantum state |0…00> is used to prepare the encoded quantum state through a simplified quantum information encoding circuit, and the fidelity F is calculated.

[0081] This method is a general method for quantum information encoding of real signals. For problems with complex circuits, ZX computing is used to solve this problem. ZX computing is a tensor network specially designed for quantum computing. It consists of ZX graphs and rewriting rules. It can rewrite any quantum circuit into a ZX graph, that is, a graph mainly composed of white and gray points. In ZX computing, the ZX graph has many equivalent rules. The flexible use of equivalent rules can simplify the ZX graph, which is equivalent to simplifying the original quantum circuit and rewriting it into a ZX graph.

[0082] It is to be understood that the present invention is described by some embodiments, and it is known to those skilled in the art that various changes or equivalent substitutions may be made to these features and embodiments without departing from the spirit and scope of the present invention. In addition, under the teachings of the present invention, these features and embodiments may be modified to adapt to specific circumstances and materials without departing from the spirit and scope of the present invention. Therefore, the present invention is not limited by the specific embodiments disclosed herein, and all embodiments falling within the scope of the claims of this application are within the scope of protection of the present invention.

Claims

1. A method for quantum information encoding, characterized in that: Implementing quantum information encoding circuits and using ZX computing to simplify the circuits includes the following steps: Step 1, compressing the discrete signal obtained after Nyquist sampling; Step 2: Encode the compressed data into the selected quantum basis according to the user's usage requirements; Step 3: Design quantum circuits according to the process to achieve the formulation of quantum information encoding circuits; The steps for formulating the quantum information encoding circuit are as follows: Step 3.1, the discrete signal after data compression is normalized according to the arithmetic square root of the modulus sum; Step 3.2, encode the normalized information into the amplitude and phase of the quantum bit to obtain the quantum state to be prepared; Step 3.3, write the quantum state to be prepared in the form of conditional probability; Step 3.4, calculate the quantum bit pre-coefficient according to the form of the conditional probability of the quantum state; Step 3.5, expand the coefficients before the quantum bit into binary decimal form; Step 3.6, encoding the value represented by the auxiliary bit into the amplitude phase of the target quantum bit through the auxiliary quantum bit; Step 4: Use ZX calculation to simplify and restore the quantum information encoding circuit to simplify the quantum circuit; The rules for rewriting the quantum coded information encoding circuit into a ZX diagram are as follows: Step 4.1.1, XZ diagram is a gray-white connection diagram, in which the gray dots represent single-bit X rotation gates, and the phase mark is inside the dots; the white dots represent single-bit Z rotation gates, and the phase mark is inside the dots; in addition, the white boxes represent Hadamard gates; Step 4.1.2: The quantum circuit is converted into a ZX diagram, the original connection remains unchanged, and the original quantum gate is converted into a node representation in the ZX diagram; Step 4.1.3, the two-bit CNOT gate is rewritten as follows: the control end is represented by a white dot and the phase is zero, and the controlled end is represented by a gray dot and the phase is zero; Step 4.1.4, rewrite the universal single-bit quantum gate into a form of white dots, gray dots, and white dots connected to each other, and ignore the influence of the global phase during the rewriting process; In step 4, the quantum coding circuit is simplified and restored for ZX calculation. The specific simplification operations include: Step 4.2.1, points of the same color are merged and their phases are added; Step 4.2.2: When the white box passes through a point, the color of the point needs to be changed to the opposite color; Step 4.2.3: If there are two lines connecting two points of different colors, eliminate the two lines at the same time; Step 4.2.4, rewrite the structure of the phase tool equivalently to realize the CNOT gate distribution from ladder to tree; Step 5: The initial quantum state |0…00> is used to prepare the encoded quantum state through a simplified quantum information encoding circuit, and the fidelity F is calculated.

2. The method for quantum information encoding according to claim 1, characterized in that: In step 1, the sampled discrete information is compressed into classical data.

3. The method for quantum information encoding according to claim 1, characterized in that: The ZX calculation restoration operation includes: the inverse operation of the ZX rewriting rule and the Gaussian elimination method.