CN116090274A - Material deformation simulation method, device, terminal and medium based on quantum computation - Google Patents

Material deformation simulation method, device, terminal and medium based on quantum computation Download PDF

Info

Publication number
CN116090274A
CN116090274A CN202111274097.1A CN202111274097A CN116090274A CN 116090274 A CN116090274 A CN 116090274A CN 202111274097 A CN202111274097 A CN 202111274097A CN 116090274 A CN116090274 A CN 116090274A
Authority
CN
China
Prior art keywords
equation
linear
quantum
material deformation
linear equation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111274097.1A
Other languages
Chinese (zh)
Inventor
窦猛汉
李叶
朱阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Origin Quantum Computing Technology Co Ltd
Original Assignee
Origin Quantum Computing Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Origin Quantum Computing Technology Co Ltd filed Critical Origin Quantum Computing Technology Co Ltd
Priority to CN202111274097.1A priority Critical patent/CN116090274A/en
Publication of CN116090274A publication Critical patent/CN116090274A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • G06F30/23Design optimisation, verification or simulation using finite element methods [FEM] or finite difference methods [FDM]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/11Complex mathematical operations for solving equations, e.g. nonlinear equations, general mathematical optimization problems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/16Matrix or vector computation, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N10/00Quantum computing, i.e. information processing based on quantum-mechanical phenomena
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16CCOMPUTATIONAL CHEMISTRY; CHEMOINFORMATICS; COMPUTATIONAL MATERIALS SCIENCE
    • G16C60/00Computational materials science, i.e. ICT specially adapted for investigating the physical or chemical properties of materials or phenomena associated with their design, synthesis, processing, characterisation or utilisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2111/00Details relating to CAD techniques
    • G06F2111/10Numerical modelling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2119/00Details relating to the type or aim of the analysis or the optimisation
    • G06F2119/14Force analysis or force optimisation, e.g. static or dynamic forces
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T90/00Enabling technologies or technologies with a potential or indirect contribution to GHG emissions mitigation

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Mathematical Optimization (AREA)
  • Data Mining & Analysis (AREA)
  • Pure & Applied Mathematics (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Algebra (AREA)
  • Evolutionary Computation (AREA)
  • Databases & Information Systems (AREA)
  • Geometry (AREA)
  • Operations Research (AREA)
  • Computer Hardware Design (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Artificial Intelligence (AREA)
  • Condensed Matter Physics & Semiconductors (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a material deformation simulation method, a device, a terminal and a medium based on quantum computation, wherein the method comprises the following steps: acquiring a control equation for simulating material deformation; discretizing the control equation to obtain a discretization equation; linearizing the discretization equation to obtain a linear equation; and calculating the solution of the linear equation by using a VQLS variable component linear solver to realize material deformation simulation. By utilizing the embodiment of the invention, the advantage of parallel acceleration of quantum computation can be exerted, the application problem of the quantum computation in material deformation is solved, and the blank of the related technology is filled.

Description

Material deformation simulation method, device, terminal and medium based on quantum computation
Technical Field
The invention belongs to the technical field of quantum computing, and particularly relates to a material deformation simulation method, device, terminal and medium based on quantum computing.
Background
The quantum computer is a kind of physical device which performs high-speed mathematical and logical operation, stores and processes quantum information according to the law of quantum mechanics. When a device processes and calculates quantum information and operates on a quantum algorithm, the device is a quantum computer. Quantum computers are a key technology under investigation because of their ability to handle mathematical problems more efficiently than ordinary computers, for example, to accelerate the time to crack RSA keys from hundreds of years to hours.
Material deformation is an important process in modern industrial production, especially in automotive production. In the early stage of engineering application, the research on the deformation characteristics of materials is mainly based on an experimental method. However, due to complex geometries or high experimental costs, experimental methods are highly unsuitable. With the development of computers, it is possible to study material deformation and optimization design by using numerical simulation, which has an irreplaceable role in the current industrial pre-production process.
Currently, with the continuous development of quantum computing, more and more quantum algorithms are generated. However, in solving the problem of material deformation in production, the application of quantum computing in the aspect is lacking to fully exert the advantage of parallel acceleration of quantum computing, which is a problem to be solved.
Disclosure of Invention
The invention aims to provide a material deformation simulation method, device, terminal and medium based on quantum computation, which are used for solving the defects in the prior art, can exert the parallel acceleration advantage of the quantum computation, solve the application problem of the quantum computation in material deformation and fill the blank of the related technology.
One embodiment of the present application provides a material deformation simulation method based on quantum computation, the method comprising:
acquiring a control equation for simulating material deformation;
discretizing the control equation to obtain a discretization equation;
linearizing the discretization equation to obtain a linear equation;
and calculating the solution of the linear equation by using a VQLS variable component linear solver to realize material deformation simulation.
Optionally, the method further comprises:
after the linear equation is obtained, the matrix condition number of the linear equation is reduced.
Optionally, the method further comprises:
after the calculation of the solution of the linear equation, the solution of the linear equation is converted into classical data.
Optionally, the discretizing the control equation to obtain a discretized equation includes:
and discretizing the control equation by using an FEM finite element method to obtain a discretization equation.
Optionally, the linearizing the discretization equation to obtain a linear equation includes:
and carrying out linearization processing on the discretization equation by using an iteration method to obtain a linear equation.
Optionally, the calculating the solution of the linear equation using a VQLS variable component sub-linear solver includes:
constructing a Hamiltonian quantity corresponding to the linear equation;
the ground state of the Ha Midu quantity is solved as a solution to the linear equation.
Optionally, the solving the ground state of the hamiltonian amount as the solution of the linear equation includes:
and solving the ground state of the Hamiltonian amount by using an adiabatic algorithm to obtain a solution of the linear equation.
Yet another embodiment of the present application provides a material deformation simulation apparatus based on quantum computation, the apparatus comprising:
the acquisition module is used for acquiring a control equation for simulating material deformation;
the discretization module is used for discretizing the control equation to obtain a discretization equation;
the linearization module is used for linearizing the discretization equation to obtain a linear equation;
and the calculation module is used for calculating the solution of the linear equation by using a VQLS variable component sub-linear solver so as to realize material deformation simulation.
A further embodiment of the present application provides a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the method of any of the above when run.
Yet another embodiment of the present application provides an electronic device comprising a memory having a computer program stored therein and a processor configured to run the computer program to perform the method of any of the above.
Compared with the prior art, the material deformation simulation method based on quantum computation provided by the invention has the advantages that a control equation for simulating material deformation is obtained; discretizing the control equation to obtain a discretization equation; linearizing the discretization equation to obtain a linear equation; and calculating the solution of the linear equation by using a VQLS variable component linear solver, and realizing material deformation simulation, thereby exerting the parallel acceleration advantage of quantum calculation, solving the application problem of quantum calculation in material deformation and filling the blank of the related technology.
Drawings
Fig. 1 is a hardware structure block diagram of a computer terminal of a material deformation simulation method based on quantum computation according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a material deformation simulation method based on quantum computation according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a quantum circuit proposed by the efficient hardware according to the embodiment of the present invention;
FIG. 4 shows a measured delta according to an embodiment of the present invention j A quantum circuit schematic of the remainder of (2);
fig. 5 is a schematic structural diagram of a material deformation simulator based on quantum computation according to an embodiment of the present invention.
Detailed Description
The embodiments described below by referring to the drawings are illustrative only and are not to be construed as limiting the invention.
Material deformation is an important process in modern industrial production, especially in automotive production. In the early stage of engineering application, the research on the deformation characteristics of materials is mainly based on an experimental method. However, due to complex geometries or high experimental costs, experimental methods are highly unsuitable. With the development of computers, it is possible to study material deformation and optimization design by using numerical simulation, which has an irreplaceable role in the current industrial pre-production process.
The simulation of the material deformation is ultimately attributed to numerically solving the control equation for the material deformation. The main flow thought of classical numerical analysis is to discretize the control equation into algebraic equations, and finally solve the equations numerically and then return to guide production. However, in practical applications, complex geometric regions in 3-dimensional (3D) space are often faced. If the needs of the project are to be met, the number of grids or points is extremely high, whereas classical methods appear to be very time consuming. Although the computational speed can be increased by considering the simplification of the 3D model into a 2D solution, the accuracy of the prediction is lost.
Based on the above, the embodiment of the invention firstly provides a material deformation simulation method based on quantum computation, which can be applied to electronic equipment such as computer terminals, in particular to common computers, quantum computers and the like.
The following describes the operation of the computer terminal in detail by taking it as an example. Fig. 1 is a hardware structure block diagram of a computer terminal of a material deformation simulation method based on quantum computation according to an embodiment of the present invention. As shown in fig. 1, the computer terminal may include one or more (only one is shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA) and a memory 104 for storing data, and optionally, a transmission device 106 for communication functions and an input-output device 108. It will be appreciated by those skilled in the art that the configuration shown in fig. 1 is merely illustrative and is not intended to limit the configuration of the computer terminal described above. For example, the computer terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store software programs and modules of application software, such as program instructions/modules corresponding to the material deformation simulation method based on quantum computation in the embodiment of the present application, and the processor 102 executes the software programs and modules stored in the memory 104, thereby performing various functional applications and data processing, that is, implementing the method described above. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory remotely located relative to the processor 102, which may be connected to the computer terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission means 106 is arranged to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of a computer terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module for communicating with the internet wirelessly.
It should be noted that a real quantum computer is a hybrid structure, which includes two major parts: part of the computers are classical computers and are responsible for performing classical computation and control; the other part is quantum equipment, which is responsible for running quantum programs so as to realize quantum computation. The quantum program is a series of instruction sequences written by a quantum language such as the qlunes language and capable of running on a quantum computer, so that the support of quantum logic gate operation is realized, and finally, quantum computing is realized. Specifically, the quantum program is a series of instruction sequences for operating the quantum logic gate according to a certain time sequence.
In practical applications, quantum computing simulations are often required to verify quantum algorithms, quantum applications, etc., due to the development of quantum device hardware. Quantum computing simulation is a process of realizing simulated operation of a quantum program corresponding to a specific problem by means of a virtual architecture (namely a quantum virtual machine) built by resources of a common computer. In general, it is necessary to construct a quantum program corresponding to a specific problem. The quantum program, namely the program for representing the quantum bit and the evolution thereof written in the classical language, wherein the quantum bit, the quantum logic gate and the like related to quantum computation are all represented by corresponding classical codes.
Quantum circuits, which are one embodiment of quantum programs, also weigh sub-logic circuits, are the most commonly used general quantum computing models, representing circuits that operate on qubits under an abstract concept, the composition of which includes qubits, circuits (timelines), and various quantum logic gates, and finally the results often need to be read out by quantum measurement operations.
Unlike conventional circuits, which are connected by metal lines to carry voltage or current signals, in a quantum circuit, the circuit can be seen as being connected by time, i.e., the state of the qubit naturally evolves over time, as indicated by the hamiltonian operator, during which it is operated until a logic gate is encountered.
One quantum program is corresponding to one total quantum circuit, and the quantum program refers to the total quantum circuit, wherein the total number of quantum bits in the total quantum circuit is the same as the total number of quantum bits of the quantum program. It can be understood that: one quantum program may consist of a quantum circuit, a measurement operation for the quantum bits in the quantum circuit, a register to hold the measurement results, and a control flow node (jump instruction), and one quantum circuit may contain several tens to hundreds or even thousands of quantum logic gate operations. The execution process of the quantum program is a process of executing all quantum logic gates according to a certain time sequence. Note that the timing is the time sequence in which a single quantum logic gate is executed.
It should be noted that in classical computation, the most basic unit is a bit, and the most basic control mode is a logic gate, and the purpose of the control circuit can be achieved by a combination of logic gates. Similarly, the way in which the qubits are handled is a quantum logic gate. Quantum logic gates are used, which are the basis for forming quantum circuits, and include single-bit quantum logic gates, such as Hadamard gates (H gates, ada Ma Men), bery-X gates (X gates), bery-Y gates (Y gates), bery-Z gates (Z gates), RX gates, RY gates, RZ gates, and the like; two or more bit quantum logic gates, such as CNOT gates, CR gates, CZ gates, iSWAP gates, toffoli gates, and the like. Quantum logic gates are typically represented using unitary matrices, which are not only in matrix form, but also an operation and transformation. The effect of a general quantum logic gate on a quantum state is calculated by multiplying the unitary matrix by the matrix corresponding to the right vector of the quantum state.
Referring to fig. 2, fig. 2 is a schematic flow chart of a material deformation simulation method based on quantum computation according to an embodiment of the present invention, which may include the following steps:
s201, acquiring a control equation for simulating material deformation;
in particular, the simulation of material deformation is ultimately attributed to solving the control equation for material deformation. The control equation and the related equations used to solve the equation are described below.
Within a certain calculation domain Ω, the differential control equation (or stress equation) of the stress balance problem is:
Figure BDA0003328839700000061
wherein sigma represents stress, x represents different directions of material deformation, b represents volume force acting on the object material, and i and j represent dummy marks.
In solving partial differential equations, it is necessary to give boundary conditions that satisfy partial differential equations:
Figure BDA0003328839700000062
Figure BDA0003328839700000063
wherein u is i The displacement is indicated by the fact that,
Figure BDA0003328839700000064
representing the displacement at boundary 1 Γ 1 Represents boundary 1, n i Represents the normal direction of a surface somewhere in the material, +.>
Figure BDA0003328839700000065
Representing the shear stress at the boundary Γ 2 Representing boundary 2. The strain tensor is in the form of:
Figure BDA0003328839700000066
wherein ε ij Indicating strain.
Constitutive equations are determined by the physical properties of a material, and the stress and strain rates, or the functional relationship between the stress tensor and the strain tensor, are generally referred to as constitutive equations. The constitutive equation for the secondary elasticity is:
Figure BDA0003328839700000071
Figure BDA0003328839700000072
Figure BDA0003328839700000073
wherein S represents a nominal shear force, delta represents a Cronecker symbol, epsilon e Indicating effective deflection strain, v indicatingPoisson's ratio, k represents the principal stress direction index, offset strain
Figure BDA0003328839700000074
Figure BDA0003328839700000075
And:
Figure BDA0003328839700000076
wherein e=nσ 00 Stress-strain curve for uniaxial at ε e Slope at =0, σ e Is the elastic limit. The relationship of the power exponent is satisfied between the shear strain and the shear stress, wherein the power exponent is represented by n. Wherein sigma 00 Respectively represent the stress and strain of the material under pure shear stress, not 0 terms.
The set of equations constructed above can be used to solve the stress balance problem of any sub-elastic material in the field of material deformation.
S202, discretizing the control equation to obtain a discretization equation;
specifically, the control equation may be discretized by using a FEM (Finite Element Method) finite element method to obtain a discretized equation.
Illustratively, the control equation is converted to a weak form using the test function Φ:
Figure BDA0003328839700000077
Figure BDA0003328839700000078
wherein sigma ij (u k ) Representing the stress to which the object is subjected, the function Φ is a test function. For numerical solution, all variables within the computation domain Ω need to be discretized and the intra-object determination by interpolation between nodesA displacement field at any point. The displacement and test functions in the weak form of the control equation can be represented by a shape function N (x) by discretizing the computational domain into a finite number of cells:
Figure BDA0003328839700000081
wherein the function N is a shape function, and the test function can be given by using a Bubnov-Galerkin (Bubanov-Galerkin) method, and the strain displacement is expressed in the following discrete form by the shape function:
Figure BDA0003328839700000082
the simultaneous discretized stress and strain equations by which the stress can be expressed as a function of strain:
Figure BDA0003328839700000083
where a denotes a discrete point, k, l denotes meaning consistent with i, j, only for distinguishing i, j.
The final discretized equation set is:
Figure BDA0003328839700000084
Figure BDA0003328839700000085
s203, linearizing the discretization equation to obtain a linear equation;
specifically, the discretization equation may be linearized by using an iterative method to obtain a linear equation.
Illustratively, the discretized equation is a nonlinear algebraic equation set, which cannot be directly solved. Can be utilizedThe Newton-Raphson method solves this equation with the basic idea: for the solution of the equation, first a solution is given
Figure BDA0003328839700000086
Is +.>
Figure BDA0003328839700000087
To correct this predicted value, a correction value is introduced +.>
Figure BDA0003328839700000088
Namely: />
Figure BDA0003328839700000089
When (when)
Figure BDA00033288397000000810
Small enough, the nonlinear equation set is solved by iteration, and each iteration equation set can be converted into a linear equation set:
Figure BDA00033288397000000811
wherein:
Figure BDA00033288397000000812
Figure BDA0003328839700000091
Figure BDA0003328839700000092
s204, calculating a solution of the linear equation by using a VQLS variable component sub-linear solver, and realizing material deformation simulation.
Specifically, the hamiltonian amount corresponding to the linear equation may be constructed; the ground state of the Ha Midu quantity is solved as a solution to the linear equation.
For a linear system
Figure BDA0003328839700000093
Wherein A is an N x N dimensional hermitian,/a matrix>
Figure BDA0003328839700000094
Is an N-dimensional vector. In this section, a variable component sub-linear solver (Variational Quantum Linear Solver, VQLS) may be employed to solve the system of linear equations. />
The linear equation is rewritten as
Figure BDA0003328839700000095
In which A= [ K ] aibk ],/>
Figure BDA0003328839700000096
Figure BDA0003328839700000097
Figure BDA0003328839700000098
In the VQLS solving process, information of the linear equation may be input to the solver. One is a linear combination of S unitary matrices (unitary) decomposed from matrix a to facilitate encoding matrix a into quantum wires. Here, a may be expressed as:
Figure BDA0003328839700000099
wherein lambda is s Coefficients, ω, being linear combinations s Is a unitary matrix (unitary operator). The other input information of VQLS is represented by vector +.>
Figure BDA00033288397000000910
Encoding the resulting unitary matrix U, the unitary matrix U being used for preparing an AND vector +.>
Figure BDA00033288397000000911
Proportional quantum state |b>The method comprises the following steps: vector +.>
Figure BDA00033288397000000912
Normalized and encoded into a quantum wire in the form of |b>=U|0>. Solution of linear system>
Figure BDA00033288397000000913
Represented by a variable-factorized quantum state heuristic wave function>
Figure BDA00033288397000000914
May be constructed using variable interconnect lines such as HEA (Hardware Efficient Ansatz, high efficiency hardware interconnect), as shown in fig. 3. Wherein, the quantum logic gate combination comprising d layers of RY gates and CNOT gates, the variable parameter is expressed as rotation angle +.>
Figure BDA00033288397000000915
Is a vector of (a). Solution |x>Is Hamiltonian quantity H G Is the ground state of (2):
Figure BDA00033288397000000916
defining a Global loss function C G The method comprises the following steps:
Figure BDA00033288397000000917
wherein, the liquid crystal display device comprises a liquid crystal display device,
Figure BDA00033288397000000918
Figure BDA00033288397000000919
representing a series of U-gates.
Whereas for a large number of qubit cases, the global loss function has a large part of regional gradients equal to zero, like a Barren Plateau (BP). To improve the situation in a large number of qubitsWith the trainability, a local loss function can be introduced. First, a local Hamiltonian H is defined L The method comprises the following steps:
Figure BDA0003328839700000101
wherein 0 j >In the zero state of the qubit j,
Figure BDA0003328839700000102
is an identity matrix other than qubit j. The corresponding local loss function is defined as:
Figure BDA0003328839700000103
in a specific implementation, an adiabatic algorithm may be utilized to solve for the ground state of the hamiltonian.
Illustratively, a random one is initialized
Figure BDA0003328839700000104
Start and use->
Figure BDA0003328839700000105
Updating parameters, wherein β is the time step, +.>
Figure BDA0003328839700000106
About->
Figure BDA0003328839700000107
And C G Corresponding quantum wire measurements may be constructed. For C L The measurement is required:
Figure BDA0003328839700000108
/>
due to |0 j ><0 j |=(I j +Z j )/2,Z j Quantum logic gate Z gate represented on jth qubit. The above formula can be expressed as:
Figure BDA0003328839700000109
wherein, the liquid crystal display device comprises a liquid crystal display device,
Figure BDA00033288397000001010
already at C G Measurement of (1), except->
Figure BDA00033288397000001011
Outer delta j The remainder of (a) can be measured by the quantum wire shown in FIG. 4, and when the wire does not include (includes) the S gate,/can be calculated>
Figure BDA00033288397000001012
Real (imaginary) part of (a) a (b). When->
Figure BDA00033288397000001013
At this time, the local and global loss functions decrease with increasing virtual time (virtual time) until C L (C G ) When the value of the sum is =0,
Figure BDA00033288397000001014
i.e. the final solution of the linear system.
In order to improve the efficiency of finding the Hamiltonian amount, a Hamiltonian amount evolution method is proposed.
Illustratively, the hamiltonian as a function of time t is constructed using Hamiltonian Morphing (hamiltonian evolution):
Figure BDA00033288397000001015
wherein (1)>
Figure BDA00033288397000001016
Figure BDA00033288397000001017
Figure BDA00033288397000001018
t∈[0,1]X represents a quantum logic gate X gate.
In order to find the ground state of the hamiltonian at each moment, an adiabatic algorithm is used to construct the energy expectations of the hamiltonian:
Figure BDA0003328839700000111
in this process, the gradient descent method can be used to update parameters
Figure BDA0003328839700000112
Beta is the time step, < >>
Figure BDA0003328839700000113
By quantum circuit measurement, parameter->
Figure BDA0003328839700000114
Classical computer updates may be employed. The parameters when the hamiltonian ground state is found at each moment are +.>
Figure BDA0003328839700000115
As initial parameters at the next time, namely: for arbitrary matrix A (t i ) Coefficient t i Gradually increasing from 0 to 1, at each t i Find H (t) i ) Is the ground state of (2); parameter of the above moment->
Figure BDA0003328839700000116
For the initial position, find H (t i+1 ) Is a ground state of (c). And when t=1, the obtained hamiltonian ground state is the solution of the linear equation set.
In practical applications, after the linear equation is obtained, the number of matrix conditions of the linear equation can be reduced. Specifically, the time complexity of the variable component linear solver is related to the condition number of the matrix, and in order to increase the computation speed of VQLS, the condition number of the matrix a may be reduced by using a SPAI (Sparse Approximate Inverse, sparse approximation inverse) preprocessing method.
In practical application, the solution of the linear equation is calculatedThe solution of the linear equation is then converted into classical data. Specifically, in order to realize the conversion from quantum data to classical data, a tomograph algorithm may be used to extract the |x > of the quantum state into classical vector data
Figure BDA0003328839700000117
?>
Figure BDA0003328839700000118
Wherein the coefficient eta may be determined by
Figure BDA0003328839700000119
And (5) obtaining.
QRAM in tomography algorithms is a quantum storage device for quantum computers. QRAM can perform the conversion as follows:
∑α i |i>|0>→∑α i |i>|d i >
wherein i>=|i n-1 ,i n-2 ,…,i 2 ,i 1 ,i 0 >Representing an n-bit address register, data register |d i >Representing a classical data entry stored at address i, a i Is a complex amplitude. QRAM is compatible with classical computers, which read the data in QRAM without additional consumption. Quantum data can be conveniently post-processed to classical data using QRAM.
It can be seen that by obtaining a control equation for modeling material deformation; discretizing the control equation to obtain a discretization equation; linearizing the discretization equation to obtain a linear equation; and calculating the solution of the linear equation by using a VQLS variable component linear solver, and realizing material deformation simulation, thereby exerting the parallel acceleration advantage of quantum calculation, solving the application problem of quantum calculation in material deformation and filling the blank of the related technology.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a quantum circuit-based data size comparison device according to an embodiment of the present invention, corresponding to the flow shown in fig. 2, the device includes:
an acquisition module 501 for acquiring a control equation for modeling material deformation;
the discretization module 502 is configured to discretize the control equation to obtain a discretization equation;
a linearization module 503, configured to perform linearization processing on the discretization equation to obtain a linear equation;
and the calculating module 504 is used for calculating the solution of the linear equation by using the VQLS variable component sub-linear solver to realize material deformation simulation.
Specifically, the device further comprises:
and the reducing module is used for reducing the number of matrix conditions of the linear equation after the linear equation is obtained.
Specifically, the device further comprises:
and the conversion module is used for converting the solution of the linear equation into classical data after the solution of the linear equation is calculated.
Specifically, the discretization module is specifically configured to:
and discretizing the control equation by using an FEM finite element method to obtain a discretization equation.
Specifically, the linearization module is specifically configured to:
and carrying out linearization processing on the discretization equation by using an iteration method to obtain a linear equation.
Specifically, the computing module includes:
the construction unit is used for constructing the Hamiltonian quantity corresponding to the linear equation;
and the solving unit is used for solving the ground state of the Ha Midu quantity as a solution of the linear equation.
Specifically, the solving unit is specifically configured to:
and solving the ground state of the Hamiltonian amount by using an adiabatic algorithm to obtain a solution of the linear equation.
It can be seen that by obtaining a control equation for modeling material deformation; discretizing the control equation to obtain a discretization equation; linearizing the discretization equation to obtain a linear equation; and calculating the solution of the linear equation by using a VQLS variable component linear solver, and realizing material deformation simulation, thereby exerting the parallel acceleration advantage of quantum calculation, solving the application problem of quantum calculation in material deformation and filling the blank of the related technology.
The embodiment of the invention also provides a storage medium, in which a computer program is stored, wherein the computer program is configured to perform the steps of any of the method embodiments described above when run.
Specifically, in the present embodiment, the above-described storage medium may be configured to store a computer program for executing the steps of:
s1, acquiring a control equation for simulating material deformation;
s2, discretizing the control equation to obtain a discretization equation;
s3, linearizing the discretization equation to obtain a linear equation;
s4, calculating a solution of the linear equation by using a VQLS variable component sub-linear solver, and realizing material deformation simulation.
Specifically, in the present embodiment, the storage medium may include, but is not limited to: a usb disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing a computer program.
The present invention also provides an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
Specifically, the electronic apparatus may further include a transmission device and an input/output device, where the transmission device is connected to the processor, and the input/output device is connected to the processor.
Specifically, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s1, acquiring a control equation for simulating material deformation;
s2, discretizing the control equation to obtain a discretization equation;
s3, linearizing the discretization equation to obtain a linear equation;
s4, calculating a solution of the linear equation by using a VQLS variable component sub-linear solver, and realizing material deformation simulation.
While the foregoing is directed to embodiments of the present invention, other and further embodiments of the invention may be devised without departing from the basic scope thereof, and the scope thereof is determined by the claims that follow.

Claims (10)

1. A method for modeling deformation of a material based on quantum computation, the method comprising:
acquiring a control equation for simulating material deformation;
discretizing the control equation to obtain a discretization equation;
linearizing the discretization equation to obtain a linear equation;
and calculating the solution of the linear equation by using a VQLS variable component linear solver to realize material deformation simulation.
2. The method according to claim 1, wherein the method further comprises:
after the linear equation is obtained, the matrix condition number of the linear equation is reduced.
3. The method according to claim 1, wherein the method further comprises:
after the calculation of the solution of the linear equation, the solution of the linear equation is converted into classical data.
4. The method of claim 1, wherein discretizing the control equation results in a discretized equation comprising:
and discretizing the control equation by using an FEM finite element method to obtain a discretization equation.
5. The method of claim 1, wherein linearizing the discretized equation to obtain a linear equation comprises:
and carrying out linearization processing on the discretization equation by using an iteration method to obtain a linear equation.
6. The method of claim 1, wherein calculating the solution of the linear equation using a VQLS variable component sub-linear solver comprises:
constructing a Hamiltonian quantity corresponding to the linear equation;
the ground state of the Ha Midu quantity is solved as a solution to the linear equation.
7. The method of claim 6, wherein said solving the ground state of the hamiltonian amount as a solution of the linear equation comprises:
and solving the ground state of the Hamiltonian amount by using an adiabatic algorithm to obtain a solution of the linear equation.
8. A material deformation simulation device based on quantum computing, the device comprising:
the acquisition module is used for acquiring a control equation for simulating material deformation;
the discretization module is used for discretizing the control equation to obtain a discretization equation;
the linearization module is used for linearizing the discretization equation to obtain a linear equation;
and the calculation module is used for calculating the solution of the linear equation by using a VQLS variable component sub-linear solver so as to realize material deformation simulation.
9. A computer terminal comprising a machine-readable storage medium having stored therein a computer program and a processor arranged to run the computer program to perform the method of any of claims 1-7.
10. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program which, when executed by a computer, implements the method of any of claims 1-7.
CN202111274097.1A 2021-10-29 2021-10-29 Material deformation simulation method, device, terminal and medium based on quantum computation Pending CN116090274A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111274097.1A CN116090274A (en) 2021-10-29 2021-10-29 Material deformation simulation method, device, terminal and medium based on quantum computation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111274097.1A CN116090274A (en) 2021-10-29 2021-10-29 Material deformation simulation method, device, terminal and medium based on quantum computation

Publications (1)

Publication Number Publication Date
CN116090274A true CN116090274A (en) 2023-05-09

Family

ID=86185455

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111274097.1A Pending CN116090274A (en) 2021-10-29 2021-10-29 Material deformation simulation method, device, terminal and medium based on quantum computation

Country Status (1)

Country Link
CN (1) CN116090274A (en)

Similar Documents

Publication Publication Date Title
CN107563067A (en) Analysis of structural reliability method based on Adaptive proxy model
CN108154240A (en) A kind of quantum wire simulation system of low complex degree
Li et al. An adaptive SVD–Krylov reduced order model for surrogate based structural shape optimization through isogeometric boundary element method
CN105825269B (en) A kind of feature learning method and system based on parallel automatic coding machine
CN105955031A (en) Non-linear-model-predictive-control FPGA hardware acceleration controller and acceleration realization method
CN107133190A (en) The training method and training system of a kind of machine learning system
CN114219076B (en) Quantum neural network training method and device, electronic equipment and medium
Caicedo et al. High performance reduced order modeling techniques based on optimal energy quadrature: application to geometrically non-linear multiscale inelastic material modeling
Li et al. Non-intrusive coupling of a 3-D Generalized Finite Element Method and Abaqus for the multiscale analysis of localized defects and structural features
Cavaliere et al. Efficient two–scale simulations of engineering structures using the Hashin–Shtrikman type finite element method
Xiang et al. Real-time stress-based topology optimization via deep learning
CN110110406A (en) A kind of Predicting Slope Stability method for realizing LS-SVM model based on Excel computing platform
CN115809705A (en) Fluid dynamics computing system based on quantum computing and quantum computer
CN114511094B (en) Quantum algorithm optimization method and device, storage medium and electronic device
CN116090274A (en) Material deformation simulation method, device, terminal and medium based on quantum computation
CN114519429B (en) Method, device and medium for obtaining observability quantity of target system
CN114512194B (en) Method and device for acquiring target system test state in quantum chemistry simulation
CN116090272A (en) Application method, device, terminal and medium of quantum computation in material deformation
Yu et al. GPU-based JFNG method for power system transient dynamic simulation
CN114512195B (en) Calculation method, device and medium based on molecular dynamics simulation system property
CN116090273A (en) Quantum simulation method, device, terminal and storage medium for material deformation
CN116976448A (en) Method and device for solving linear equation set by utilizing variable component sub-circuit
CN118014090A (en) Line parameter updating method and related device for variable component sub-line
CN117436370B (en) Super-definite matrix equation parallel method and system for hydrodynamic grid generation
CN114764620B (en) Quantum convolution operator

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 230088 6th floor, E2 building, phase II, innovation industrial park, 2800 innovation Avenue, Hefei high tech Zone, Hefei City, Anhui Province

Applicant after: Benyuan Quantum Computing Technology (Hefei) Co.,Ltd.

Address before: 230088 6th floor, E2 building, phase II, innovation industrial park, 2800 innovation Avenue, Hefei high tech Zone, Hefei City, Anhui Province

Applicant before: ORIGIN QUANTUM COMPUTING COMPANY, LIMITED, HEFEI