CN115358407A - Approximate quantum compiling method and system based on tensor network and electronic equipment - Google Patents

Approximate quantum compiling method and system based on tensor network and electronic equipment Download PDF

Info

Publication number
CN115358407A
CN115358407A CN202210980282.0A CN202210980282A CN115358407A CN 115358407 A CN115358407 A CN 115358407A CN 202210980282 A CN202210980282 A CN 202210980282A CN 115358407 A CN115358407 A CN 115358407A
Authority
CN
China
Prior art keywords
quantum
sub
line
module
new
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.)
Granted
Application number
CN202210980282.0A
Other languages
Chinese (zh)
Other versions
CN115358407B (en
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.)
Beijing Zhongke Arc Quantum Software Technology Co ltd
Original Assignee
Beijing Zhongke Arc Quantum Software 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 Beijing Zhongke Arc Quantum Software Technology Co ltd filed Critical Beijing Zhongke Arc Quantum Software Technology Co ltd
Priority to CN202210980282.0A priority Critical patent/CN115358407B/en
Publication of CN115358407A publication Critical patent/CN115358407A/en
Application granted granted Critical
Publication of CN115358407B publication Critical patent/CN115358407B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N10/00Quantum computing, i.e. information processing based on quantum-mechanical phenomena
    • G06N10/80Quantum programming, e.g. interfaces, languages or software-development kits for creating or handling programs capable of running on quantum computers; Platforms for simulating or accessing quantum computers, e.g. cloud-based quantum computing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N10/00Quantum computing, i.e. information processing based on quantum-mechanical phenomena
    • G06N10/40Physical realisations or architectures of quantum processors or components for manipulating qubits, e.g. qubit coupling or qubit control
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N10/00Quantum computing, i.e. information processing based on quantum-mechanical phenomena
    • G06N10/60Quantum algorithms, e.g. based on quantum optimisation, quantum Fourier or Hadamard transforms
    • 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
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Mathematical Analysis (AREA)
  • Evolutionary Computation (AREA)
  • Data Mining & Analysis (AREA)
  • Condensed Matter Physics & Semiconductors (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Computational Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • Logic Circuits (AREA)

Abstract

The invention relates to the technical field of quantum compilation, in particular to an approximate quantum compilation method, an approximate quantum compilation system and electronic equipment based on a tensor network, wherein the method comprises the following steps: dividing the quantum circuit to be compiled into a plurality of sub-circuits, wherein the quantum bit of each sub-circuit is not more than the maximum value of the number of preset quantum bits; on the basis of a tensor network theory, compiling each sub-line into a new sub-line only containing basic quantum operation, and enabling any sub-line to be approximately equivalent to the new sub-line corresponding to the sub-line; and combining all the new sub-circuits to obtain a new quantum circuit, and determining the new quantum circuit as a final compiling result. By utilizing the cutting characteristic of tensor, in line division, compared with a scheme expressed by a traditional unitary matrix, fewer sub-lines can be generated, and the number of quantum operations contained in each sub-line is more than that of the scheme expressed by the traditional unitary matrix, so that the coding effect is improved.

Description

Approximate quantum compiling method and system based on tensor network and electronic equipment
Technical Field
The invention relates to the technical field of quantum compiling, in particular to a tensor network-based approximate quantum compiling method, a tensor network-based approximate quantum compiling system and electronic equipment.
Background
A quantum circuit is a common representation of a quantum process, which is composed of quantum bits and a series of quantum operations, and unitary matrices are a basic description of quantum operations in quantum computing, and similarly, a quantum circuit can be described by all unitary matrices that contain the corresponding quantum operations. However, a quantum computer can only perform a specific basic operation, and therefore, before executing a quantum wire in the quantum computer, it is necessary to decompose all general quantum operations in the wire into a series of basic operations, and the quantum wires before and after decomposition are required to be approximately equal in function (i.e. the unitary matrix descriptions of the quantum wires before and after decomposition are approximately equal), which is called approximate quantum coding in this patent.
The performance of a quantum compiler can be measured by the number of basic operations of the quantum wire it outputs, and the smaller the number of basic operations, the better the performance of the quantum compiler. The conventional quantum coding scheme based on unitary matrix description can only process quantum wires containing very small number of quantum bits (usually not more than 4), so when coding a quantum wire containing more quantum bits, the input quantum wire needs to be cut into a plurality of sub-quantum wires containing only very few quantum bits, then each sub-quantum wire needs to be separately coded, and finally, the plurality of coded quantum wires are recombined into a new quantum wire to be output. The above process requires separate compilation of multiple sub-lines, and the performance of the compiler decreases as the number of sub-quantum lines compiled and the number of quantum operations contained in each sub-line increases.
Disclosure of Invention
The invention provides an approximate quantum compiling method, system and electronic equipment based on a tensor network, aiming at the defects of the prior art.
The invention discloses an approximate quantum compiling method based on a tensor network, which has the technical scheme as follows:
dividing the quantum circuit to be compiled into a plurality of sub-circuits, wherein the quantum bit of each sub-circuit is not more than the maximum value of the number of preset quantum bits;
on the basis of a tensor network theory, compiling each sub-line into a new sub-line only containing basic quantum operation, and enabling any sub-line to be approximately equivalent to the new sub-line corresponding to the sub-line;
and combining all the new sub-lines to obtain a new quantum line, and determining the new quantum line as a final compiling result.
The approximate quantum compiling method based on the tensor network has the following beneficial effects:
the quantum operations are expressed by tensor based on a tensor network theory, and by using the cutting characteristic of the tensor, fewer sub-lines can be generated in line division compared with a scheme expressed by a conventional unitary matrix, the number of the quantum operations contained in each sub-line is more than that of the quantum operations expressed by the conventional unitary matrix, and the compiling effect is improved.
The invention discloses an approximate quantum compiling system based on a tensor network, which has the technical scheme as follows:
the device comprises a segmentation module, a compiling module and a combination determining module;
the segmentation module is configured to: dividing the quantum circuit to be compiled into a plurality of sub-circuits, wherein the quantum bit of each sub-circuit is not more than the maximum value of the number of preset quantum bits;
the compiling module is configured to: on the basis of a tensor network theory, compiling each sub-line into a new sub-line only comprising basic quantum operation respectively, and enabling any sub-line to be approximately equivalent to the new sub-line corresponding to the sub-line;
the combination determination module is to: and combining all the new sub-circuits to obtain a new quantum circuit, and determining the new quantum circuit as a final compiling result.
The approximate quantum compiling system based on the tensor network has the following beneficial effects:
based on the tensor network theory, quantum operations are expressed by tensor, and by using the cutting characteristic of the tensor, fewer sub-lines can be generated in line division compared with a scheme expressed by a traditional unitary matrix, the number of quantum operations contained in each sub-line is more than that of the scheme expressed by the traditional unitary matrix, and therefore the coding effect is improved.
A storage medium of the present invention stores instructions, and when the instructions are read by a computer, the instructions cause the computer to execute any one of the tensor network-based approximate quantum compiling methods described above.
An electronic device of the present invention includes a processor and the storage medium, where the processor executes instructions in the storage medium.
Drawings
Fig. 1 is a schematic flowchart of an approximate quantum compiling method based on a tensor network according to an embodiment of the present invention;
FIG. 2 is a drawing
Figure 56783DEST_PATH_IMAGE001
Quantum operation on a qubit
Figure 557034DEST_PATH_IMAGE002
A graph under tensor;
FIG. 3 is a schematic representation of CNOT;
FIG. 4 is a diagram of a qubit
Figure 243231DEST_PATH_IMAGE003
Performing quantum operations
Figure 512538DEST_PATH_IMAGE004
For the qubit
Figure 688304DEST_PATH_IMAGE005
A schematic diagram of performing a CNOT quantum operation;
FIG. 5 is a diagram of an application to qubits
Figure 613535DEST_PATH_IMAGE006
Schematic representation of CNOT quantum manipulation on after cleavage;
FIG. 6 is a schematic diagram of the merging of two tensors into a new tensor;
FIG. 7 is a drawing showing
Figure 900160DEST_PATH_IMAGE007
One of the schematic diagrams of (a);
FIG. 8 is one of the schematic diagrams of qubit sets for two quantum manipulation roles;
FIG. 9 is a schematic view of
Figure 227236DEST_PATH_IMAGE008
A second schematic diagram of (a);
FIG. 10 is a second schematic diagram of a qubit set for two quantum operations;
FIG. 11 is a schematic view of
Figure 308324DEST_PATH_IMAGE009
The third schematic diagram of (a);
FIG. 12 is a schematic diagram of quantum wires and their tensors;
FIG. 13 is a pair tensor
Figure 783168DEST_PATH_IMAGE010
Schematic representation after shrinking;
FIG. 14 is a drawing showing
Figure 811167DEST_PATH_IMAGE011
A schematic diagram of (a);
fig. 15 is a schematic structural diagram of an approximate quantum compiler system based on a tensor network according to an embodiment of the present invention.
Detailed Description
As shown in fig. 1, an approximate quantum compiling method based on a tensor network according to an embodiment of the present invention includes the following steps:
s1, dividing a quantum circuit to be compiled into a plurality of sub-circuits, wherein the quantum bit of each sub-circuit is not more than the maximum value of the number of preset quantum bits;
s2, compiling each sub-line into a new sub-line only containing basic quantum operation based on a tensor network theory, and enabling any sub-line to be approximately equivalent to the new sub-line corresponding to the sub-line;
and S3, combining all the new sub-circuits to obtain a new quantum circuit, and determining the new quantum circuit as a final compiling result.
The specific pseudo code is as follows:
inputting: a quantum wire to be compiled
Figure 55067DEST_PATH_IMAGE012
Medicine for treating diabetesDegree of rotation
Figure 510319DEST_PATH_IMAGE013
Maximum number of qubits in sub-line
Figure 206879DEST_PATH_IMAGE014
And (3) outputting: compiled quantum wires
Figure 772990DEST_PATH_IMAGE015
1.
Figure 136975DEST_PATH_IMAGE016
2. If it is used
Figure 825445DEST_PATH_IMAGE017
Then go to step 6, otherwise then
Figure 946985DEST_PATH_IMAGE018
Taking out the first operation;
3. if it is used
Figure 379103DEST_PATH_IMAGE019
There is a CNOT quantum operation that is cleaved,
Figure 535278DEST_PATH_IMAGE020
entering step 5;
4. call the conventional approximate compiler (prior art) to get
Figure 394650DEST_PATH_IMAGE021
5. Will be provided with
Figure 3486DEST_PATH_IMAGE022
Entering the step 2;
6.
Figure 973716DEST_PATH_IMAGE023
merging of all lines in, returning
Figure 46714DEST_PATH_IMAGE024
Based on the tensor network theory, quantum operations are expressed by tensor, and by using the cutting characteristic of the tensor, fewer sub-lines can be generated in line division compared with a scheme expressed by a traditional unitary matrix, the number of quantum operations contained in each sub-line is more than that of the scheme expressed by the traditional unitary matrix, and therefore the coding effect is improved.
Wherein, the step of dividing the quantum circuit to be compiled into a plurality of sub-circuits comprises the following steps:
s10, initializing a plurality of sub-lines to be constructed, and constructing a mapping relation from quantum bits in the quantum lines to be compiled to the sub-lines to be constructed, wherein each quantum bit in the quantum lines to be compiled corresponds to one sub-line to be constructed;
s11, sequentially extracting the quantum operations in the quantum circuit to be compiled according to the execution sequence of the quantum operations in the quantum circuit to be compiled;
s12, determining the sub-circuit to be constructed corresponding to the quantum operation extracted in the S11 from all the sub-circuits to be constructed according to the mapping relation;
s13, updating the sub-circuit to be constructed corresponding to the quantum operation extracted in the S11 according to the quantum operation of the sub-circuit to be constructed corresponding to the quantum operation extracted in the S11 and the preset maximum value of the number of quantum bits, wherein the specific updating modes are two, specifically:
1) The first updating mode is as follows: adding quantum operation to the sub-line to be constructed corresponding to the quantum operation extracted in the S11;
2) The second updating method is as follows: and after the first updating mode is executed, cutting the added quantum operation.
S14, judging whether any sub-line to be constructed is constructed or not, if yes, determining the sub-line to be constructed as the sub-line, and generating a new sub-line to be constructed;
and S15, updating the mapping relation, returning to execute the S11 until all quantum operations in the quantum circuit to be compiled are extracted, completing the segmentation of the quantum circuit to be compiled, and obtaining a plurality of sub-circuits. Namely, the mapping relation is updated, and the step returns to execute S11 until all the quantum operations in the quantum line to be compiled are extracted, namely, after all the quantum operations in the quantum line to be compiled are extracted, a plurality of sub-lines are obtained, and the quantum line to be compiled is segmented. The specific pseudo code is as follows:
inputting: quantum wire
Figure 14670DEST_PATH_IMAGE025
Maximum number of qubits in sub-line
Figure 173119DEST_PATH_IMAGE026
. Presetting maximum value of quantum bit number as
Figure 884723DEST_PATH_IMAGE027
And (3) outputting: quantum wire sequence
Figure 812228DEST_PATH_IMAGE028
1. There is a sequence of quantum operations that constitute,
Figure 13402DEST_PATH_IMAGE029
the number of qubits in (a) is,
Figure 596830DEST_PATH_IMAGE030
2.
Figure 174442DEST_PATH_IMAGE031
indicating an empty line;
3. if it is used
Figure 894136DEST_PATH_IMAGE032
Then step 16 is entered, otherwise
Figure 266212DEST_PATH_IMAGE033
Taking out the first operation;
4.
Figure 336936DEST_PATH_IMAGE034
a set of quantum bits of interest;
5.
Figure 452659DEST_PATH_IMAGE035
to middle
Figure 292439DEST_PATH_IMAGE036
Quantum circuit is absent
Figure 835416DEST_PATH_IMAGE037
Then add it into
Figure 455753DEST_PATH_IMAGE038
6. If it is used
Figure 47272DEST_PATH_IMAGE039
Entering step 8;
7. to
Figure 803875DEST_PATH_IMAGE040
Quantum wire incorporation in
Figure 721016DEST_PATH_IMAGE041
Entering step 3;
8. if it is not
Figure 563070DEST_PATH_IMAGE042
Number of qubits contained in all lines
Figure 958279DEST_PATH_IMAGE043
And wherein the number of CNOT operations that were cut
Figure 834968DEST_PATH_IMAGE044
If yes, entering step 9, otherwise entering step 11;
9.
Figure 657431DEST_PATH_IMAGE045
merging all lines in the system;
10.
Figure 986781DEST_PATH_IMAGE046
to middle
Figure 247998DEST_PATH_IMAGE047
Quantum circuit replacement
Figure 916876DEST_PATH_IMAGE048
Entering step 3;
11. if it is not
Figure 972557DEST_PATH_IMAGE049
Is a CNOT operation, and
Figure 726887DEST_PATH_IMAGE050
if the CNOT operation in all the lines is not cut, the step 12 is executed, otherwise, the step 13 is executed;
12. the CNOT operation is cut under tensor, and COPY and XOR tensors obtained by cutting are respectively added into the CNOT operation
Figure 526215DEST_PATH_IMAGE051
Step 3 is entered;
13. will be provided with
Figure 49601DEST_PATH_IMAGE052
All lines in (1) are added
Figure 541762DEST_PATH_IMAGE053
14.
Figure 845704DEST_PATH_IMAGE054
Involving quantum operations only
Figure 120828DEST_PATH_IMAGE055
A quantum wire of (a);
15.
Figure 826616DEST_PATH_IMAGE056
to middle
Figure 161782DEST_PATH_IMAGE057
Quantum circuit replacement
Figure 953020DEST_PATH_IMAGE058
Entering step 3;
16.
Figure 31835DEST_PATH_IMAGE059
if it is determined that
Figure 592129DEST_PATH_IMAGE060
Is out of position
Figure 426093DEST_PATH_IMAGE061
In (1), then add it into
Figure 376731DEST_PATH_IMAGE062
17. Return to
Figure 321554DEST_PATH_IMAGE063
In the pseudo code, step 1 and step 2 correspond to S10, step 3 corresponds to S11, step 4 and step 5 correspond to S12, step 6 to step 12 correspond to S13, and step 13 to step 17 correspond to S14 and S15.
Wherein the quantum wire to be compiled
Figure 674038DEST_PATH_IMAGE064
As quantum wires
Figure 678903DEST_PATH_IMAGE065
The pseudo code is executed to divide the quantum circuit to be compiled into a plurality of sub-circuits.
Based on the tensor network theory, compiling each sub-line into a new sub-line only including basic quantum operation respectively, including:
S20-S22 are executed on each sub-line until each sub-line is compiled into a new sub-line only containing basic quantum operation;
s20, initializing any sub-line, and opening the initialized sub-line to obtain a state;
and S21, judging whether the sub-line contained in the state obtained in the S20 meets the output condition, if so, outputting the sub-line corresponding to the state as a new sub-line corresponding to the sub-line, otherwise, executing S22, wherein in the technical field of quantum compilation, the new sub-line after compilation only comprises basic quantum operations.
S22, performing an expansion operation on the state obtained in S20 to obtain a plurality of new states, selecting one state from all the new states, taking the selected state as the state obtained in S20, and repeating S21.
The specific pseudo codes corresponding to S20-S22 are as follows:
inputting: target quantum lines to be compiled
Figure 116837DEST_PATH_IMAGE066
Target accuracy
Figure 599771DEST_PATH_IMAGE067
And (3) outputting: one comprising only fundamental quantum operations and
Figure 72341DEST_PATH_IMAGE068
tensor quantum wire
Figure 248107DEST_PATH_IMAGE069
And the parameter values thereof
Figure 235655DEST_PATH_IMAGE070
So that
Figure 459963DEST_PATH_IMAGE071
Is composed of
Figure 583777DEST_PATH_IMAGE072
The decomposition is approximated.
1.
Figure 868127DEST_PATH_IMAGE073
The number of qubits in (a) is,
Figure 342971DEST_PATH_IMAGE074
in which there are cut qubits present in the qubit,
Figure 370970DEST_PATH_IMAGE075
the tensor obtained by the middle cutting;
2.
Figure 614870DEST_PATH_IMAGE076
a null sub-line;
3. to the direction of
Figure 866859DEST_PATH_IMAGE077
In (1) adding
Figure 766682DEST_PATH_IMAGE078
A U3 quantum operation respectively acting on the qubits
Figure 395110DEST_PATH_IMAGE079
The above step (1);
4. to
Figure 696778DEST_PATH_IMAGE080
In the qubit
Figure 119669DEST_PATH_IMAGE081
Tensor of (3)
Figure 506788DEST_PATH_IMAGE082
Adding a further effect on the qubit
Figure 938906DEST_PATH_IMAGE083
U3 quantum operations on;
5.
Figure 829502DEST_PATH_IMAGE084
6. if it is used
Figure 712311DEST_PATH_IMAGE085
Then return to
Figure 383464DEST_PATH_IMAGE086
And the parameter values thereof
Figure 556956DEST_PATH_IMAGE087
7.
Figure 629955DEST_PATH_IMAGE088
Entering step 6;
wherein, the steps 1 to 5 correspond to S20, the step 6 corresponds to S21, the step 7 corresponds to S22, and each sub-line is taken as a target quantum sub-line to be compiled
Figure 597911DEST_PATH_IMAGE089
And executing the pseudo code, and compiling each sub-line into a new sub-line only containing basic quantum operations.
Compiling each sub-line into pseudo code of a new sub-line containing only basic quantum operations, wherein the pseudo code of the state Open (Open) is as follows:
inputting: a quantum wire
Figure 756359DEST_PATH_IMAGE090
Father state
Figure 467963DEST_PATH_IMAGE091
Tensor of object
Figure 395468DEST_PATH_IMAGE092
And (3) outputting: one state in the search space
Figure 596642DEST_PATH_IMAGE093
1.
Figure 180070DEST_PATH_IMAGE094
2.
Figure 492103DEST_PATH_IMAGE095
3.
Figure 477377DEST_PATH_IMAGE096
Return to
Figure 849452DEST_PATH_IMAGE097
The pseudo code for the expansion of state (Expand) is:
inputting: a state of waiting to be unfolded
Figure 982493DEST_PATH_IMAGE098
Tensor of object
Figure 98217DEST_PATH_IMAGE099
Number of qubits
Figure 937997DEST_PATH_IMAGE100
And (3) outputting: newly opened state set
Figure 480974DEST_PATH_IMAGE101
1.
Figure 835732DEST_PATH_IMAGE102
2.
Figure 692829DEST_PATH_IMAGE103
3. If it is used
Figure 449433DEST_PATH_IMAGE104
Then return to
Figure 100994DEST_PATH_IMAGE105
4.
Figure 208627DEST_PATH_IMAGE106
If, if
Figure 666153DEST_PATH_IMAGE107
Entering step 2;
5.
Figure 214946DEST_PATH_IMAGE108
in the direction of
Figure 365305DEST_PATH_IMAGE109
End-of-line effects on qubits
Figure 632338DEST_PATH_IMAGE110
On CNOT operation, then to
Figure 893555DEST_PATH_IMAGE111
End-of-line effects on qubits
Figure 296855DEST_PATH_IMAGE112
Two U3 operations above;
6.
Figure 618115DEST_PATH_IMAGE113
7.
Figure 372444DEST_PATH_IMAGE114
in the direction of
Figure 171773DEST_PATH_IMAGE115
The introduction of the start of the quantum bit
Figure 757475DEST_PATH_IMAGE116
CNOT operations on, and then to
Figure 187319DEST_PATH_IMAGE117
The introduction of the start of the quantum bit
Figure 225682DEST_PATH_IMAGE118
Two U3 operations above;
8.
Figure 766385DEST_PATH_IMAGE119
9.
Figure 472173DEST_PATH_IMAGE120
proceed to step 4.
The search space is:
for a quantum wire under a tensor expression, the approximate compiling process can be regarded as a search process of a search space, and one state of the search space
Figure 807339DEST_PATH_IMAGE121
The stored information includes: an intermediate quantum wire
Figure 598578DEST_PATH_IMAGE122
Figure 739709DEST_PATH_IMAGE123
Parameter sets for sub-operations with parameters) and specific values of their parameters
Figure 237687DEST_PATH_IMAGE124
Evaluation value of the state
Figure 806071DEST_PATH_IMAGE125
Parent status of this status
Figure 22289DEST_PATH_IMAGE126
. Status of state
Figure 967111DEST_PATH_IMAGE127
Can also be written as
Figure 319595DEST_PATH_IMAGE128
. In addition, multiple states may be combined
Figure 324460DEST_PATH_IMAGE129
Make upSet of (A) is denoted as
Figure 824712DEST_PATH_IMAGE130
Technical terms of the present invention are explained as follows:
1) Quantum bit:
qubits are the fundamental unit of quantum computer storage of data. Quantum operations implement specific functions by corresponding control of qubits. In this patent, symbols are used
Figure 245329DEST_PATH_IMAGE131
Representing the collection of all qubits in a quantum computer,
Figure 780215DEST_PATH_IMAGE132
representing the second in quantum computers
Figure 628085DEST_PATH_IMAGE133
The number of sub-bits is such that,
Figure 615633DEST_PATH_IMAGE134
representing the number of quantum bits in a quantum computer.
2) Unitary matrix representation of quantum manipulation:
quantum manipulation (by symbols)
Figure 839941DEST_PATH_IMAGE135
Representation) represents a specific operation that a quantum computer can perform, which contains two pieces of information: qubits of effect and specific functions. Unitary matrix (in symbols)
Figure 229334DEST_PATH_IMAGE136
Representation) is one of the most common expressions of quantum manipulation. In general, one acts on
Figure 576002DEST_PATH_IMAGE137
Quantum operation on qubits
Figure 988529DEST_PATH_IMAGE138
Can be expressed as a size of
Figure 813265DEST_PATH_IMAGE139
Of a two-dimensional matrix
Figure 994848DEST_PATH_IMAGE140
And satisfy
Figure 512417DEST_PATH_IMAGE141
In which
Figure 412240DEST_PATH_IMAGE142
Representing a unit array.
A control not gate (CNOT gate) is a common two-qubit operation whose unitary matrix is represented as:
Figure 40667DEST_PATH_IMAGE143
in addition, an arbitrary single qubit quantum operation can be performed with U3 with parameters (note the notation of U with unitary matrix here
Figure 139073DEST_PATH_IMAGE144
Irrelevant) quantum operations. A unitary matrix of U3 quantum operations is represented as:
Figure 765226DEST_PATH_IMAGE145
wherein
Figure 214662DEST_PATH_IMAGE146
Three undetermined parameters which can be arbitrarily valued are adopted, and one U3 quantum operation can be converted into any single-quantum bit quantum operation through specific values.
3) Quantum operations and their tensor representations:
by default, the specific function of quantum manipulation may be represented by a unitary matrix. The scheme innovatively expresses the specific function of one quantum operation by tensor. Tensor (with sign)
Figure 318885DEST_PATH_IMAGE147
Representation) is a high-dimensional matrix for a role in
Figure 537376DEST_PATH_IMAGE148
Quantum operation on qubits
Figure 334431DEST_PATH_IMAGE149
In other words, its tensor (denoted as
Figure 5584DEST_PATH_IMAGE150
) The representation can be seen as one dimension (also called degree in tensor) as
Figure 241393DEST_PATH_IMAGE151
The degree of freedom in each dimension of the high-dimensional matrix of (2), therefore,
Figure 252074DEST_PATH_IMAGE152
the size of the high-dimensional matrix corresponding to the tensor of the quantum operation of the qubit is
Figure 282347DEST_PATH_IMAGE153
. In addition, tensor
Figure 440796DEST_PATH_IMAGE154
Degree of (can also be recorded as
Figure 886821DEST_PATH_IMAGE155
. The unitary matrix representation and the tensor representation of a quantum operation can be transformed into each other, and the transformation process is the prior art.
In general, one is in
Figure 79905DEST_PATH_IMAGE156
Quantum operation on qubits
Figure 218762DEST_PATH_IMAGE157
Graph under tensor, as shown in FIG. 2, where the left side represents the inputIn, the right side represents the output, and the straight line (also called index) of each row corresponds to the qubit it is acting on. It should be noted that the total number of indices possessed by a tensor should equal its degree.
A graph of CNOT (controlled not gate) quantum operation under tensor is shown in fig. 3.
Suppose we first pair qubits
Figure 864507DEST_PATH_IMAGE158
Performing quantum operations
Figure 114223DEST_PATH_IMAGE159
For the qubit
Figure 161813DEST_PATH_IMAGE160
A CNOT quantum operation is performed, a graph of these two quantum operations under tensor, as shown in fig. 4.
4) Cutting and merging of CNOT quantum operations in tensor representation:
for CNOT quantum manipulation we can perform a special manipulation, called slicing, on it under the tensor. The cut may change the tensor corresponding to one CNOT quantum operation (degree 4) to two tensors of degree 3 (COPY tensor and XOR tensor, respectively). It should be noted that the degree of cutting increases from 4 to 6, and two new indicators are generated. One acting on qubits
Figure 533889DEST_PATH_IMAGE161
Graph of CNOT quantum operations on after cutting, as shown in fig. 5.
The upper half part is a COPY tensor, the lower half part is an XOR tensor, two straight lines cut off in the middle are two newly-added indexes, and the two indexes do not correspond to any quantum bit.
The combination of COPY and XOR is the inverse operation of CNOT quantum operation cutting under tensor, which can restore the COPY and XOR tensors obtained by cutting to the original CNOT quantum operation.
5) Contraction between tensors
Contraction is a fundamental operation in tensor theory that can combine two tensors into a new tensor. In quantum programming, assume we want to pair tensors
Figure 604613DEST_PATH_IMAGE162
A shrink operation is performed, which process can be described as
Figure 720337DEST_PATH_IMAGE163
In which
Figure 560117DEST_PATH_IMAGE164
To shrink the resulting new tensor (the specific calculation of which is prior art),
Figure 103094DEST_PATH_IMAGE165
for quantum operations corresponding to said tensors, the quantum bit acted on by the quantum operation is
Figure 395535DEST_PATH_IMAGE166
The union of the qubit sets is acted upon as shown in fig. 6.
For example, we want to shrink the tensors in the two quantum processes, the output of the process can be written as
Figure 314949DEST_PATH_IMAGE167
Wherein
Figure 9236DEST_PATH_IMAGE168
And carrying out quantum operation corresponding to the newly obtained tensor.
Figure 723114DEST_PATH_IMAGE169
The graph of (a) is shown in fig. 7.
The quantum bit set for the two quantum operation functions is
Figure 830747DEST_PATH_IMAGE170
Therefore, it is
Figure 225956DEST_PATH_IMAGE171
Degree of 4, respectively corresponding to the qubits
Figure 837066DEST_PATH_IMAGE172
As shown in fig. 8.
For another example, we want to shrink the tensors in the two quantum processes, the output of the process can be recorded as
Figure 925108DEST_PATH_IMAGE173
Wherein
Figure 254458DEST_PATH_IMAGE174
And carrying out quantum operation corresponding to the newly obtained tensor.
Figure 187779DEST_PATH_IMAGE175
The graph of (a) is shown in fig. 9.
The qubits for which the two quantum operations described above work are grouped together
Figure 918975DEST_PATH_IMAGE176
Therefore, it is
Figure 240234DEST_PATH_IMAGE177
Degree of 6, corresponding to qubits respectively
Figure 728985DEST_PATH_IMAGE178
As shown in fig. 10.
For another example, we want to shrink the tensors in the two quantum processes, the output of the process can be recorded as
Figure 793893DEST_PATH_IMAGE179
And carrying out quantum operation corresponding to the newly obtained tensor.
Figure 317278DEST_PATH_IMAGE180
The graph of (a) is shown in fig. 11.
The quantum bit set for the two quantum operation functions is
Figure 543860DEST_PATH_IMAGE181
In addition, the COPY tensor has an index which is irrelevant to the qubit, so
Figure 785485DEST_PATH_IMAGE182
Degree of 5, corresponding to qubits respectively
Figure 388505DEST_PATH_IMAGE183
And
Figure 828714DEST_PATH_IMAGE184
and a qubit-independent index of the original COPY tensor.
6) Fundamental quantum operations:
in the quantum programming process, it will be assumed that any quantum operation can be performed on a quantum computer. In practical cases, however, a quantum computer can only perform some specific quantum operations, and these operations that can be performed by a specific quantum computer are referred to as basic quantum operations of the quantum computer. The basic quantum operations are assumed in this patent to be single-qubit U3 operations and two-qubit CNOT operations. It should be noted that for most practical quantum computers, the U3 operation and CNOT operation can be easily compiled into their corresponding basic quantum operations. The quantum wires and their tensors are represented as shown in fig. 12.
Quantum wires (using symbols)
Figure 429459DEST_PATH_IMAGE185
Representation) is a common description of quantum processes, which generally consist of a quantum bit and a series of quantum operations, if each quantum operation is represented by a tensor, a tensor representation of the quantum line can be obtained. The upper diagram shows a tensor representation of a quantum wire, which contains two qubits
Figure 955118DEST_PATH_IMAGE186
Each line represents a corresponding qubit and also contains three quantum operations, respectively
Figure 299512DEST_PATH_IMAGE187
And CNOT.
7) Classical modeling of quantum wires under tensor representation:
by performing the contraction operation on the tensors in the quantum wire in a certain order (for example, from left to right), only one tensor can be left in the quantum wire, and the process is called a classical simulation of the quantum wire and is marked as
Figure 859806DEST_PATH_IMAGE188
Wherein
Figure 428191DEST_PATH_IMAGE189
A tensor representation corresponding to the resulting quantum operation.
For example, for the quantum wires shown in the previous figures, in a classical simulation process, the tensors are first aligned
Figure 237884DEST_PATH_IMAGE190
And
Figure 182706DEST_PATH_IMAGE191
is contracted and is marked as
Figure 355365DEST_PATH_IMAGE192
At this time, only tensor exists in the line
Figure 360231DEST_PATH_IMAGE193
As shown in fig. 13.
Then, it is executed again
Figure 267007DEST_PATH_IMAGE194
When only one tensor exists in the line
Figure 546678DEST_PATH_IMAGE195
As shown in fig. 14.
Figure 753669DEST_PATH_IMAGE196
I.e. the output of the classical simulation.
8) Distance between the two tensors:
distance (
Figure 929435DEST_PATH_IMAGE197
) For inscribing two tensors acting on the same qubit (not to be noted as
Figure 854666DEST_PATH_IMAGE198
) The degree of similarity between them. It can be expressed as:
Figure 141291DEST_PATH_IMAGE199
wherein
Figure 468367DEST_PATH_IMAGE200
For averaging errors, the operation is performed on two tensors with the same degree, the output of the operation is a real number greater than or equal to 0, which can characterize the similarity degree of the two tensors (the lower the value is, the more similar the value is, the 0 is taken to represent complete equivalence), and the specific calculation process of the operation is the prior art.
9) Approximate compilation of quantum wires:
for a quantum wire
Figure 815035DEST_PATH_IMAGE201
And a sufficiently small positive number
Figure 961982DEST_PATH_IMAGE202
When another quantum wire is present
Figure 52298DEST_PATH_IMAGE203
And satisfy
Figure 233880DEST_PATH_IMAGE204
At first, call
Figure 751449DEST_PATH_IMAGE205
As quantum wires
Figure 713589DEST_PATH_IMAGE206
Is/are as follows
Figure 279700DEST_PATH_IMAGE207
And (4) approximate compiling. The performance of a near quantum compiler can be measured by the number of CNOT quantum operations in its output quantum wires, which is the smaller the number of CNOT quantum operations in the output quantum wires, the better the performance of the near quantum compiler.
10 Approximate compilation of quantum wires without XOR and COPY tensors:
for quantum wires under a tensor representation
Figure 378106DEST_PATH_IMAGE208
If the vector does not contain XOR and COPY tensors (the CNOT tensor is not cut), the existing approximate quantum compiler can be called to carry out approximate compilation, and the process is marked as
Figure 4259DEST_PATH_IMAGE209
Wherein
Figure 188116DEST_PATH_IMAGE210
In order to be the output line,
Figure 557917DEST_PATH_IMAGE211
to a target accuracy
11 ) quantum line optimizer
Some quantum operations in a quantum circuit may have one or more parameters to be determined, such as the aforementioned single-qubit U3 operation, and specific values of these parameters need to be determined during the compilation process, which may be regarded as an optimization problem, and the specific tools for solving this problem are referred to in this patent as quantum operation optimizers (prior art). Specifically, the input to a quantum manipulation optimizer is a quantum wire containing a quantum manipulation of a pending parameter
Figure 776409DEST_PATH_IMAGE212
And the target sheetQuantity of
Figure 635781DEST_PATH_IMAGE213
Output is as
Figure 244617DEST_PATH_IMAGE214
Specific value set of middle parameters
Figure 214847DEST_PATH_IMAGE215
And need to make
Figure 287845DEST_PATH_IMAGE216
Is as small as possible. The calling process of the quantum operation optimizer is noted in the present invention as
Figure 255801DEST_PATH_IMAGE217
The scheme is divided into three parts of line cutting, sub-line compiling and line combining. The circuit cutting module divides a general quantum circuit with a large number of sub-bits (input circuit of the compiler) into a plurality of sub-circuits with a small number of sub-bits; sub-line compilation is based on a tensor network theory, the sub-lines are compiled into new quantum lines only containing basic quantum operations, and the sub-lines before and after compilation are approximately equivalent; the line combination combines the sub-lines with the new small number of sub-bits obtained by compiling to obtain a line with a new large number of sub-bits as the output result of the compiler, so that the output line and the input line are approximately equivalent, and the high-performance compiling of the quantum line with any number of quantum bits can be realized.
In the above embodiments, although the steps are numbered as S1, S2, etc., but only the specific embodiments are given in the present application, and a person skilled in the art may adjust the execution sequence of S1, S2, etc. according to the actual situation, which is also within the protection scope of the present invention, it is understood that some embodiments may include some or all of the above embodiments.
As shown in fig. 2, an approximate quantum compiling system 200 based on tensor network according to an embodiment of the present invention includes a segmentation module 210, a compiling module 220, and a combination determining module 230;
the segmentation module 210 is configured to: dividing the quantum circuit to be compiled into a plurality of sub-circuits, wherein the quantum bit of each sub-circuit is not more than the maximum value of the number of preset quantum bits;
the compiling module 220 is configured to: on the basis of a tensor network theory, compiling each sub-line into a new sub-line only comprising basic quantum operation respectively, and enabling any sub-line to be approximately equivalent to the new sub-line corresponding to the sub-line;
the combination determination module 230 is configured to: and combining all the new sub-circuits to obtain a new quantum circuit, and determining the new quantum circuit as a final compiling result.
Based on the tensor network theory, quantum operations are expressed by tensor, and by using the cutting characteristic of the tensor, fewer sub-lines can be generated in line division compared with a scheme expressed by a traditional unitary matrix, the number of quantum operations contained in each sub-line is more than that of the scheme expressed by the traditional unitary matrix, and therefore the coding effect is improved.
Optionally, in the foregoing technical solution, the segmentation module 210 includes an initial construction module, a sequence extraction module, a determination module, an update module, a first judgment module, and an update repeat call module;
the initial building block is configured to: initializing a plurality of sub-circuits to be constructed, and constructing a mapping relation from the quantum bits in the quantum circuits to be compiled to the sub-circuits to be constructed, wherein each quantum bit in the quantum circuits to be compiled corresponds to one sub-circuit to be constructed;
the sequence extraction module is to: sequentially extracting the quantum operations in the quantum circuit to be compiled according to the execution sequence of the quantum operations in the quantum circuit to be compiled;
the determination module is to: determining the sub-lines to be constructed corresponding to the quantum operations extracted by the sequence extraction module from all the sub-lines to be constructed according to the mapping relation;
the update module is to: updating the sub-circuit to be constructed corresponding to the quantum operation extracted by the sequential extraction module according to the quantum operation of the sub-circuit to be constructed corresponding to the quantum operation extracted by the sequential extraction module and the preset maximum value of the number of quantum bits;
the first judging module is used for: judging whether any sub-line to be constructed is constructed or not, if so, determining the sub-line to be constructed as the sub-line, and generating a new sub-line to be constructed;
the update repeat call module is to: and updating the mapping relation, and recalling the sequence extraction module, the determination module and the updating module until all quantum operations in the quantum circuit to be compiled are extracted, completing the segmentation of the quantum circuit to be compiled, and obtaining a plurality of sub-circuits.
Optionally, in the foregoing technical solution, the compiling module 220 includes a repeat call module, an initialization opening module, a second judging module, and an expansion repeat call module;
the repeat call module is to: calling an initialization opening module, a second judgment module and a development repeated calling module for each sub-line until each sub-line is compiled into a new sub-line only containing basic quantum operation;
the initialization opening module is used for: initializing any sub-line, and opening the initialized sub-line to obtain a state;
the second judging module is used for: judging whether sub-circuits contained in the state obtained by initializing the opening module meet output conditions or not, if so, outputting the sub-circuit corresponding to the state as a new sub-circuit corresponding to the sub-circuit, and if not, calling a development repeat calling module;
the unwind repeat call module is to: and performing expansion operation on the state obtained by initializing the opening module to obtain a plurality of new states, selecting one state from all the new states, taking the selected state as the state obtained by initializing the opening module, and repeatedly calling the second judgment module.
The above steps for realizing the corresponding functions of each parameter and each unit module in the approximate quantum compiling system based on the tensor network can refer to each parameter and step in the embodiment of the approximate quantum compiling method based on the tensor network, and are not described herein again.
The storage medium of the embodiment of the present invention stores instructions, and when the instructions are read by a computer, the computer is caused to execute any one of the above approximate quantum compiling methods based on the tensor network.
The electronic device of the embodiment of the invention comprises a processor and the storage medium, wherein the processor executes instructions in the storage medium, and the electronic device can be a computer, a mobile phone and the like.
As will be appreciated by one skilled in the art, the present invention may be embodied as a system, method or computer program product.
Accordingly, the present disclosure may be embodied in the form of: the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, resident software, micro-code, etc.) or an embodiment combining software and hardware aspects that may all generally be referred to herein as a "circuit," module "or" system. Furthermore, in some embodiments, the invention may also be embodied in the form of a computer program product in one or more computer-readable media having computer-readable program code embodied in the medium.
Any combination of one or more computer-readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium include an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (8)

