Quantum calculation method and system for protein structure prediction
By constructing a quantized encoder and iterative update process, the coordinate information of protein residues is optimized, and the problems of low coding efficiency and insufficient information representation of protein structure prediction in the prior art are solved, thereby achieving more efficient and accurate protein structure prediction.
Patent Information
- Application Number
- CN202411937744.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-26
- Publication Date
- 2025-04-22
- Estimated Expiration
- 2044-12-26
AI Technical Summary
The existing protein structure prediction methods have problems such as low coding efficiency, insufficient internal information representation, and difficulty in effectively predicting the arrangement of amino acid space in continuous space, resulting in significant differences in the prediction results and the natural protein structure.
By obtaining the protein amino acid sequence, coordinate generation and polar coordinate conversion, computing interaction intensity parameters, constructing continuous coordinate quantum encoder and interactive intensity quantum encoder quantum encoder quantum circuits, iterative updates are performed to optimize residue coordinate information, and the prediction results of protein structure are obtained through standardized processing.
It improves the accuracy and reliability of protein structure prediction, significantly reduces the use of computing resources, and can handle larger-scale protein sequences more efficiently.
Smart Images

Figure CN119864074A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of quantum technology, and in particular relates to a quantum computing method and system for predicting protein structure. Background Art
[0002] Protein structure prediction is a complex and important research field. However, the structure of proteins is extremely complex, and ordinary classical solutions have always had the problem of high complexity when facing such complex technical applications.
[0003] Quantum machine learning is considered to be one of the cutting-edge solutions to the problem of protein structure prediction on medium-scale noisy quantum devices. However, the commonly used protein structure prediction schemes currently have some defects: Hamiltonian-based methods face the problems of low coding efficiency and insufficient internal information representation in practical applications. For example, the VQE (Variational Quantum Eigensolver) algorithm usually requires at least 2 (n-3) quantum bit resources, and the resource demand increases linearly with the length of the protein sequence; this makes the current quantum computing devices can only process small proteins with dozens of residues. In addition, lattice-based models are difficult to effectively predict the actual spatial arrangement of amino acids in continuous space, resulting in significant differences between the encoded conformation and the natural protein structure; for example, the VQE method mainly considers the interaction between neighboring and next-nearest neighboring residues, which limits the ability to capture long-distance interaction information. At the same time, the Hamiltonian expression is mostly static parameters and lacks dynamic adaptability. Summary of the invention
[0004] One of the purposes of the present invention is to provide a quantum computing method for predicting protein structure with high reliability, good accuracy and high efficiency.
[0005] A second objective of the present invention is to provide a system for implementing the quantum computing method for protein structure prediction.
[0006] The quantum computing method for protein structure prediction provided by the present invention comprises the following steps:
[0007] S1. Obtain the amino acid sequence of the protein to be processed;
[0008] S2. For the protein amino acid sequence obtained in step S1, coordinate generation and polar coordinate conversion are performed for each residue therein, and interaction strength parameters are calculated to complete sequence pre-processing;
[0009] S3. Construct a continuous coordinate quantization encoder quantum circuit, and based on the data information obtained in step S2, realize the quantization encoding of the continuous spatial coordinates of the protein;
[0010] S4. Constructing a quantum circuit of an interaction strength quantization encoder, and based on the data information obtained in step S2, realizing the quantization encoding of the interaction strength between residues;
[0011] S5. Iteratively updating the data information obtained in step S3 and step S4 to optimize the coordinate information of all residues;
[0012] S6. Perform standardization processing based on the data information obtained in step S5 to obtain the prediction result of the protein structure.
[0013] Step S2 generates coordinates and performs polar coordinate conversion on each residue in the protein sequence obtained in step S1, and calculates the interaction strength parameter to complete sequence pre-processing, which specifically includes the following steps:
[0014] Random coordinate generation and polar coordinate conversion:
[0015] For a protein of length N, the Cartesian coordinates of the corresponding structure are represented by R N×3 , Cartesian coordinates are used to represent the coordinates of each residue in three-dimensional space;
[0016] In order to describe the relative coordinates between two consecutive residues, polar coordinates are used for generation; for the i-th residue r i and the i+1th residue r i+1 , the relative polar coordinates are expressed as (ρ i ,θ i ,φ i ), where ρ i represents the radial distance, θ i represents the direction angle in spherical coordinates, φ i represents the polar angle in spherical coordinates;
[0017] In order to obtain the spatial coordinate distribution of each residue, the bond length distribution between each residue is randomly initialized using statistical prior knowledge; after normal distribution evaluation, it is ensured that the bond length above the set ratio meets the following is a normal distribution with parameters, where is the residue r j With residue r k The mean of the bond length normal distribution between is the residue r j With residue r k The standard deviation of the normal distribution of bond lengths between ; μ and σ of all bond lengths are taken as the hypothesis distribution of test failure, where μ is the mean of the overall distribution of protein bond lengths and σ is the standard deviation of the overall distribution of protein bond lengths; Randomly generate ρ from the normal distribution of the feature i The value of θ is randomly generated from the interval [0,π] iThe value of φ is randomly generated from the interval [0,2π] i The value of
[0018] Use the following formula to convert polar coordinates:
[0019]
[0020] Where (x, y, z) are Cartesian coordinates in three-dimensional space; (ρ, θ, φ) are spherical coordinates in three-dimensional space;
[0021] Calculate the interaction strength parameter:
[0022] set up Represents the residue's own properties, where is the ith amino acid, A is a set of 22 amino acid types; the initial parameters of the quantum gate are calculated using the following formula:
[0023]
[0024] Where θ k,i is the interaction strength parameter between the k-th amino acid and the i-th amino acid in the protein; is the property corresponding to the kth amino acid in the protein sequence; is the property corresponding to the ith amino acid in the protein sequence; σ is the adaptive scaling parameter; d k,i is the spatial Euclidean distance between two amino acids; ρ k-i| is the adjacency relationship between residues;
[0025] The initial parameters of the obtained quantum gate are normalized to complete the sequence pre-processing.
[0026] The step S3 of constructing a continuous coordinate quantization encoder quantum circuit and realizing the quantization encoding of the continuous spatial coordinates of the protein based on the data information obtained in step S2 specifically includes the following steps:
[0027] In order to i ,θ i ,φ i ) is encoded into three different qubits, and the coordinates are normalized to the interval [-1,1] to ensure that the Pauli Z operator σ z The values on the projection can be expressed in scaled polar coordinates; ρ i ∈[v min -ε,v max +ε], where v min For all ρ i The minimum value of v max For all ρ iThe maximum value of , ε is the set floating value; θ∈[0,π], φ∈[0,2π]; the following formula is used to convert the starting parameters:
[0028]
[0029] In the formula (ω p ,ω θ ,ω φ ) are the parameters of the quantum gate corresponding to the relative coordinate line (ρ, θ, φ) when it is initialized to a quantum state;
[0030] For the quantum bit θ: the initial state is |ψ>=|0>; after the Hadamard gate processing, the state is converted to the Bell ground state The obtained Bell ground state is converted through the RY gate, which is expressed as Calculate the expectation value of the quantum system on the Pauli Z operator, expressed as Where E is the expected value of the quantum system, ψ is the final state of the quantum system before measurement; finally, the expected value of the θ qubit is post-processed, and the post-processed expression is θ' is the final classical polar coordinate azimuth;
[0031] For the quantum bit ρ: the initial state is |ψ>=|0>; after the Hadamard gate processing, the state is converted to the Bell ground state The obtained Bell ground state is converted through the RY gate, which is expressed as Calculate the expectation value of the quantum system on the Pauli Z operator, expressed as Where E is the expected value of the quantum system, ψ is the final state of the quantum system before measurement; finally, the expected value of the ρ qubit is post-processed, and the post-processed expression is Where E is the expected value of the quantum system, v max is the maximum value of ρ, v min is the minimum value of ρ, ε is the floating value considering the over-limit factor, and ρ' is the final classical polar coordinate radial distance;
[0032] For the quantum bit φ: the initial state is |ψ>=|0>; after the Hadamard gate processing, the state is converted to the Bell ground state The obtained Bell ground state is converted through the RY gate, which is expressed as Calculate the expectation value of the quantum system on the Pauli Z operator, expressed as Where E is the expectation value of the quantum system, ψ is the final state of the quantum system before measurement; finally, the expectation value of the φ quantum bit is post-processed, and the post-processed expression is φ'=π(E+1), where φ' is the final polar angle of the classical polar coordinates.
[0033] The step S4 of constructing the interaction strength quantization encoder quantum circuit and realizing the quantization encoding of the interaction strength between residues based on the data information obtained in the step S2 specifically includes the following steps:
[0034] Using the arbitrary state RY rotation gate ASRY gate, all amplitudes are transferred to the source state;
[0035] According to the amplitude of the source state and the obtained interaction strength parameter, the amplitude of the quantum state is distributed using several arbitrary state RY revolving gates ASRY gates. The distribution process is expressed as
[0036]
[0037] Where |ψ> is the quantum state of the entire quantum system; ← is the update of the quantum state of the system after performing a specific operation; is to apply an arbitrary state RY rotation gate to the quantum states |0> and |k> to exchange the amplitudes corresponding to these two states; |k> is the kth partial state of the quantum system |ψ>; N is the number of all partial states of the system. For a system with n quantum bits, N = 2 n ; In order to transfer the amplitude between the quantum state |k> and the quantum state |i> using the arbitrary state rotation RY gate, the transfer strength is determined by the interaction strength parameter θ k,i Determine; k,i is the interaction strength parameter to be solved; α i is the amplitude intensity of the i-th partial state; |i> is the i-th partial state of the quantum system |ψ>;
[0038] Finally, the quantized encoding of the interaction strength between residues is achieved.
[0039] The arbitrary state RY revolving door ASRY door specifically comprises the following steps:
[0040] Implementation and decomposition of arbitrary state RY revolving door ASRY door:
[0041] Assume that all n qubits are in superposition Apply RY gate to states i> and |j>; Arbitrary state RY rotation gate AS The unitary matrix of the RY gate It is described by the following unitary matrix:
[0042]
[0043] Where i<j; at positions (i,i) and (j,j), the matrix elements are At position (i,j), the matrix element is At position (j,i), the matrix element is When i=j, degenerates to the identity matrix;
[0044] When i>j, the unitary matrix is expressed as
[0045] According to the characteristics of trigonometric even functions and odd functions, the unitary matrix is expressed as Finally, through quantum gate decomposition, the arbitrary state RY rotation gate ASRY gate is decomposed into quantum gates and control circuits;
[0046] Consider the source state S = |S0S1…S n-1 ,S i ∈{0,1}> to the target state T = |T0T1…T n-1 ,T i ∈{0,1}> ASRY operation; by and N δ The length of determines the difference between the two binary states; setting the final different qubit δ n-1 For the bits that perform the rotation operation in big-endian mode, the remaining qubits The multi-control X-gate MCS gate is used to exchange to ensure that all qubits except the first qubit are the same; for all qubits k except the first qubit, k∈{0,1,...,N δ -1}, use the following formula to perform difference exchange:
[0047]
[0048] Where |ψ> next is the quantum state of the quantum system at the next moment after executing the quantum gate operation; |ψ> is the state of the superposition quantum system at the previous moment; MCX k (CtrlQubits, CtrlValues) is a multi-control Pauli X-gate, with CtrlQubits as the control bit. When the value of the control bit is CtrlValues, the Pauli X-gate is executed to flip the state of the target bit k; CtrlQubits is the control bit; δ i is the ith quantum bit with a difference; CtrlValues is the value triggered by the control bit; ψ i is the binary value of the i-th quantum bit in the current system;
[0049] Arrange the index order to ensure that the conditions of the arbitrary state RY revolving door ASRY door are met and Where δ0 is the first bit that differs between quantum states S and T in binary representation. is the value of this difference in the quantum system ψ, is the value of this difference in the target quantum state T;
[0050] The sequential step operation is represented as
[0051] The source and target states differ only in qubit δ0; the adjoint operation then restores the altered state to its original position and magnitude.
[0052] The adjoint operation of the MCX gate is itself, and the total operation of all the exchange difference steps is represented as U swap , the total operation of all rotation steps is represented as U rot , then the adjoint matrix operation is expressed as
[0053]
[0054] Where MCX i is a multi-control Pauli X-gate, which executes the Pauli X-gate to flip the state of the target bit i; MCX0 is a multi-control Pauli X-gate, which executes the Pauli X-gate to flip the state of the target bit 0; χ1(i>j) is an indicator function; U adjoint is the total operation of the adjoint matrix operation steps; |ψ> final is the final state of the quantum system; |ψ> init is the initial state of the quantum system;
[0055] Through the combination of MCX gate and MCRY gate, the decomposition of arbitrary state RY revolving gate ASRY gate is realized.
[0056] Step S5, in which the data information obtained in step S3 and step S4 is iteratively updated to optimize all residue coordinate information, specifically comprises the following steps:
[0057] For all residues, iterative updates are performed:
[0058] When ρ is the residue r i When performing iterative updates: residue r j The corresponding state is α j |j>,α j is the amplitude corresponding to state |j>, |j> is the jth sub-state of the quantum system; the line associated with ρ is set to |ψ>, and the following formula is used for conversion:
[0059]
[0060] Where MCRY(θ,CtrlQubits,CtrlValues) is the multi-control RY rotation gate; θ is the RY gate rotation parameter; Direct[i,j] is the normalized orientation between the ith residue and the jth residue; k[|ji] is the scaling parameter for different relative distance jumps between the ith residue and the jth residue; binary(j) is the binary form of the natural number j;
[0061] The transformation is performed with each interaction term as the control bit and the coordinate circuit as the entanglement circuit;
[0062] By evaluating the expectation values of the three qubits representing the coordinate circuit on the Pauli Z, the coordinate values of the classical state are obtained;
[0063] Finally, the prediction of the optimal protein structure is achieved by performing N-1 iterations for each residue.
[0064] Step S6, according to the data information obtained in step S5, performs standardization processing to obtain the prediction result of the protein structure, specifically comprises the following steps:
[0065] In the output stage, the normalized data is restored;
[0066] Recover the coordinate data of the converted data;
[0067] For the set extreme value data, eliminate some data with a high ranking and some data with a low ranking, calculate the mean to obtain the final relative direction, and convert it into the Cartesian coordinates of the spatial structure;
[0068] In order to standardize the output of the coordinates, all points are transformed by translation and rotation to ensure that the first three residues are located at (0,0,0), (0,0,z1) and (0,y2,z2) respectively, so as to complete the step-by-step alignment of the first three residues; specifically, the following steps are included:
[0069] For the input three-dimensional Cartesian coordinate A, first translate so that point 0 is at the origin, denoted as A′ i =A i -A0, i=0,1,...,n-1; A′ i is the three-dimensional Cartesian coordinate of the i-th point after translation transformation, A i is the three-dimensional Cartesian coordinate of the i-th point before transformation, A0 is the coordinate of the 0-th point;
[0070] Then rotate the structure so that point 1 is on the Z axis, creating the rotation matrix:
[0071]
[0072] Where R x (θ x ) is the rotation θ around the X axis x degree; θ x is the angle of rotation around the X axis; R z (θ z ) is the rotation θ around the Z axis z degree; θ z is the angle of rotation around the Z axis; (A′1x ,A′ 1y ,A′ 1z ) is the coordinate of the first point of the structure A' after translation; R is the overall rotation matrix to achieve the predetermined rotation effect;
[0073] Get the coordinates A″ after the secondary transformation i =R·A′ i ; Finally, perform a rotation transformation so that point 2 is located in the YOZ plane and establish the rotation matrix:
[0074]
[0075] Where R z (θ′ z ) is the second rotation around the Z axis θ′ z degree; θ′ z is the second rotation angle around the Z axis; (A″ 2x ,A″ 2y ,A″ 2z ) are the coordinates of the second point of structure A″ after the second rotation;
[0076] Get the final coordinate A″′ i =R z (θ′ z )·A″ i .
[0077] The present invention also provides a system for implementing the quantum computing method for protein structure prediction, comprising a data acquisition module, a pre-processing module, a coordinate encoding module, an intensity encoding module, an iterative update module and a standard processing module; the data acquisition module, the pre-processing module, the coordinate encoding module, the intensity encoding module, the iterative update module and the standard processing module are connected in series in sequence; the data acquisition module is used to acquire the protein amino acid sequence to be processed, and upload the data information to the pre-processing module; the pre-processing module is used to generate coordinates and perform polar coordinate conversion on each residue in the acquired protein amino acid sequence according to the received data information, and calculate the interaction intensity parameter to complete the sequence pre-processing, and upload the data information to the coordinate encoding module; the coordinate encoding ... Data information, construct a continuous coordinate quantization encoder quantum circuit, and based on the obtained data information, realize the quantization encoding of the continuous spatial coordinates of the protein, and upload the data information to the intensity encoding module; the intensity encoding module is used to construct an interaction intensity quantization encoder quantum circuit according to the received data information, and based on the obtained data information, realize the quantization encoding of the interaction intensity between residues, and upload the data information to the iterative update module; the iterative update module is used to iteratively update the obtained data information according to the received data information to achieve the optimization of all residue coordinate information, and upload the data information to the standard processing module; the standard processing module is used to perform standardized processing according to the received data information and the obtained data information to obtain the prediction result of the protein structure.
[0078] The quantum computing method and system for protein structure prediction provided by the present invention not only realizes the prediction of protein structure through the quantized coding of protein continuous spatial coordinates, the quantized coding of the interaction strength between residues and the iterative update process, but also significantly improves the accuracy and reliability of protein structure prediction, and occupies less computing resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0079] Figure 1 The figure is a schematic diagram of the method flow of the present invention.
[0080] Figure 2 Schematic diagram of the circuit for quantization encoding of continuous spatial coordinates of proteins in the method of the present invention.
[0081] Figure 3 Schematic diagram of the circuit for quantization encoding of the interaction strength between residues in the method of the present invention.
[0082] Figure 4 The diagram is a circuit diagram of an arbitrary state RY revolving door ASRY door according to the method of the present invention.
[0083] Figure 5 Schematic diagram of the functional modules of the system of the present invention. DETAILED DESCRIPTION
[0084] like Figure 1 The method flow diagram of the method of the present invention is shown as follows: The quantum computing method for predicting protein structure disclosed in the present invention comprises the following steps:
[0085] S1. Obtain the amino acid sequence of the protein to be processed;
[0086] S2. For the protein amino acid sequence obtained in step S1, coordinate generation and polar coordinate conversion are performed for each residue therein, and interaction strength parameters are calculated to complete sequence pre-processing; specifically, the steps include:
[0087] Random coordinate generation and polar coordinate conversion:
[0088] For a protein of length N, the Cartesian coordinates of the corresponding structure are represented by R N×3 , Cartesian coordinates are used to represent the coordinates of each residue in three-dimensional space;
[0089] In order to describe the relative coordinates between two consecutive residues, polar coordinates are used for generation; for the i-th residue r i and the i+1th residue r i+1 , the relative polar coordinates are expressed as (ρ i ,θ i ,φ i ), where ρ i represents the radial distance, θ i represents the direction angle in spherical coordinates, φ i represents the polar angle in spherical coordinates;
[0090] In order to obtain the spatial coordinate distribution of each residue, the bond length distribution between each residue is randomly initialized using statistical prior knowledge; after normal distribution evaluation, it is ensured that the bond length above the set ratio meets the following is a normal distribution with parameters, where is the residue r j With residue r k The mean of the bond length normal distribution between is the residue r j With residue r k The standard deviation of the normal distribution of bond lengths between ; μ and σ of all bond lengths are taken as the hypothesis distribution of test failure, where μ is the mean of the overall distribution of protein bond lengths and σ is the standard deviation of the overall distribution of protein bond lengths; Randomly generate ρ from the normal distribution of the feature i The value of θ is randomly generated from the interval [0,π] i The value of φ is randomly generated from the interval [0,2π] i The value of
[0091] Use the following formula to convert polar coordinates:
[0092]
[0093]
[0094] Where (x, y, z) are Cartesian coordinates in three-dimensional space; (ρ, θ, φ) are spherical coordinates in three-dimensional space;
[0095] Calculate the interaction strength parameter:
[0096] To minimize the number of parameters, set Represents the residue's own properties, where is the ith amino acid, A is a set of 22 amino acid types; the initial parameters of the quantum gate are calculated using the following formula:
[0097]
[0098] Where θ k,i is the interaction strength parameter between the k-th amino acid and the i-th amino acid in the protein; is the property corresponding to the kth amino acid in the protein sequence; is the property corresponding to the ith amino acid in the protein sequence; σ is the adaptive scaling parameter; d k,i is the spatial Euclidean distance between two amino acids; ρ k-i is the adjacency relationship between residues; With d k,i The result of the division reflects that the interaction strength decreases with increasing distance. This design follows the actual law of biology. Finally, the interaction strength that varies with distance is obtained, which fully exploits the long-range and short-range interactions.
[0099] Normalize the initial parameters of the obtained quantum gate to complete the sequence pre-processing;
[0100] The pre-processing process in this step provides reasonable coordinate input for the quantum model, so that the subsequent quantization encoding and optimization can achieve more accurate prediction results with lower computational complexity; by constructing an initial input that is closer to the real structure, it helps to improve the convergence speed of the model and reduce redundant calculations in the optimization step;
[0101] S3. Constructing a continuous coordinate quantization encoder quantum circuit, and based on the data information obtained in step S2, realizing the quantization encoding of the continuous spatial coordinates of the protein; specifically comprising the following steps:
[0102] In order to i ,θ i ,φi ) is encoded into three different qubits, and the coordinates are normalized to the interval [-1,1] to ensure that the Pauli Z operator σ z The values on the projection can be expressed in scaled polar coordinates; ρ i ∈[v min -ε,v max +ε], where v min For all ρ i The minimum value of v max For all ρ i The maximum value of , ε is the set floating value (preferably 0.02); θ∈[0,π], φ∈[0,2π]; the following formula is used to convert the starting parameters:
[0103]
[0104] In the formula (ω p ,ω θ ,ω φ ) are the parameters of the quantum gate corresponding to the relative coordinate line (ρ, θ, φ) when it is initialized to a quantum state;
[0105] Continuous coordinate quantization encoding circuit such as Figure 2 As shown;
[0106] For the quantum bit θ: the initial state is |ψ>=|0>; after the Hadamard gate processing, the state is converted to the Bell ground state The obtained Bell ground state is converted through the RY gate, which is expressed as Calculate the expectation value of the quantum system on the Pauli Z operator, expressed as Where E is the expected value of the quantum system, ψ is the final state of the quantum system before measurement; finally, the expected value of the θ qubit is post-processed, and the post-processed expression is θ' is the final classical polar coordinate azimuth;
[0107] For the quantum bit ρ: the initial state is |ψ>=|0>; after the Hadamard gate processing, the state is converted to the Bell ground state The obtained Bell ground state is converted through the RY gate, which is expressed as Calculate the expectation value of the quantum system on the Pauli Z operator, expressed as Where E is the expected value of the quantum system, ψ is the final state of the quantum system before measurement; finally, the expected value of the ρ qubit is post-processed, and the post-processed expression is Where E is the expected value of the quantum system, v max is the maximum value of ρ, v min is the minimum value of ρ, ε is the floating value considering the over-limit factor, and ρ' is the final classical polar coordinate radial distance;
[0108] For the quantum bit φ: the initial state is |ψ>=|0>; after the Hadamard gate processing, the state is converted to the Bell ground state The obtained Bell ground state is converted through the RY gate, which is expressed as Calculate the expectation value of the quantum system on the Pauli Z operator, expressed as Where E is the expected value of the quantum system, ψ is the final state of the quantum system before measurement; finally, the expected value of the φ quantum bit is post-processed, and the post-processed expression is φ'=π(E+1), φ' is the final classical polar coordinate polar angle;
[0109] The coordinates encoded by the continuous coordinate quantization encoder can be accurately reproduced without additional transformation, which shows that the continuous coordinate quantization encoder can fully encode coordinate information and has strong interpretability;
[0110] Through quantized coding, the continuous coordinates of protein residues can be represented in quantum states with fewer quantum bit resources, significantly reducing the time complexity of subsequent calculations. At the same time, this coding method discretizes the originally continuous spatial information into quantum states, providing efficient data representation for subsequent quantum circuit optimization and state measurement, thereby improving the computational efficiency and accuracy of the prediction model.
[0111] S4. Constructing a quantum circuit of an interaction strength quantization encoder, and realizing the quantization encoding of the interaction strength between residues based on the data information obtained in step S2; specifically comprising the following steps:
[0112] Interaction intensity quantization encoder quantum circuit Figure 3 As shown;
[0113] Using the arbitrary state RY rotation gate ASRY gate, all amplitudes are transferred to the source state;
[0114] According to the amplitude of the source state and the obtained interaction strength parameter, the amplitude of the quantum state is distributed using several arbitrary state RY revolving gates ASRY gates. The distribution process is expressed as
[0115]
[0116] Where |ψ> is the quantum state of the entire quantum system; ← is the update of the quantum state of the system after performing a specific operation; To apply an arbitrary RY rotation gate to the quantum states |0> and |k> to exchange the amplitudes corresponding to these two states; |k> is the kth partial state of the quantum system |ψ>; N is the number of all partial states of the system. For a system with n quantum bits, N = 2 n ; In order to transfer the amplitude between the quantum state |k> and the quantum state |i> using the arbitrary state rotation RY gate, the transfer strength is determined by the interaction strength parameter θ k,i Determine; k,i is the interaction strength parameter to be solved; α i is the amplitude intensity of the i-th partial state; |i> is the i-th partial state of the quantum system |ψ>;
[0117] Finally, the quantized encoding of the interaction strength between residues is achieved;
[0118] The larger the α, the more positive the interaction of the residue pair in the protein, and the smaller the α, the more negative the interaction. The above method constitutes an interaction strength quantization encoder. For N interaction strength items that need to be encoded, the interaction strength quantization encoder can be The superposition state is encoded using qubits instead of N qubits used in the past, which saves exponential storage space.
[0119] This quantized superposition coding effectively compresses the complex interaction strength information between residues, enabling the model to efficiently store the interactions between protein residues in the quantum state. Through this coding, the model can not only complete the quantized representation of interaction strength with low-bit resources, but also provide efficient input for the adaptive optimization of quantum circuits, improving the accuracy of overall predictions and the effect of spatial interaction modeling.
[0120] Among them, the arbitrary state RY revolving door ASRY door specifically includes the following steps:
[0121] The circuit of any state RY revolving door ASRY door is as follows Figure 4 As shown;
[0122] Implementation and decomposition of arbitrary state RY revolving door ASRY door:
[0123] Assume that all n qubits are in superposition Apply RY gate to states i> and |j>; Arbitrary state RY rotation gate AS The unitary matrix of the RY gate It is described by the following unitary matrix:
[0124]
[0125] Where i<j; at positions (i,i) and (j,j), the matrix elements are At position (i,j), the matrix element is At position (j,i), the matrix element is When i=j, degenerates to the identity matrix;
[0126] When i>j, the unitary matrix is expressed as
[0127] According to the characteristics of trigonometric even functions and odd functions, the unitary matrix is expressed as Finally, through quantum gate decomposition, the arbitrary state RY rotation gate ASRY gate is decomposed into quantum gates and control circuits;
[0128] Consider the source state S = |S0S1…S n-1 ,S i ∈{0,1}> to the target state T = |T0T1…T n-1 ,T i ∈{0,1} ASRY operation; by and N δ The length of determines the difference between the two binary states; setting the final different qubit δ n-1 For the bits that perform the rotation operation in big-endian mode, the remaining qubits The multi-control X-gate MCS gate is used to exchange to ensure that all qubits except the first qubit are the same; for all qubits k except the first qubit, k∈{0,1,...,N δ -1}, use the following formula to perform difference exchange:
[0129]
[0130] Where |ψ> next is the quantum state of the quantum system at the next moment after executing the quantum gate operation; |ψ> is the state of the superposition quantum system at the previous moment; MCX k (CtrlQubits, CtrlValues) is a multi-control Pauli X-gate, with CtrlQubits as the control bit. When the value of the control bit is CtrlValues, the Pauli X-gate is executed to flip the state of the target bit k; CtrlQubits is the control bit; δ i is the ith quantum bit with a difference; CtrlValues is the value triggered by the control bit; ψ i is the binary value of the i-th quantum bit in the current system;
[0131] Arrange the index order to ensure that the conditions of the arbitrary state RY revolving door ASRY door are met and Where δ0 is the first bit that differs between quantum states S and T in binary representation. is the value of this difference in the quantum system ψ, is the value of this difference in the target quantum state T;
[0132] The sequential step operation is represented as
[0133] The source and target states differ only in qubit δ0; the adjoint operation then restores the altered state to its original position and magnitude.
[0134] The adjoint operation of the MCX gate is itself, and the total operation of all the exchange difference steps is represented as U swap , the total operation of all rotation steps is represented as U rot , then the adjoint matrix operation is expressed as
[0135]
[0136] Where MCX i is a multi-control Pauli X-gate, which executes the Pauli X-gate to flip the state of the target bit i; MCX0 is a multi-control Pauli X-gate, which executes the Pauli X-gate to flip the state of the target bit 0; χ1(i>j) is an indicator function; U adjoint is the total operation of the adjoint matrix operation steps; |ψ> final is the final state of the quantum system; |ψ> init is the initial state of the quantum system;
[0137] Through the combination of MCX gate and MCRY gate, the decomposition of the arbitrary state RY revolving gate ASRY gate is realized;
[0138] S5. Iteratively update the data information obtained in step S3 and step S4 to optimize the coordinate information of all residues; specifically, the steps include:
[0139] For all residues, iterative updates are performed:
[0140] When ρ is the residue r i When performing iterative updates: residue r j The corresponding state is α j |j>,α j is the amplitude corresponding to state |j>, |j> is the jth sub-state of the quantum system; the line associated with ρ is set to |ψ>, and the following formula is used for conversion:
[0141]
[0142] Where MCRY(θ,CtrlQubits,CtrlValues) is the multi-control RY rotation gate; θ is the RY gate rotation parameter; Direct[i,j] is the normalized orientation between the ith residue and the jth residue; k[ji] is the scaling parameter for different relative distance jumps between the ith residue and the jth residue; binary(j) is the binary form of the natural number j;
[0143] The transformation is performed with each interaction term as the control bit and the coordinate circuit as the entanglement circuit;
[0144] By evaluating the expectation values of the three qubits representing the coordinate circuit on the Pauli Z, the coordinate values of the classical state are obtained;
[0145] Finally, the prediction of the optimal protein structure is achieved by performing N-1 iterations for each residue;
[0146] This iterative mechanism in this step not only improves the computational efficiency, but also ensures that the interactions between residues are fully considered in the spatial structure prediction, thereby significantly improving the accuracy and reliability of protein structure prediction; by reducing the spatial complexity from O(n) to O(log2 n), the quantum bit resource consumption of each iteration is significantly reduced;
[0147] S6. Performing standardization processing based on the data information obtained in step S5 to obtain a prediction result of the protein structure; specifically comprising the following steps:
[0148] In the output stage, the normalized data is restored;
[0149] Recover the coordinate data of the converted data;
[0150] For the set extreme value data, eliminate some data with a high ranking and some data with a low ranking, calculate the mean to obtain the final relative direction, and convert it into the Cartesian coordinates of the spatial structure;
[0151] In order to standardize the output of coordinates, all points are transformed by translation and rotation to ensure that the first three residues are located at (0,0,0), (0,0,z1) and (0,y2,z2) respectively, so as to complete the step-by-step alignment of the first three residues; the specific steps include the following:
[0152] For the input three-dimensional Cartesian coordinate A, first translate so that point 0 is at the origin, denoted as A′ i =A i -A0, i=0,1,...,n-1; A′ i is the three-dimensional Cartesian coordinate of the i-th point after translation transformation, A i is the three-dimensional Cartesian coordinate of the i-th point before transformation, A0 is the coordinate of the 0-th point;
[0153] Then rotate the structure so that point 1 is on the Z axis, creating the rotation matrix:
[0154]
[0155] Where R x (θ x ) is the rotation θ around the X axis xdegree; θ x is the angle of rotation around the X axis; R z (θ z ) is the rotation θ around the Z axis z degree; θ z is the angle of rotation around the Z axis; (A′ 1x ,A′ 1y ,A′ 1z ) is the coordinate of the first point of the structure A' after translation; R is the overall rotation matrix to achieve the predetermined rotation effect;
[0156] Get the coordinates A″ after the secondary transformation i =R·A′ i ; Finally, perform a rotation transformation so that point 2 is located in the YOZ plane and establish the rotation matrix:
[0157]
[0158] Where R z (θ′ z ) is the second rotation around the Z axis θ′ z degree; θ′ z is the second rotation angle around the Z axis; (A″ 2x ,A″ 2y ,A″ 2z ) are the coordinates of the second point of structure A″ after the second rotation;
[0159] Get the final coordinate A″′ i =R z (θ′ z )·A″ i ;
[0160] After post-processing, the final output protein structure is highly reproducible and standardized, providing clear and stable structural data for downstream analysis.
[0161] like Figure 5The figure shows a schematic diagram of the functional modules of the system of the present invention: the system of the quantum computing method for realizing the protein structure prediction disclosed in the present invention comprises a data acquisition module, a pre-processing module, a coordinate encoding module, an intensity encoding module, an iterative update module and a standard processing module; the data acquisition module, the pre-processing module, the coordinate encoding module, the intensity encoding module, the iterative update module and the standard processing module are connected in series in sequence; the data acquisition module is used to acquire the protein amino acid sequence to be processed, and upload the data information to the pre-processing module; the pre-processing module is used to generate coordinates and perform polar coordinate conversion for each residue in the acquired protein amino acid sequence according to the received data information, and calculate the interaction intensity parameter to complete the sequence pre-processing, and upload the data information to the coordinate encoding module; the coordinate encoding module It is used to construct a continuous coordinate quantization encoder quantum circuit according to the received data information, and based on the obtained data information, realize the quantization encoding of the continuous spatial coordinates of the protein, and upload the data information to the intensity encoding module; the intensity encoding module is used to construct an interaction intensity quantization encoder quantum circuit according to the received data information, and based on the obtained data information, realize the quantization encoding of the interaction intensity between residues, and upload the data information to the iterative update module; the iterative update module is used to iteratively update the obtained data information according to the received data information to achieve the optimization of all residue coordinate information, and upload the data information to the standard processing module; the standard processing module is used to perform standardized processing according to the received data information and the obtained data information to obtain the prediction result of the protein structure.
Claims
1. A quantum computing method for protein structure prediction, comprising the following steps: S1. Obtain the amino acid sequence of the protein to be processed; S2. For the protein amino acid sequence obtained in step S1, coordinate generation and polar coordinate conversion are performed for each residue therein, and interaction strength parameters are calculated to complete sequence pre-processing; S3. Construct a continuous coordinate quantization encoder quantum circuit, and based on the data information obtained in step S2, realize the quantization encoding of the continuous spatial coordinates of the protein; S4. Constructing a quantum circuit of an interaction strength quantization encoder, and based on the data information obtained in step S2, realizing the quantization encoding of the interaction strength between residues; S5. Iteratively updating the data information obtained in step S3 and step S4 to optimize the coordinate information of all residues; S6. Perform standardization processing based on the data information obtained in step S5 to obtain the prediction result of the protein structure.
2. The quantum computing method for protein structure prediction according to claim 1, characterized in that Step S2 generates coordinates and performs polar coordinate conversion on each residue in the protein sequence obtained in step S1, and calculates the interaction strength parameter to complete sequence pre-processing, which specifically includes the following steps: Random coordinate generation and polar coordinate conversion: For a protein of length N, the Cartesian coordinates of the corresponding structure are represented by R N×3 , Cartesian coordinates are used to represent the coordinates of each residue in three-dimensional space; In order to describe the relative coordinates between two consecutive residues, polar coordinates are used for generation; for the i-th residue r i and the i+1th residue r i+1 , the relative polar coordinates are expressed as (ρ i ,θ i ,φ i ), where ρ i represents the radial distance, θ i represents the direction angle in spherical coordinates, φ i represents the polar angle in spherical coordinates; In order to obtain the spatial coordinate distribution of each residue, the bond length distribution between each residue is randomly initialized using statistical prior knowledge; after normal distribution evaluation, it is ensured that the bond length above the set ratio meets the following is a normal distribution with parameters, where is the residue r j With residue r k The mean of the bond length normal distribution between is the residue r j With residue r k The standard deviation of the normal distribution of bond lengths between ; μ and σ of all bond lengths are taken as the hypothesis distribution of test failure, where μ is the mean of the overall distribution of protein bond lengths and σ is the standard deviation of the overall distribution of protein bond lengths; Randomly generate ρ from the normal distribution of the feature i The value of θ is randomly generated from the interval [0,π] i The value of φ is randomly generated from the interval [0,2π] i The value of Use the following formula to convert polar coordinates: Where (x, y, z) are Cartesian coordinates in three-dimensional space; (ρ, θ, φ) are spherical coordinates in three-dimensional space; Calculate the interaction strength parameter: set up Represents the residue's own properties, where is the ith amino acid, A is a set of 22 amino acid types; the initial parameters of the quantum gate are calculated using the following formula: Where θ k,i is the interaction strength parameter between the k-th amino acid and the i-th amino acid in the protein; is the property corresponding to the kth amino acid in the protein sequence; is the property corresponding to the ith amino acid in the protein sequence; σ is the adaptive scaling parameter; d k,i is the spatial Euclidean distance between two amino acids; ρ |k-i| is the adjacency relationship between residues; The initial parameters of the obtained quantum gate are normalized to complete the sequence pre-processing.
3. The quantum computing method for protein structure prediction according to claim 2, characterized in that The step S3 of constructing a continuous coordinate quantization encoder quantum circuit and realizing the quantization encoding of the continuous spatial coordinates of the protein based on the data information obtained in step S2 specifically includes the following steps: In order to i ,θ i ,φ i ) is encoded into three different qubits, and the coordinates are normalized to the interval [-1,1] to ensure that the Pauli Z operator σ z The values on the projection can be expressed in scaled polar coordinates; ρ i ∈[v min -ε,v max +ε], where v min For all ρ i The minimum value of v max For all ρ i The maximum value of , ε is the set floating value; θ∈[0,π], φ∈[0,2π]; the following formula is used to convert the starting parameters: In the formula (ω p ,ω θ ,ω φ ) are the parameters of the quantum gate corresponding to the relative coordinate line (ρ, θ, φ) when it is initialized to a quantum state; For the quantum bit θ: the initial state is |ψ>=|0>; after the Hadamard gate processing, the state is converted to the Bell ground state The obtained Bell ground state is converted through the RY gate, which is expressed as Calculate the expectation value of the quantum system on the Pauli Z operator, expressed as Where E is the expected value of the quantum system, ψ is the final state of the quantum system before measurement; finally, the expected value of the θ qubit is post-processed, and the post-processed expression is θ' is the final classical polar coordinate azimuth; For the quantum bit ρ: the initial state is |ψ>=|0>; after the Hadamard gate processing, the state is converted to the Bell ground state The obtained Bell ground state is converted through the RY gate, which is expressed as Calculate the expectation value of the quantum system on the Pauli Z operator, expressed as Where E is the expected value of the quantum system, ψ is the final state of the quantum system before measurement; finally, the expected value of the ρ qubit is post-processed, and the post-processed expression is Where E is the expected value of the quantum system, v max is the maximum value of ρ, v min is the minimum value of ρ, ε is the floating value considering the over-limit factor, and ρ' is the final classical polar coordinate radial distance; For the quantum bit φ: the initial state is |ψ>=|0>; after the Hadamard gate processing, the state is converted to the Bell ground state The obtained Bell ground state is converted through the RY gate, which is expressed as Calculate the expectation value of the quantum system on the Pauli Z operator, expressed as Where E is the expectation value of the quantum system, ψ is the final state of the quantum system before measurement; finally, the expectation value of the φ quantum bit is post-processed, and the post-processed expression is φ'=π(E+1), where φ' is the final polar angle of the classical polar coordinates.
4. The quantum computing method for protein structure prediction according to claim 3, characterized in that The step S4 of constructing the interaction strength quantization encoder quantum circuit and realizing the quantization encoding of the interaction strength between residues based on the data information obtained in the step S2 specifically includes the following steps: Using the arbitrary state RY rotation gate ASRY gate, all amplitudes are transferred to the source state; According to the amplitude of the source state and the obtained interaction strength parameter, the amplitude of the quantum state is distributed using several arbitrary state RY revolving gates ASRY gates. The distribution process is expressed as Where |ψ> is the quantum state of the entire quantum system; ← is the update of the quantum state of the system after performing a specific operation; To apply an arbitrary RY rotation gate to the quantum states |0> and |k> to exchange the amplitudes corresponding to these two states; |k> is the kth partial state of the quantum system |ψ>; N is the number of all partial states of the system. For a system with n quantum bits, N = 2 n ; In order to transfer the amplitude between the quantum state |k> and the quantum state |i> using the arbitrary state rotation RY gate, the transfer strength is determined by the interaction strength parameter θ k,i Decide; θ k,i is the interaction strength parameter to be solved; α i is the amplitude intensity of the i-th partial state; |i> is the i-th partial state of the quantum system |ψ>; Finally, the quantized encoding of the interaction strength between residues is achieved.
5. The quantum computing method for protein structure prediction according to claim 4, characterized in that The arbitrary state RY revolving door ASRY door specifically comprises the following steps: Implementation and decomposition of arbitrary state RY revolving door ASRY door: Assume that all n qubits are in superposition Apply RY gate to states |i> and |j>; Unitary matrix of arbitrary state RY rotation gate ASRY gate It is described by the following unitary matrix: Where i<j; at positions (i,i) and (j,j), the matrix elements are At position (i,j), the matrix element is At position (j,i), the matrix element is When i=j, degenerates to the identity matrix; When i>j, the unitary matrix is expressed as According to the characteristics of trigonometric even functions and odd functions, the unitary matrix is expressed as Finally, through quantum gate decomposition, the arbitrary state RY rotation gate ASRY gate is decomposed into quantum gates and control circuits; Consider the source state S = |S0S1…S n-1 ,S i ∈{0,1}> to the target state T = |T0T1…T n-1 ,T i ∈{0,1}> ASRY operation; by and N δ The length of determines the difference between the two binary states; setting the final different qubit δ n-1 For the bits that perform the rotation operation in big-endian mode, the remaining qubits The multi-control X-gate MCS gate is used to exchange to ensure that all qubits except the first qubit are the same; for all qubits k except the first qubit, k∈{0,1,...,N δ -1}, use the following formula to perform difference exchange: Where |ψ> next is the quantum state of the quantum system at the next moment after executing the quantum gate operation; |ψ> is the state of the superposition quantum system at the previous moment; MCX k (CtrlQubits, CtrlValues) is a multi-control Pauli X-gate, with CtrlQubits as the control bit. When the value of the control bit is CtrlValues, the Pauli X-gate is executed to flip the state of the target bit k; CtrlQubits is the control bit; δ i is the ith quantum bit with a difference; CtrlValues is the value triggered by the control bit; ψ i is the binary value of the i-th quantum bit in the current system; Arrange the index order to ensure that the conditions of the arbitrary state RY revolving door ASRY door are met and Where δ0 is the first bit that differs between quantum states S and T in binary representation. is the value of this difference in the quantum system ψ, is the value of this difference in the target quantum state T; The sequential step operation is represented as The source and target states differ only in qubit δ0; the adjoint operation then restores the altered state to its original position and magnitude. The adjoint operation of the MCX gate is itself, and the total operation of all the exchange difference steps is represented as U swap , the total operation of all rotation steps is represented as U rot , then the adjoint matrix operation is expressed as Where MCX i is a multi-control Pauli X-gate, which executes the Pauli X-gate to flip the state of the target bit i; MCX0 is a multi-control Pauli X-gate, which executes the Pauli X-gate to flip the state of the target bit 0; χ1(i>j) is an indicator function; U adjoint is the total operation of the adjoint matrix operation steps; |ψ> final is the final state of the quantum system; |ψ> init is the initial state of the quantum system; Through the combination of MCX gate and MCRY gate, the decomposition of arbitrary state RY revolving gate ASRY gate is realized.
6. The quantum computing method for protein structure prediction according to claim 5, characterized in that Step S5, in which the data information obtained in step S3 and step S4 is iteratively updated to optimize all residue coordinate information, specifically comprises the following steps: For all residues, iterative updates are performed: When ρ is the residue r i When performing iterative updates: residue r j The corresponding state is α j |j>,α j is the amplitude corresponding to state |j>, |j> is the jth sub-state of the quantum system; the line associated with ρ is set to |ψ>, and the following formula is used for conversion: Where MCRY(θ,CtrlQubits,CtrlValues) is the multi-control RY rotation gate; θ is the RY gate rotation parameter; Direct[i,j] is the normalized orientation between the ith residue and the jth residue; k[|ji|] is the scaling parameter for different relative distance jumps between the ith residue and the jth residue; binary(j) is the binary form of the natural number j; The transformation is performed with each interaction term as the control bit and the coordinate circuit as the entanglement circuit; By evaluating the expectation values of the three qubits representing the coordinate circuit on the Pauli Z, the coordinate values of the classical state are obtained; Finally, the prediction of the optimal protein structure is achieved by performing N-1 iterations for each residue.
7. The quantum computing method for protein structure prediction according to claim 6, characterized in that Step S6, according to the data information obtained in step S5, performs standardization processing to obtain the prediction result of the protein structure, specifically comprises the following steps: In the output stage, the normalized data is restored; Recover the coordinate data of the converted data; For the set extreme value data, eliminate some data with a high ranking and some data with a low ranking, calculate the mean to obtain the final relative direction, and convert it into the Cartesian coordinates of the spatial structure; In order to standardize the output of coordinates, all points are transformed by translation and rotation to ensure that the first three residues are located at (0,0,0), (0,0,z1) and (0,y2,z2) respectively, so as to complete the step-by-step alignment of the first three residues; the specific steps include the following: For the input three-dimensional Cartesian coordinate A, first translate so that point 0 is at the origin, denoted as A' i =A i -A0, i=0,1,...,n-1; A' i is the three-dimensional Cartesian coordinate of the i-th point after translation transformation, A i is the three-dimensional Cartesian coordinate of the i-th point before transformation, A0 is the coordinate of the 0-th point; Then rotate the structure so that point 1 is on the Z axis, creating the rotation matrix: Where R x (θ x ) is the rotation θ around the X axis x degree; θ x is the angle of rotation around the X axis; R z (θ z ) is the rotation θ around the Z axis z degree; θ z is the angle of rotation around the Z axis; (A' 1x ,A' 1y ,A' 1z ) is the coordinate of the first point of the structure A' after translation; R is the overall rotation matrix to achieve the predetermined rotation effect; Get the coordinate A after the secondary transformation" i =R·A' i ; Finally, perform a rotation transformation so that point 2 is located in the YOZ plane and establish the rotation matrix: Where R z (θ' z ) is the second rotation around the Z axis θ' z degree; θ' z is the second rotation angle around the Z axis; (A” 2x ,A” 2y ,A” 2z ) are the coordinates of the second point of structure A″ after the second rotation; Get the final coordinates A"' i =R z (θ' z )·A” i .
8. A system for implementing the quantum computing method for protein structure prediction according to any one of claims 1 to 7, characterized in that It includes a data acquisition module, a pre-processing module, a coordinate encoding module, an intensity encoding module, an iterative update module and a standard processing module; the data acquisition module, the pre-processing module, the coordinate encoding module, the intensity encoding module, the iterative update module and the standard processing module are connected in series in sequence; the data acquisition module is used to acquire the protein amino acid sequence to be processed, and upload the data information to the pre-processing module; the pre-processing module is used to generate coordinates and perform polar coordinate conversion for each residue in the acquired protein amino acid sequence according to the received data information, and calculate the interaction intensity parameter to complete the sequence pre-processing, and upload the data information to the coordinate encoding module; The coordinate encoding module is used to construct a continuous coordinate quantization encoder quantum circuit according to the received data information, and based on the obtained data information, realize the quantization encoding of the continuous spatial coordinates of the protein, and upload the data information to the intensity encoding module; The intensity coding module is used to construct an interaction intensity quantization encoder quantum circuit according to the received data information, and based on the obtained data information, realize the quantization coding of the interaction intensity between residues, and upload the data information to the iterative update module; The iterative update module is used to iteratively update the obtained data information according to the received data information to optimize the coordinate information of all residues, and upload the data information to the standard processing module; The standard processing module is used to perform standardization processing according to the received data information to obtain the prediction result of the protein structure.
Citation Information
Patent Citations
Protein structure classification system based on quantum convolutional neural network
CN115691669A
Protein three-dimensional structure prediction method and system
CN116453584A
Process for generation of protein and uses therof
US20090203532A1
Cited By
System and method for predicting protein structure based on RNA sequence of quantum computing
CN121838873A
A quantum computing-based system and method for predicting protein structure from RNA sequences.
CN121838873B