Quantum gate optimization method and device for continuous variable quantum system
Through the quantum gate optimization method based on the Bose Gaussian quantum gate set, sampling quantum circuits, measuring survival probability and fitting fidelity solves the problem of high resource consumption of quantum gate optimization in the existing technology, and improves efficiency and accuracy.
Patent Information
- Application Number
- CN202310325461.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-29
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2043-03-29
AI Technical Summary
The existing quantum gate fidelity calibration technology for continuous variable quantum systems consumes huge resources and cannot accurately characterize the fidelity, making it difficult to optimize quantum gates.
A quantum gate optimization method based on the Bose-Gaussian quantum gate set is adopted to optimize the quantum gate set by sampling multiple quantum circuits for each circuit depth, measuring their survival probability, and using a fitting formula to determine the fidelity.
It reduces the resource overhead and implementation difficulty in the quantum gate optimization process, improves the efficiency of quantum gate optimization, and achieves accurate characterization of quantum gate fidelity.
Smart Images

Figure CN118734982A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of quantum computing technology, and in particular to a quantum gate optimization method and device for a continuous variable quantum system. Background Art
[0002] According to the different ways of information encoding, quantum systems can be divided into two categories: discrete variable quantum systems and continuous variable quantum systems. Both of them have the potential to achieve universal quantum computing and complete various quantum information processing tasks. In continuous variable quantum systems, high-fidelity quantum gates are the key to improving the performance of quantum information processing tasks. The fidelity calibration of quantum gates can provide feedback for the hardware design and waveform control of quantum gates, so quickly and effectively calibrating the fidelity of quantum gates is crucial for quantum gate optimization.
[0003] At present, there are two technical methods for calibrating the fidelity of quantum gates in continuous variable quantum systems: quantum process tomography and wave color channel verification. Quantum process tomography is to reconstruct the actual result of the output quantum state through a tomographic method, and then compare the actual result of the output quantum state with the theoretical result to obtain the fidelity. Specifically, for the quantum channel to be calibrated consisting of a continuous variable quantum logic gate sequence, a set of bases of the density operator of the quantum state is first input into the quantum channel, and then the density matrix element of the output quantum state is measured and the output quantum state is reconstructed using the density matrix element; finally, the distance between the output quantum state and its ideal result is calculated to obtain the fidelity of the continuous variable quantum logic gate sequence. The number of quantum circuits required to execute this technology grows exponentially with the number of modes, and the quantum process tomography technology is essentially to approximate the continuous variable system into a high-dimensional discrete variable system and then perform quantum process tomography. In order to characterize the fidelity more accurately, the approximate dimension must be very large, but not using a very high dimensional approximation will result in inaccurate fidelity estimates. These two points together lead to huge resources required for the characterization of quantum gate fidelity. In addition, this technique also requires numerical state measurement, which is difficult to achieve. Wave channel verification is to provide a lower bound on the fidelity of the quantum channel to be calibrated by constructing a fidelity witness. Specifically, Figure 1 The principle diagram of the wave color channel verification method is given. In the figure, |k> TMSVRepresents a pair of entangled quantum states. Given a quantum noise channel ε on an m-mode, and setting the noise channel ε to act on one mode of m independent and identical two-mode compressed vacuum states, the preparation mode of the two-mode compressed vacuum state is constantly changed to make the input state enter the quantum noise channel ε in various modes, and then the corresponding mode homodyne measurement is performed on the output state. Calculate the distance between the measured value and the ideal value of the output state of various modes, and use the average value of the distance as the lower bound of the fidelity of the noise channel ε. This technology can only characterize the lower bound of the quantum gate fidelity but not the fidelity, which is slightly insufficient in terms of accuracy; and the number of quantum circuits that need to be executed by this technology grows polynomially with the number of modes, and the resources required to characterize the quantum gate fidelity are huge.
[0004] Therefore, it is not realistic to use existing quantum gate fidelity calibration techniques for quantum gate optimization. Summary of the invention
[0005] To solve the above problems, the present invention provides a quantum gate optimization method and device for a continuous variable quantum system, and designs a simple quantum gate fidelity characterization method in which the number of quantum circuits is decoupled from the number of modes of the continuous variable quantum system, so as to reduce the resource overhead and implementation difficulty of the quantum gate fidelity characterization in the quantum gate optimization process and improve the efficiency of quantum gate optimization.
[0006] In a first aspect, the present invention provides a quantum gate optimization method for a continuous variable quantum system, the method comprising:
[0007] Based on the Bose-Gaussian quantum gate set, multiple quantum circuits are deeply sampled for each type of circuit;
[0008] Prepare the initial state of the continuous variable quantum system;
[0009] Applying each quantum circuit sampled at each circuit depth to the initial state, and performing final state measurement on each quantum circuit sampled at each circuit depth;
[0010] Based on the final state, determining the survival probability of each quantum circuit sampled at each circuit depth;
[0011] The fidelity of the Bose-Gaussian quantum gate set is determined based on the survival probability of each quantum circuit sampled at each circuit depth.
[0012] Based on the fidelity, optimizing the set of Bose-Gaussian quantum gates;
[0013] The quantum circuit is composed of d quantum gates in the Bose-Gaussian quantum gate set and an inverse gate of the product of the d quantum gates; d is the circuit depth corresponding to the quantum circuit.
[0014] According to the quantum gate optimization method of the continuous variable quantum system provided by the present invention, the preparation of the initial state of the continuous variable quantum system includes:
[0015] The initial state of the continuous variable quantum system is prepared as |0><0| m ;
[0016] Among them, |0><0| m is the vacuum state on m modes, and m is the mode number of the continuous variable quantum system.
[0017] According to the quantum gate optimization method for a continuous variable quantum system provided by the present invention, the d quantum gates are randomly selected from the Bose-Gaussian quantum gate set according to a preset probability distribution.
[0018] According to the quantum gate optimization method for a continuous variable quantum system provided by the present invention, the fidelity of the Bose-Gaussian quantum gate set is determined based on the survival probability of each quantum circuit sampled at each circuit depth, including:
[0019] The survival probabilities of all quantum circuits sampled at each circuit depth are averaged to obtain the fidelity level of each circuit depth;
[0020] Obtaining a fitting formula for the fidelity level of the line depth relative to the line depth;
[0021] Based on the fitting formula, data fitting is performed for each line depth and its fidelity level, and the fidelity is obtained by fitting;
[0022] The fidelity is taken as the fidelity of the Bose-Gaussian quantum gate set.
[0023] According to the quantum gate optimization method for a continuous variable quantum system provided by the present invention, the fitting formula is:
[0024] y(d)=Ap d +B
[0025] or
[0026] y(d)=Ap d
[0027] Where y(d) is the fidelity level of line depth, p is the fidelity, A is the first fitting coefficient, and B is the second fitting coefficient.
[0028] In a second aspect, the present invention provides a quantum gate optimization method for a continuous variable quantum system, the method comprising:
[0029] Based on the Bose-Gaussian quantum gate set, multiple interleaved quantum circuits are deeply sampled for each circuit;
[0030] Prepare the initial state of the continuous variable quantum system;
[0031] Applying each interleaved quantum circuit sampled at each circuit depth to the initial state, and performing final state measurement on each interleaved quantum circuit sampled at each circuit depth;
[0032] Based on the final state, determining the survival probability of each interleaved quantum circuit sampled at each circuit depth;
[0033] Determining the composite fidelity of the Bose-Gaussian quantum gate set and the target Gaussian quantum gate based on the survival probability of each interleaved quantum circuit sampled at each circuit depth;
[0034] The ratio of the composite fidelity to the fidelity of the Bose-Gaussian quantum gate set is used as the fidelity of the target Gaussian quantum gate;
[0035] Optimizing the target Gaussian quantum gate using the fidelity of the target Gaussian quantum gate;
[0036] The interleaved quantum circuit is composed of quantum gates in a first sequence and an inverse gate of the product of all quantum gates in the first sequence; the first sequence is composed of d quantum gates in a Bose-Gaussian quantum gate set and d target Gaussian quantum gates respectively inserted after the d quantum gates.
[0037] In a third aspect, the present invention provides a quantum gate optimization device for a continuous variable quantum system, the device comprising:
[0038] A first sampling module is used for deeply sampling multiple quantum circuits for each type of circuit based on a Bose-Gaussian quantum gate set;
[0039] The first preparation module is used to prepare the initial state of the continuous variable quantum system;
[0040] A first measurement module is used to apply each quantum circuit sampled at each circuit depth to the initial state, and perform final state measurement on each quantum circuit sampled at each circuit depth;
[0041] A quantum circuit survival probability determination module, used to determine the survival probability of each quantum circuit sampled at each circuit depth based on the final state;
[0042] A Bose-Gaussian quantum gate set fidelity determination module, used to determine the fidelity of the Bose-Gaussian quantum gate set based on the survival probability of each quantum circuit sampled at each circuit depth;
[0043] A first optimization module, configured to optimize the Bose-Gaussian quantum gate set based on the fidelity;
[0044] The quantum circuit is composed of d quantum gates in the Bose-Gaussian quantum gate set and an inverse gate of the product of the d quantum gates; d is the circuit depth corresponding to the quantum circuit.
[0045] In a fourth aspect, the present invention provides a quantum gate optimization device for a continuous variable quantum system, the device comprising:
[0046] A second sampling module is used for deeply sampling multiple interleaved quantum circuits for each circuit based on a Bose-Gaussian quantum gate set;
[0047] The second preparation module is used to prepare the initial state of the continuous variable quantum system;
[0048] A second measurement module is used to apply each interleaved quantum circuit sampled at each circuit depth to the initial state, and perform final state measurement on each interleaved quantum circuit sampled at each circuit depth;
[0049] An interleaved quantum circuit survival probability determination module, used to determine the survival probability of each interleaved quantum circuit sampled at each circuit depth based on the final state;
[0050] A composite fidelity determination module, used to determine the composite fidelity of the Bose-Gaussian quantum gate set and the target Gaussian quantum gate based on the survival probability of each interleaved quantum circuit sampled at each circuit depth;
[0051] A target Gaussian quantum gate fidelity determination module, used to use the ratio of the composite fidelity to the fidelity of the Bose-Gaussian quantum gate set as the fidelity of the target Gaussian quantum gate;
[0052] A second optimization module, configured to optimize the target Gaussian quantum gate by utilizing the fidelity of the target Gaussian quantum gate;
[0053] The interleaved quantum circuit is composed of quantum gates in a first sequence and the inverse gates of the product of all quantum gates in the first sequence; the first sequence is composed of d quantum gates in the Bose-Gaussian quantum gate set and d target Gaussian quantum gates respectively inserted after the d quantum gates.
[0054] In a fifth aspect, the present invention provides an electronic device comprising a memory, a quantum processor, and a quantum computer program stored in the memory and executable on the quantum processor, wherein when the quantum processor executes the program, the quantum gate optimization method for the continuous variable quantum system as described in the first aspect or the second aspect is implemented.
[0055] In a sixth aspect, the present invention provides a non-transitory computer-readable storage medium having a quantum computer program stored thereon, which, when executed by a quantum processor, implements the quantum gate optimization method for a continuous variable quantum system as described in the first aspect or the second aspect.
[0056] The present invention provides a quantum gate optimization method and device for a continuous variable quantum system. Based on a Bose-Gaussian quantum gate set, a plurality of quantum circuits are sampled for each circuit depth; wherein the quantum circuit is composed of d quantum gates in the Bose-Gaussian quantum gate set and an inverse gate of the product of the d quantum gates; d is the circuit depth corresponding to the quantum circuit; an initial state of a continuous variable quantum system is prepared; each quantum circuit sampled at each circuit depth is acted on the initial state, and a final state measurement is performed on each quantum circuit sampled at each circuit depth; based on the final state, a survival probability of each quantum circuit sampled at each circuit depth is determined; based on the survival probability of each quantum circuit sampled at each circuit depth, the fidelity of the Bose-Gaussian quantum gate set is determined; based on the fidelity, the Bose-Gaussian quantum gate set is optimized. The present invention proposes a fidelity characterization method for a Bose-Gaussian quantum gate set, which is simple and decouples the number of quantum circuits from the number of modes of a continuous variable quantum system, thereby reducing the resource overhead and implementation difficulty of the fidelity characterization of the Bose-Gaussian quantum gate set during the optimization process and improving the optimization efficiency.
[0057] The present invention also provides a quantum gate optimization method and device for a continuous variable quantum system. Based on a Bose-Gaussian quantum gate set, multiple interleaved quantum circuits are sampled for each circuit depth; wherein the interleaved quantum circuit is composed of a quantum gate in a first sequence and an inverse gate of the product of all quantum gates in the first sequence; the first sequence is composed of d quantum gates in the Bose-Gaussian quantum gate set and d target Gaussian quantum gates respectively inserted after the d quantum gates; prepare the initial state of the continuous variable quantum system; act each interleaved quantum circuit sampled at each circuit depth on the The initial state is measured, and the final state is measured for each interleaved quantum circuit sampled at each circuit depth; based on the final state, the survival probability of each interleaved quantum circuit sampled at each circuit depth is determined; based on the survival probability of each interleaved quantum circuit sampled at each circuit depth, the composite fidelity of the Bose-Gaussian quantum gate set and the target Gaussian quantum gate is determined; the ratio of the composite fidelity to the fidelity of the Bose-Gaussian quantum gate set is used as the fidelity of the target Gaussian quantum gate; the target Gaussian quantum gate is optimized using the fidelity of the target Gaussian quantum gate. The present invention uses any Gaussian quantum gate in the Bose-Gaussian quantum gate set as the target Gaussian quantum gate, and proposes a target Gaussian quantum gate fidelity characterization method, which is simple and decouples the number of quantum circuits and the number of continuous variable quantum system modes, so that the resource overhead and implementation difficulty of the target Gaussian quantum gate fidelity characterization during the optimization process are reduced, thereby improving the optimization efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0059] Figure 1 It is a schematic diagram of the principle of the wave color channel verification method provided by the prior art;
[0060] Figure 2 It is a schematic flow chart of the first quantum gate optimization method for a continuous variable quantum system provided by the present invention;
[0061] Figure 3 It is a schematic diagram of the structure of the quantum circuit provided by the present invention;
[0062] Figure 4 It is a flow chart of the second quantum gate optimization method for a continuous variable quantum system provided by the present invention;
[0063] Figure 5It is a schematic diagram of the structure of the interlaced quantum circuit provided by the present invention;
[0064] Figure 6 It is a schematic structural diagram of a quantum gate device of a first continuous variable quantum system provided by the present invention;
[0065] Figure 7 It is a schematic structural diagram of a second quantum gate optimization device for a continuous variable quantum system provided by the present invention. DETAILED DESCRIPTION
[0066] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0067] Combine the following Figure 1-Figure 7 The quantum gate optimization method and device of the continuous variable quantum system of the present invention are described.
[0068] In a first aspect, the present invention provides a quantum gate optimization method for a continuous variable quantum system, such as Figure 2 As shown, the method includes:
[0069] S11. Based on the Bose-Gaussian quantum gate set, a plurality of quantum circuits are sampled for each circuit depth; wherein the quantum circuit is composed of d quantum gates in the Bose-Gaussian quantum gate set and an inverse gate of the product of the d quantum gates; d is the circuit depth corresponding to the quantum circuit;
[0070] It should be made clear that in a continuous variable quantum system, the Gaussian quantum gate is the easiest to implement and the most commonly used quantum gate; and according to research, even if a non-Gaussian state is input, continuous variable universal quantum computing can be achieved using Gaussian quantum gates and homodyne measurement. Therefore, the present invention characterizes the fidelity of quantum gates in a continuous variable quantum system, focusing on Gaussian quantum gates.
[0071] In addition, the circuit depth is used to limit the number of quantum gates in the Bose-Gaussian quantum gate set on the quantum circuit, so the value range of the circuit depth is [1, M], where M is the total number of quantum gates contained in the Bose-Gaussian quantum gate set. The quantum circuit constructed by the present invention is ideally normalized, that is, the input state and output state of the quantum circuit are consistent under ideal conditions; in fact, there is noise in the quantum gates on the quantum circuit, which is also the reason for characterizing the fidelity of the quantum gate.
[0072] S12. Prepare the initial state of the continuous variable quantum system;
[0073] S13, applying each quantum circuit sampled at each circuit depth to the initial state, and performing final state measurement on each quantum circuit sampled at each circuit depth;
[0074] S14, based on the final state, determining the survival probability of each quantum circuit sampled at each circuit depth;
[0075] Here, the survival probability refers to the probability that the initial state and the final state are consistent.
[0076] S15, determining the fidelity of the Bose-Gaussian quantum gate set based on the survival probability of each quantum circuit sampled at each circuit depth;
[0077] S16. Based on the fidelity, optimize the Bose-Gaussian quantum gate set.
[0078] The following is an example of continuous variable quantum gate fidelity optimization: Given a continuous variable quantum gate e -iθP , i is the imaginary unit, P is the generalized momentum operator (it can also be said to be the orthogonal component under the continuous variable), and θ is the real parameter. Due to the influence of noise, what is actually achieved is e -i(θ+η)P , where η is also a real parameter. Then by characterizing the actual quantum gate e -i(θ+η)P and the ideal quantum gate e -iθP The fidelity between -i(θ+η)P ,e -iθP ) can measure the gap between the two. By using a suitable optimization algorithm to maximize the fidelity f(e -i(θ+η)P ,e -i ) can make the actual quantum gate closest to the ideal quantum gate. It is worth noting that the fidelity f(e -i(θ+η)P ,e -iθP ) The choice is not unique, as long as it can measure the gap between the actual quantum gate and the ideal quantum gate.
[0079] For the general case, an ideal quantum gate may be a simple form such as However, due to the constraints of the realizable Hamiltonian form, the ideal Hamiltonian evolution for realizing the input of this quantum gate is Where H(c1,c2,c3)=c1X+c2P+c3(XP+PX), t is time. c1,c2,c3,t are real numbers, X,P are coordinates and momentum operators respectively. In practice, due to the presence of noise, Where H′(c1+η′1,c2+η′2,c3+η′3)=(c1+η′1)X+(c2+η′2)P+(c3+η′3)(XP+PX). Where η′1,η′2,η′3,t′ are real numbers. Estimation fidelity After that, we can choose a suitable optimization algorithm to adjust the selection of c1, c2, c3, t to maximize the fidelity and finally achieve evolution.
[0080] The present invention provides a quantum gate optimization method for a continuous variable quantum system. Based on a Bose-Gaussian quantum gate set, multiple quantum circuits are sampled for each circuit depth; wherein the quantum circuit is composed of d quantum gates in the Bose-Gaussian quantum gate set and an inverse gate of the product of the d quantum gates; d is the circuit depth corresponding to the quantum circuit; the initial state of the continuous variable quantum system is prepared; each quantum circuit sampled at each circuit depth acts on the initial state, and the final state of each quantum circuit sampled at each circuit depth is measured; based on the final state, the survival probability of each quantum circuit sampled at each circuit depth is determined; based on the survival probability of each quantum circuit sampled at each circuit depth, the fidelity of the Bose-Gaussian quantum gate set is determined; based on the fidelity, the Bose-Gaussian quantum gate set is optimized. The quantum gate fidelity characterization method proposed by the present invention is simple and decouples the number of quantum circuits from the number of modes of the continuous variable quantum system, so that the resource overhead and implementation difficulty of the quantum gate fidelity characterization in the quantum gate optimization process are reduced, and the quantum gate optimization efficiency is improved.
[0081] In addition, the present invention has a wide range of applications and low cost, and has important practical value for quantum gate calibration in continuous variable quantum systems.
[0082] Specifically, the d quantum gates in S11 are randomly selected from the Bose-Gaussian quantum gate set according to a preset probability distribution.
[0083] The Bose-Gaussian quantum gate set is a group formed by the multiplication of quantum gates. In terms of isomorphism, it can be seen as the semi-direct product of the Heisenberg-Weyl group and the symplectic group. Mathematically, the group formed by the Gaussian quantum gates on the m-mode is W(m) is the Heisenberg-Weil group on the m-mode, is a real symplectic matrix of dimension 2m×2m. Defining a probability distribution on G(m) is equivalent to defining The probability distribution can be independently derived from W(m) and Select group elements from G(m). Therefore, the preset probability distribution refers to the probability distribution from W(m) and Any probability distribution for independently choosing elements of the group .
[0084] Correspondingly, suppose that the d gates selected from the Bose-Gaussian quantum gate set are G1, G2, …, G d, the inverse gate of the product of these d gates is G inv =(G d …G2G1) -1 , then the quantum circuit connects G1, G2, ..., G d , G inv This is a quantum circuit with d+1 gates.
[0085] Figure 3 It is a schematic diagram of the structure of the corresponding quantum circuit, where ρ is the initial state and M is the measured final state.
[0086] Specifically, the S12 includes: the preparation of the initial state of the continuous variable quantum system includes:
[0087] The initial state of the continuous variable quantum system is prepared as |0><0| m ;
[0088] Among them, |0><0| m is the vacuum state on m modes, where m is the mode number of the continuous variable quantum system. |0><0| m It is the abbreviation of the multiplication of m |0><0|, where |0><0| is the tensor product of the right vector |0> and the left vector <0|.
[0089] The initial state is prepared as |0><0| m , which makes the preparation of quantum states and the measurement of final states relatively simple and easy to operate, but this is not a limitation on the initial state. In fact, the initial state can be prepared into any suitable form.
[0090] Specifically, the S15 includes:
[0091] S15.1: Average the survival probabilities of all quantum circuits at each circuit depth to obtain the fidelity level of each circuit depth;
[0092] S15.2: Obtain a fitting formula for the fidelity level of the line depth relative to the line depth;
[0093] Preferably, the fitting formula is
[0094] y(d)=Ap d +B
[0095] or
[0096] y(d)=Ap d
[0097] Where y(d) is the fidelity level of line depth, p is the fidelity, A is the first fitting coefficient, and B is the second fitting coefficient.
[0098] S15.3: Based on the fitting formula, data fitting is performed for each line depth and its fidelity level, and the fidelity is obtained by fitting;
[0099] S15.4: Taking the fidelity as the fidelity of the Bose-Gaussian quantum gate set.
[0100] In addition, the fidelity can also be subjected to a fixed bijective transformation, and the bijective transformation result can be used as the fidelity of the Bose-Gaussian quantum gate set. These two methods are essentially equivalent.
[0101] The characterization of quantum gates by quantum process tomography and wave color channel verification methods depends on the accuracy of state preparation and measurement, and is not robust to state preparation and measurement errors. However, the state preparation and measurement errors of the present invention are fitted into the first fitting coefficient A during the fitting process, and will not affect the result of the fidelity p. Therefore, the present invention is robust to state preparation and measurement errors, and is more accurate in calibrating the fidelity of quantum gates.
[0102] In a second aspect, the present invention provides a quantum gate optimization method for a continuous variable quantum system, such as Figure 4 As shown, the method includes:
[0103] S21: Based on the Bose-Gaussian quantum gate set, multiple interleaved quantum circuits are deeply sampled for each circuit;
[0104] S21: Preparation of the initial state of a continuous variable quantum system;
[0105] S22: applying each interleaved quantum circuit sampled at each circuit depth to the initial state, and performing final state measurement on each interleaved quantum circuit sampled at each circuit depth;
[0106] S23: Based on the final state, determining the survival probability of each interleaved quantum circuit sampled at each circuit depth;
[0107] S24: determining the composite fidelity of the Bose-Gaussian quantum gate set and the target Gaussian quantum gate based on the survival probability of each interleaved quantum circuit sampled at each circuit depth;
[0108] S25: taking the ratio of the composite fidelity to the fidelity of the Bose-Gaussian quantum gate set as the fidelity of the target Gaussian quantum gate;
[0109] S26: optimizing the target Gaussian quantum gate using the fidelity of the target Gaussian quantum gate;
[0110] The interleaved quantum circuit is composed of quantum gates in a first sequence and an inverse gate of the product of all quantum gates in the first sequence; the first sequence is composed of d quantum gates in a Bose-Gaussian quantum gate set and d target Gaussian quantum gates respectively inserted after the d quantum gates.
[0111] The present invention also provides a quantum gate optimization method for a continuous variable quantum system. Based on a Bose-Gaussian quantum gate set, a plurality of interleaved quantum circuits are sampled for each circuit depth; wherein the interleaved quantum circuit is composed of a quantum gate in a first sequence and an inverse gate of the product of all quantum gates in the first sequence; the first sequence is composed of d quantum gates in the Bose-Gaussian quantum gate set and d target Gaussian quantum gates respectively inserted after the d quantum gates; an initial state of a continuous variable quantum system is prepared; each interleaved quantum circuit sampled at each circuit depth acts on the initial state; state, and perform final state measurement on each interleaved quantum circuit sampled at each circuit depth; based on the final state, determine the survival probability of each interleaved quantum circuit sampled at each circuit depth; based on the survival probability of each interleaved quantum circuit sampled at each circuit depth, determine the composite fidelity of the Bose-Gaussian quantum gate set and the target Gaussian quantum gate; use the ratio of the composite fidelity to the fidelity of the Bose-Gaussian quantum gate set as the fidelity of the target Gaussian quantum gate; optimize the target Gaussian quantum gate using the fidelity of the target Gaussian quantum gate. The quantum gate fidelity characterization method proposed in the present invention is simple and decouples the number of quantum circuits and the number of modes of the continuous variable quantum system, so that the resource overhead and implementation difficulty of the quantum gate fidelity characterization in the quantum gate optimization process can be reduced, and the efficiency of quantum gate optimization is improved.
[0112] Specifically, the d quantum gates in the first sequence in S21 are randomly selected from the Bose-Gaussian quantum gate set according to a preset probability distribution.
[0113] Correspondingly, suppose that the d gates randomly selected from the Bose-Gaussian quantum gate set are G1, G2, …, G d , the target Gaussian quantum gate is G, then the first sequence is G1,G,G2,G…,G d ,G, the inverse gate of the product of these 2d gates is G′ unv =(GG d …GG2GG1) -1 , then the staggered quantum circuit is to connect G1, G, G2, G…, G d ,G,G′ inv This is a quantum circuit with 2d+1 gates.
[0114] Figure 5It is a schematic diagram of the structure of the corresponding staggered quantum circuit, where ρ is the initial state and M is the measured final state.
[0115] Specifically, the S22 includes: preparing the initial state of the continuous variable quantum system as |0><0| m ;
[0116] Among them, |0><0| m is the vacuum state on m modes, and m is the mode number of the continuous variable quantum system.
[0117] Specifically, the S25 includes:
[0118] S25.1: Average the survival probabilities of all interleaved quantum circuits at each circuit depth to obtain the fidelity level of each circuit depth;
[0119] S25.2: Obtain a fitting formula for the fidelity level of the line depth relative to the line depth;
[0120] Preferably, the fitting formula is
[0121] y(d)=Ap d +B
[0122] or
[0123] y(d)=Ap d
[0124] Where y(d) is the fidelity level of line depth, p is the fidelity, A is the first fitting coefficient, and B is the second fitting coefficient.
[0125] S25.3: Based on the fitting formula, data fitting is performed for each line depth and its fidelity level, and the fidelity is obtained by fitting;
[0126] The fidelity is taken as the composite fidelity of the Bose-Gaussian quantum gate set and the target Gaussian quantum gate.
[0127] The characterization of quantum gates by quantum process tomography and wave color channel verification methods depends on the accuracy of state preparation and measurement, and is not robust to state preparation and measurement errors. However, the state preparation and measurement errors of the present invention are fitted into the first fitting coefficient A during the fitting process, and will not affect the result of the fidelity p. Therefore, the present invention is robust to state preparation and measurement errors, and is more accurate in calibrating the fidelity of quantum gates.
[0128] Specifically, the S26 includes:
[0129] Will as the fidelity of the target Gaussian quantum gate, where p* is the composite fidelity, is the fidelity of the set of Bose-Gaussian quantum gates.
[0130] or The value is subjected to a fixed bijective transformation, and the result of the bijective transformation is used as the fidelity of the target Gaussian quantum gate. These two methods are essentially equivalent.
[0131] In a third aspect, the quantum gate optimization device for a continuous variable quantum system provided by the present invention is described below. The quantum gate optimization device for a continuous variable quantum system described below and the quantum gate optimization method for a continuous variable quantum system described above can be referenced to each other. Figure 6 An example of a quantum gate optimization device for a continuous variable quantum system is shown. Figure 6 As shown, the device comprises:
[0132] A first sampling module 31 is used to deeply sample multiple quantum circuits for each type of circuit based on a Bose-Gaussian quantum gate set;
[0133] A first preparation module 32, used for preparing the initial state of the continuous variable quantum system;
[0134] A first measurement module 33 is used to apply each quantum circuit sampled at each circuit depth to the initial state, and perform final state measurement on each quantum circuit sampled at each circuit depth;
[0135] A quantum circuit survival probability determination module 34, used to determine the survival probability of each quantum circuit sampled at each circuit depth based on the final state;
[0136] A Bose-Gaussian quantum gate set fidelity determination module 35, used to determine the fidelity of the Bose-Gaussian quantum gate set based on the survival probability of each quantum circuit sampled at each circuit depth;
[0137] A first optimization module 35, configured to optimize the Bose-Gaussian quantum gate set based on the fidelity;
[0138] The quantum circuit is composed of d quantum gates in the Bose-Gaussian quantum gate set and an inverse gate of the product of the d quantum gates; d is the circuit depth corresponding to the quantum circuit.
[0139] The present invention provides a quantum gate optimization device for a continuous variable quantum system. Based on a Bose-Gaussian quantum gate set, multiple quantum circuits are sampled for each circuit depth; wherein the quantum circuit is composed of d quantum gates in the Bose-Gaussian quantum gate set and an inverse gate of the product of the d quantum gates; d is the circuit depth corresponding to the quantum circuit; the initial state of the continuous variable quantum system is prepared; each quantum circuit sampled at each circuit depth acts on the initial state, and the final state of each quantum circuit sampled at each circuit depth is measured; based on the final state, the survival probability of each quantum circuit sampled at each circuit depth is determined; based on the survival probability of each quantum circuit sampled at each circuit depth, the fidelity of the Bose-Gaussian quantum gate set is determined; based on the fidelity, the Bose-Gaussian quantum gate set is optimized. The quantum gate fidelity characterization method proposed by the present invention is simple and decouples the number of quantum circuits from the number of modes of the continuous variable quantum system, so that the resource overhead and implementation difficulty of the quantum gate fidelity characterization in the quantum gate optimization process are reduced, and the quantum gate optimization efficiency is improved.
[0140] Based on the above embodiments, as an optional embodiment, the first preparation module 32 is specifically used for:
[0141] The initial state of the continuous variable quantum system is prepared as |0><0| m ;
[0142] Among them, |0><0| m is the vacuum state on m modes, and m is the mode number of the continuous variable quantum system.
[0143] Based on the above embodiments, as an optional embodiment, the d quantum gates are randomly selected from the Bose-Gaussian quantum gate set according to a preset probability distribution.
[0144] Based on the above embodiments, as an optional embodiment, the Bose-Gaussian quantum gate set fidelity determination module includes:
[0145] A first setting unit is used to average the survival probabilities of all quantum circuits at each circuit depth to obtain the fidelity level of each circuit depth;
[0146] A first acquisition unit is used to acquire a fitting formula of the fidelity level of the line depth relative to the line depth;
[0147] A first fitting unit is used to perform data fitting on each line depth and its fidelity level based on the fitting formula to obtain the fidelity through fitting;
[0148] The second setting unit is used to use the fidelity as the fidelity of the Bose-Gaussian quantum gate set.
[0149] Based on the above embodiments, as an optional embodiment, the fitting formula is:
[0150] y(d)=Ap d +B
[0151] or
[0152] y(d)=Ap d
[0153] Where y(d) is the fidelity level of line depth, p is the fidelity, A is the first fitting coefficient, and B is the second fitting coefficient.
[0154] In a fourth aspect, the quantum gate optimization device for a continuous variable quantum system provided by the present invention is described below. The quantum gate optimization device for a continuous variable quantum system described below and the quantum gate optimization method for a continuous variable quantum system described above can be referred to each other. Figure 7 An example of a quantum gate optimization device for a continuous variable quantum system is shown. Figure 7 As shown, the device comprises:
[0155] A second sampling module 41 is used to deeply sample multiple interleaved quantum circuits for each type of circuit based on a Bose-Gaussian quantum gate set;
[0156] The second preparation module 42 is used to prepare the initial state of the continuous variable quantum system;
[0157] A second measurement module 43 is used to apply each interleaved quantum circuit sampled at each circuit depth to the initial state, and perform final state measurement on each interleaved quantum circuit sampled at each circuit depth;
[0158] An interleaved quantum circuit survival probability determination module 44, used to determine the survival probability of each interleaved quantum circuit sampled at each circuit depth based on the final state;
[0159] A composite fidelity determination module 45, for determining the composite fidelity of the Bose-Gaussian quantum gate set and the target Gaussian quantum gate based on the survival probability of each interleaved quantum circuit sampled at each circuit depth;
[0160] A target Gaussian quantum gate fidelity determination module 46 is used to use the ratio of the composite fidelity to the fidelity of the Bose-Gaussian quantum gate set as the fidelity of the target Gaussian quantum gate;
[0161] A second optimization module 47, configured to optimize the target Gaussian quantum gate using the fidelity of the target Gaussian quantum gate;
[0162] The interleaved quantum circuit is composed of quantum gates in a first sequence and an inverse gate of the product of all quantum gates in the first sequence; the first sequence is composed of d quantum gates in a Bose-Gaussian quantum gate set and d target Gaussian quantum gates respectively inserted after the d quantum gates.
[0163] The present invention also provides a quantum gate optimization device for a continuous variable quantum system. Based on a Bose-Gaussian quantum gate set, a plurality of interleaved quantum circuits are sampled for each circuit depth; wherein the interleaved quantum circuit is composed of a quantum gate in a first sequence and an inverse gate of the product of all quantum gates in the first sequence; the first sequence is composed of d quantum gates in the Bose-Gaussian quantum gate set and d target Gaussian quantum gates respectively inserted after the d quantum gates; an initial state of a continuous variable quantum system is prepared; each interleaved quantum circuit sampled at each circuit depth acts on the initial state; state, and perform final state measurement on each interleaved quantum circuit sampled at each circuit depth; based on the final state, determine the survival probability of each interleaved quantum circuit sampled at each circuit depth; based on the survival probability of each interleaved quantum circuit sampled at each circuit depth, determine the composite fidelity of the Bose-Gaussian quantum gate set and the target Gaussian quantum gate; use the ratio of the composite fidelity to the fidelity of the Bose-Gaussian quantum gate set as the fidelity of the target Gaussian quantum gate; optimize the target Gaussian quantum gate using the fidelity of the target Gaussian quantum gate. The quantum gate fidelity characterization method proposed in the present invention is simple and decouples the number of quantum circuits and the number of modes of the continuous variable quantum system, so that the resource overhead and implementation difficulty of the quantum gate fidelity characterization in the quantum gate optimization process can be reduced, and the efficiency of quantum gate optimization is improved.
[0164] Based on the above embodiments, as an optional embodiment, the second preparation module is specifically used for:
[0165] The initial state of the continuous variable quantum system is prepared as |0><0| m ;
[0166] Among them, |0><0| m is the vacuum state on m modes, and m is the mode number of the continuous variable quantum system.
[0167] Based on the above embodiments, as an optional embodiment, the d quantum gates in the first sequence are randomly selected from the Bose-Gaussian quantum gate set according to a preset probability distribution.
[0168] Based on the above embodiments, as an optional embodiment, the composite fidelity determination module includes:
[0169] A third setting unit is used to average the survival probabilities of all interleaved quantum circuits at each circuit depth to obtain the fidelity level of each circuit depth;
[0170] A second acquisition unit is used to acquire a fitting formula of the fidelity level of the line depth relative to the line depth;
[0171] Preferably, the fitting formula is
[0172] y(d)=Ap d +B
[0173] or
[0174] y(d)=Ap d
[0175] Where y(d) is the fidelity level of line depth, p is the fidelity, A is the first fitting coefficient, and B is the second fitting coefficient.
[0176] A second fitting unit is used to perform data fitting on each line depth and its fidelity level based on the fitting formula to obtain the fidelity through fitting;
[0177] The fourth setting unit is used to use the fidelity as the composite fidelity of the Bose-Gaussian quantum gate set and the target Gaussian quantum gate.
[0178] Based on the above embodiments, as an optional embodiment, the fitting formula is:
[0179] y(d)=Ap d +B
[0180] or
[0181] y(d)=Ap d
[0182] Where y(d) is the fidelity level of line depth, p is the fidelity, A is the first fitting coefficient, and B is the second fitting coefficient.
[0183] In a fifth aspect, the present invention provides an electronic device comprising a memory, a quantum processor, and a quantum computer program stored in the memory and executable on the quantum processor, wherein when the quantum processor executes the program, the quantum gate optimization method for the continuous variable quantum system as described in the first aspect or the second aspect is implemented.
[0184] The above-mentioned quantum processors refer to processors whose protocols can be implemented on various mainstream quantum computing systems such as superconducting, ion traps, and optics.
[0185] In addition, operations other than the state preparation-state measurement of the present invention, such as survival probability calculation, data fitting calculation fidelity, etc., can also be completed on a classical computer.
[0186] In a sixth aspect, the present invention further provides a quantum computer program product, which includes a quantum computer program. The quantum computer program can be stored on a non-transitory computer-readable storage medium. When the quantum computer program is executed by a quantum processor, the computer can execute the quantum gate optimization method for the continuous variable quantum system as described in the first aspect or the second aspect provided by the above methods.
[0187] In a seventh aspect, the present invention further provides a non-transitory computer-readable storage medium having a quantum computer program stored thereon, which, when executed by a quantum processor, is implemented to execute the quantum gate optimization method for a continuous variable quantum system as described in the first aspect or the second aspect provided by the above methods.
[0188] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0189] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0190] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A quantum gate optimization method for a continuous variable quantum system, characterized in that: The method comprises: Based on the Bose-Gaussian quantum gate set, multiple quantum circuits are deeply sampled for each type of circuit; Prepare the initial state of the continuous variable quantum system; Applying each quantum circuit sampled at each circuit depth to the initial state, and performing final state measurement on each quantum circuit sampled at each circuit depth; Based on the final state, determining the survival probability of each quantum circuit sampled at each circuit depth; Determining the fidelity of the Bose-Gaussian quantum gate set based on the survival probability of each quantum circuit sampled at each circuit depth; Based on the fidelity, optimizing the set of Bose-Gaussian quantum gates; The quantum circuit is composed of d quantum gates in the Bose-Gaussian quantum gate set and an inverse gate of the product of the d quantum gates; d is the circuit depth corresponding to the quantum circuit.
2. The method for optimizing a quantum gate of a continuous variable quantum system according to claim 1, characterized in that: The step of preparing the initial state of the continuous variable quantum system comprises: The initial state of the continuous variable quantum system is prepared as |0><0| m ; Among them, |0><0| m is the vacuum state on m modes, and m is the mode number of the continuous variable quantum system.
3. The method for optimizing a quantum gate of a continuous variable quantum system according to claim 1, characterized in that: The d quantum gates are randomly selected from the Bose-Gaussian quantum gate set according to a preset probability distribution.
4. The method for optimizing a quantum gate of a continuous variable quantum system according to any one of claims 1 to 3, characterized in that: The determining the fidelity of the Bose-Gaussian quantum gate set based on the survival probability of each quantum circuit sampled at each circuit depth includes: The survival probabilities of all quantum circuits sampled at each circuit depth are averaged to obtain the fidelity level of each circuit depth; Obtaining a fitting formula for the fidelity level of the line depth relative to the line depth; Based on the fitting formula, data fitting is performed for each line depth and its fidelity level, and the fidelity is obtained by fitting; The fidelity is taken as the fidelity of the Bose-Gaussian quantum gate set.
5. The method for optimizing a quantum gate of a continuous variable quantum system according to claim 4, characterized in that: The fitting formula is and(d)=Ap d +B or and(d)=Ap d Where y(d) is the fidelity level of line depth, p is the fidelity, A is the first fitting coefficient, and B is the second fitting coefficient.
6. A quantum gate optimization method for a continuous variable quantum system, characterized in that: The method comprises: Based on the Bose-Gaussian quantum gate set, multiple interleaved quantum circuits are deeply sampled for each circuit; Prepare the initial state of the continuous variable quantum system; Applying each interleaved quantum circuit sampled at each circuit depth to the initial state, and performing final state measurement on each interleaved quantum circuit sampled at each circuit depth; Based on the final state, determining the survival probability of each interleaved quantum circuit sampled at each circuit depth; Determining the composite fidelity of the Bose-Gaussian quantum gate set and the target Gaussian quantum gate based on the survival probability of each interleaved quantum circuit sampled at each circuit depth; The ratio of the composite fidelity to the fidelity of the Bose-Gaussian quantum gate set is used as the fidelity of the target Gaussian quantum gate; Optimizing the target Gaussian quantum gate using the fidelity of the target Gaussian quantum gate; The interleaved quantum circuit is composed of quantum gates in a first sequence and the inverse gates of the product of all quantum gates in the first sequence; the first sequence is composed of d quantum gates in the Bose-Gaussian quantum gate set and d target Gaussian quantum gates respectively inserted after the d quantum gates.
7. A quantum gate optimization device for a continuous variable quantum system, characterized in that: The device comprises: A first sampling module is used for deeply sampling multiple quantum circuits for each type of circuit based on a Bose-Gaussian quantum gate set; The first preparation module is used to prepare the initial state of the continuous variable quantum system; A first measurement module is used to apply each quantum circuit sampled at each circuit depth to the initial state, and perform final state measurement on each quantum circuit sampled at each circuit depth; A quantum circuit survival probability determination module, used to determine the survival probability of each quantum circuit sampled at each circuit depth based on the final state; A Bose-Gaussian quantum gate set fidelity determination module, used to determine the fidelity of the Bose-Gaussian quantum gate set based on the survival probability of each quantum circuit sampled at each circuit depth; A first optimization module, configured to optimize the Bose-Gaussian quantum gate set based on the fidelity; The quantum circuit is composed of d quantum gates in the Bose-Gaussian quantum gate set and an inverse gate of the product of the d quantum gates; d is the circuit depth corresponding to the quantum circuit.
8. A quantum gate optimization device for a continuous variable quantum system, characterized in that: The device comprises: A second sampling module is used for deeply sampling multiple interleaved quantum circuits for each circuit based on a Bose-Gaussian quantum gate set; The second preparation module is used to prepare the initial state of the continuous variable quantum system; A second measurement module is used to apply each interleaved quantum circuit sampled at each circuit depth to the initial state, and perform final state measurement on each interleaved quantum circuit sampled at each circuit depth; An interleaved quantum circuit survival probability determination module, used to determine the survival probability of each interleaved quantum circuit sampled at each circuit depth based on the final state; A composite fidelity determination module, used to determine the composite fidelity of the Bose-Gaussian quantum gate set and the target Gaussian quantum gate based on the survival probability of each interleaved quantum circuit sampled at each circuit depth; A target Gaussian quantum gate fidelity determination module, used to use the ratio of the composite fidelity to the fidelity of the Bose-Gaussian quantum gate set as the fidelity of the target Gaussian quantum gate; A second optimization module, configured to optimize the target Gaussian quantum gate by utilizing the fidelity of the target Gaussian quantum gate; The interleaved quantum circuit is composed of quantum gates in a first sequence and the inverse gates of the product of all quantum gates in the first sequence; the first sequence is composed of d quantum gates in the Bose-Gaussian quantum gate set and d target Gaussian quantum gates respectively inserted after the d quantum gates.
9. An electronic device comprising a memory, a quantum processor, and a quantum computer program stored in the memory and executable on the quantum processor, characterized in that: When the quantum processor executes the program, the quantum gate optimization method for a continuous variable quantum system according to any one of claims 1 to 5 or claim 6 is implemented.
10. A non-transitory computer-readable storage medium having a quantum computer program stored thereon, characterized in that: When the quantum computer program is executed by a quantum processor, the quantum gate optimization method for a continuous variable quantum system according to any one of claims 1 to 5 or claim 6 is implemented.
Citation Information
Patent Citations
Apparatus and methods for quantum computing and machine learning
CA3046887A1
Estimating the fidelity of quantum logic gates and quantum circuits
CN114026575A
Quantum computer performance description method and device, electronic equipment and medium
CN114462613A
Method of processing waveforms at a multiple-input-multiple-output (MIMO) radar for an unknown target
US10895635B1
Efficient quantum chemistry simulation using gate-based qubit quantum devices
WO2021099428A1
Cited By
Optimization method for quantum circuit sampling
CN120317392A