1. An approximate quantum compiling method based on a tensor network, comprising:
s1, dividing a quantum circuit to be compiled into a plurality of sub-circuits, wherein the quantum bit of each sub-circuit is not more than the maximum value of the number of preset quantum bits;
s2, compiling each sub-line into a new sub-line only comprising basic quantum operation based on a tensor network theory, and enabling any sub-line to be approximately equivalent to the new sub-line corresponding to the sub-line;
and S3, combining all the new sub-circuits to obtain a new quantum circuit, and determining the new quantum circuit as a final compiling result.
2. The approximate quantum compiling method based on the tensor network as recited in claim 1, wherein the dividing the quantum wire to be compiled into a plurality of sub-wires comprises:
s10, initializing a plurality of sub-lines to be constructed, and constructing a mapping relation from the quantum bits in the quantum lines to be compiled to the sub-lines to be constructed, wherein each quantum bit in the quantum lines to be compiled corresponds to one sub-line to be constructed;
s11, sequentially extracting the quantum operations in the quantum circuit to be compiled according to the execution sequence of the quantum operations in the quantum circuit to be compiled;
s12, determining the sub-circuit to be constructed corresponding to the quantum operation extracted in the S11 from all the sub-circuits to be constructed according to the mapping relation;
s13, updating the sub-circuit to be constructed corresponding to the quantum operation extracted in the S11 according to the quantum operation of the sub-circuit to be constructed corresponding to the quantum operation extracted in the S11 and the preset maximum value of the number of quantum bits;
s14, judging whether any sub-line to be constructed is constructed or not, if so, determining the sub-line to be constructed as the sub-line, and generating a new sub-line to be constructed;
and S15, updating the mapping relation, returning to execute the S11 until all quantum operations in the quantum line to be compiled are extracted, and completing the segmentation of the quantum line to be compiled to obtain a plurality of sub-lines.
3. The approximate quantum compiling method based on the tensor network as recited in claim 2, wherein the tensor network theory-based compiling each sub-line into a new sub-line containing only fundamental quantum operations respectively comprises:
respectively executing S20-S22 on each sub-line until each sub-line is compiled into a new sub-line only containing basic quantum operation;
s20, initializing any sub-line, and opening the initialized sub-line to obtain a state;
s21, judging whether sub-lines contained in the state obtained in the S20 meet output conditions or not, if so, outputting the sub-line corresponding to the state as a new sub-line corresponding to the sub-line, and if not, executing S22;
s22, performing an expansion operation on the state obtained in S20 to obtain a plurality of new states, selecting one state from all the new states, taking the selected state as the state obtained in S20, and repeating S21.
4. An approximate quantum compiling system based on a tensor network is characterized by comprising a segmentation module, a compiling module and a combination determining module;
the segmentation module is configured to: dividing the quantum circuit to be compiled into a plurality of sub-circuits, wherein the quantum bit of each sub-circuit is not more than the maximum value of the number of preset quantum bits;
the compiling module is configured to: on the basis of a tensor network theory, compiling each sub-line into a new sub-line only containing basic quantum operation, and enabling any sub-line to be approximately equivalent to the new sub-line corresponding to the sub-line;
the combination determination module is to: and combining all the new sub-lines to obtain a new quantum line, and determining the new quantum line as a final compiling result.
5. The tensor network-based approximate quantum compiling system of claim 4, wherein the segmenting module comprises an initial constructing module, a sequential extracting module, a determining module, an updating module, a first judging module and an updating repeat calling module;
the initial building module is to: initializing a plurality of sub-lines to be constructed, and constructing a mapping relation from the quantum bits in the quantum lines to be compiled to the sub-lines to be constructed, wherein each quantum bit in the quantum lines to be compiled corresponds to one sub-line to be constructed;
the sequential extraction module is to: sequentially extracting the quantum operations in the quantum circuit to be compiled according to the execution sequence of the quantum operations in the quantum circuit to be compiled;
the determination module is to: determining sub-lines to be constructed corresponding to the quantum operations extracted by the sequence extraction module from all the sub-lines to be constructed according to the mapping relation;
the update module is to: updating the sub-circuit to be constructed corresponding to the quantum operation extracted by the sequential extraction module according to the quantum operation of the sub-circuit to be constructed corresponding to the quantum operation extracted by the sequential extraction module and a preset maximum value of the number of quantum bits;
the first judging module is used for: judging whether any sub-line to be constructed is constructed or not, if so, determining the sub-line to be constructed as the sub-line, and generating a new sub-line to be constructed;
the update repeat call module is configured to: and updating the mapping relation, and recalling the sequence extraction module, the determination module and the updating module until all quantum operations in the quantum line to be compiled are extracted, completing the segmentation of the quantum line to be compiled, and obtaining a plurality of sub-lines.
6. The tensor network-based approximate quantum compiling system of claim 5, wherein the compiling module comprises a repeat calling module, an initialization opening module, a second judging module and an unfolding repeat calling module;
the repeat call module is configured to: calling the initialization opening module, the second judgment module and the expansion repeated calling module for each sub-line until each sub-line is compiled into a new sub-line only comprising basic quantum operation;
the initialization opening module is used for: initializing any sub-line, and opening the initialized sub-line to obtain a state;
the second judging module is used for: judging whether sub-circuits contained in the state obtained by initializing the opening module meet output conditions or not, if so, outputting the sub-circuit corresponding to the state as a new sub-circuit corresponding to the sub-circuit, and if not, calling the expansion repeated calling module;
the expansion repeat call module is used for: and performing expansion operation on the state obtained by initializing the opening module to obtain a plurality of new states, selecting one state from all the new states, taking the selected state as the state obtained by initializing the opening module, and repeatedly calling the second judgment module.
7. A storage medium having stored therein instructions which, when read by a computer, cause the computer to execute a tensor network-based approximate quantum compilation method as recited in any one of claims 1 to 3.
8. An electronic device comprising the storage medium of claim 7 and a processor, wherein the processor executes instructions in the storage medium.
CN202210980282.0A 2022-08-16 2022-08-16 Approximate quantum compiling method and system based on tensor network and electronic equipment Active CN115358407B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210980282.0A CN115358407B (en) 2022-08-16 2022-08-16 Approximate quantum compiling method and system based on tensor network and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210980282.0A CN115358407B (en) 2022-08-16 2022-08-16 Approximate quantum compiling method and system based on tensor network and electronic equipment

Publications (2)

Publication Number Publication Date
CN115358407A true CN115358407A (en) 2022-11-18
CN115358407B CN115358407B (en) 2023-04-11

Family

ID=84033528

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210980282.0A Active CN115358407B (en) 2022-08-16 2022-08-16 Approximate quantum compiling method and system based on tensor network and electronic equipment

Country Status (1)

Country Link
CN (1) CN115358407B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115860128A (en) * 2022-12-21 2023-03-28 北京百度网讯科技有限公司 Quantum circuit operation method and device and electronic equipment
CN117408346A (en) * 2023-10-25 2024-01-16 北京中科弧光量子软件技术有限公司 Quantum circuit determining method and device and computing equipment

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108710951A (en) * 2018-05-17 2018-10-26 合肥本源量子计算科技有限责任公司 A kind of method and system of structure quantum wire
US20190286774A1 (en) * 2018-03-14 2019-09-19 International Business Machines Corporation Quantum circuit decomposition by integer programming
CN112085204A (en) * 2020-09-18 2020-12-15 东南大学 Line transformation method for quantum compiling
CN114330730A (en) * 2021-12-25 2022-04-12 北京量子信息科学研究院 Quantum line block compiling method, device, equipment, storage medium and product
CN114399053A (en) * 2022-02-01 2022-04-26 上海图灵智算量子科技有限公司 Quantum discrimination circuit and model for progressive training
CN114416105A (en) * 2022-03-30 2022-04-29 北京中科弧光量子软件技术有限公司 Quantum operation compiling method and system, storage medium and electronic equipment
CN114529003A (en) * 2022-01-29 2022-05-24 西安电子科技大学 Dividing method for multi-quantum bit quantum Fourier transform line
CN114548414A (en) * 2022-02-22 2022-05-27 合肥本源量子计算科技有限责任公司 Method, device, storage medium and compiling system for compiling quantum circuit
CN114764549A (en) * 2020-12-31 2022-07-19 合肥本源量子计算科技有限责任公司 Quantum line simulation calculation method and device based on matrix product state
CN114897174A (en) * 2022-05-19 2022-08-12 北京大学 Hybrid calculation method and device based on tensor network and quantum line

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190286774A1 (en) * 2018-03-14 2019-09-19 International Business Machines Corporation Quantum circuit decomposition by integer programming
CN108710951A (en) * 2018-05-17 2018-10-26 合肥本源量子计算科技有限责任公司 A kind of method and system of structure quantum wire
CN112085204A (en) * 2020-09-18 2020-12-15 东南大学 Line transformation method for quantum compiling
CN114764549A (en) * 2020-12-31 2022-07-19 合肥本源量子计算科技有限责任公司 Quantum line simulation calculation method and device based on matrix product state
CN114330730A (en) * 2021-12-25 2022-04-12 北京量子信息科学研究院 Quantum line block compiling method, device, equipment, storage medium and product
CN114529003A (en) * 2022-01-29 2022-05-24 西安电子科技大学 Dividing method for multi-quantum bit quantum Fourier transform line
CN114399053A (en) * 2022-02-01 2022-04-26 上海图灵智算量子科技有限公司 Quantum discrimination circuit and model for progressive training
CN114548414A (en) * 2022-02-22 2022-05-27 合肥本源量子计算科技有限责任公司 Method, device, storage medium and compiling system for compiling quantum circuit
CN114416105A (en) * 2022-03-30 2022-04-29 北京中科弧光量子软件技术有限公司 Quantum operation compiling method and system, storage medium and electronic equipment
CN114897174A (en) * 2022-05-19 2022-08-12 北京大学 Hybrid calculation method and device based on tensor network and quantum line

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
MARCO LAZZARIN 等: "Multi-class quantum classifiers with tensor network circuits for quantum phase" *
喻志超 等: "量子计算模拟及优化方法综述" *
张静 等: "张量网络与神经网络在物理学中的应用和交融" *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115860128A (en) * 2022-12-21 2023-03-28 北京百度网讯科技有限公司 Quantum circuit operation method and device and electronic equipment
CN115860128B (en) * 2022-12-21 2023-08-15 北京百度网讯科技有限公司 Quantum circuit operation method and device and electronic equipment
CN117408346A (en) * 2023-10-25 2024-01-16 北京中科弧光量子软件技术有限公司 Quantum circuit determining method and device and computing equipment
CN117408346B (en) * 2023-10-25 2024-06-11 北京中科弧光量子软件技术有限公司 Quantum circuit determining method and device and computing equipment

Also Published As

Publication number Publication date
CN115358407B (en) 2023-04-11

Similar Documents

Publication Publication Date Title
CN115358407B (en) Approximate quantum compiling method and system based on tensor network and electronic equipment
JP7186797B2 (en) Method and system for quantum computing
Das et al. A group incremental feature selection for classification using rough set theory based genetic algorithm
JP2018195314A (en) Domain specific language for generation of recurrent neural network architectures
US20190251213A1 (en) Generating samples of outcomes from a quantum simulator
CN111914378B (en) Single-amplitude quantum computing simulation method and device
CN114416105B (en) Quantum operation compiling method and system, storage medium and electronic equipment
CN111915011B (en) Single-amplitude quantum computing simulation method
CN112764738A (en) Code automatic generation method and system based on multi-view program characteristics
Rivero et al. Dome: a deterministic technique for equation development and symbolic regression
Korobkin et al. Synthesis of the physical principle of operation of engineering systems in the software environment CPN TOOLS
CN111931939B (en) Single-amplitude quantum computing simulation method
KR102153161B1 (en) Method and system for learning structure of probabilistic graphical model for ordinal data
CN113128015B (en) Method and system for predicting resources required by single-amplitude analog quantum computation
CN113609806A (en) Quantum line program universal conversion method combined with subgraph isomorphism
Mulderij et al. A polynomial size model with implicit swap gate counting for exact qubit reordering
JP2017111749A (en) Calculation code generation device, method and program
WO2004068342A1 (en) Software development preprocessing method, software control method, software development method, and software development device
Gushanskiy et al. Development of a scheme of a hardware accelerator of quantum computing for correction quantum types of errors
Jin A note on “An exact algorithm for the blocks relocation problem with new lower bounds”
WO2024116608A1 (en) Computer system and information processing method
Kholod et al. Decomposition of data mining algorithms into unified functional blocks
Steinbach et al. Boolean Differential Equations-a Common Model for Classes, Lattices, and Arbitrary Sets of Boolean Functions
CN113284256B (en) MR (magnetic resonance) mixed reality three-dimensional scene material library generation method and system
Duy et al. VulnSense: Efficient Vulnerability Detection in Ethereum Smart Contracts by Multimodal Learning with Graph Neural Network and Language Model

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
GR01 Patent grant
GR01 Patent grant