The present invention relates to a technique for verifying correctness of operation of a quantum computer.
A quantum computer having a size n is a computer that obtains a calculation result by preparing n qubits represented by a normalized two-dimensional complex vector, causing one arbitrary qubit gate and CZ gate to act on the qubits, and finally measuring some or all of the qubits with a Pauli Z basis also called a calculation basis.
In particular, in a case where a quantum computer is realized in a solid quantum system such as a superconducting circuit, an operation is performed on qubits prepared on a chip.
Such a chip is referred to as a quantum chip and is characterized by a graph representing qubits between which a 2-qubit gate can directly act. Each vertex of the graph represents the position of a qubit, which represents that a 2-qubit gate can directly act only between qubits connected by a side.
As a specific example, a graph characterizing a quantum chip with 53 qubits (refer to Non Patent Literature 1, for example) created by IBM Corporation is illustrated in
In particular, by removing a constant number of sides independent of the value of n from a graph characterizing a quantum chip including n qubits, the graph can be separated into two partial graphs having O(n) vertices, and the quantum chip is said to be sparse.
In the case of
Verification of a quantum computer involves estimating how close a state ρout generated by repeating 1 and 2-qubit gates for qubits on an actually created quantum chip is to an ideal pure state |Ψt> expected from the theory. Specifically, the purpose of verification is to obtain a real number Fest satisfying |F−Fest|≤ε a with a probability of 1-δ or more for fidelity F=<Ψt|ρout|Ψt>, which is a quantity representing closeness.
Here, ρout is a 2n×2n semidefinite matrix with a trace value of 1, |Ψt> is a 2n-dimensional normalized complex vector, <Ψt| is conjugate transposition of |Ψt>, and ε and δ are real numbers satisfying 0<ε and δ<1.
As ε is closer to 0, it means that an actual fidelity and an obtained estimate are closer, and thus estimation accuracy is higher. In addition, as δ is closer to 0, an estimation failure probability decreases, and thus estimation with high reliability can be performed.
Usually, the size of a quantum device (referred to as B for clarity) available to obtain Fest is required to be less than the size of a quantum computer (referred to as A for clarity) to be verified. The efficiency of a verification method can be evaluated depending on how many copies of ρout are input to such a small-scale quantum device B to obtain Fest. Since copies of ρout are prepared by operating the quantum computer A to be verified as many times as a necessary number of copies, it can be said that the smaller the necessary number of copies is, the more efficient the verification method is. In particular, in a case where a required number of samples is a polynomial with respect to the size n of the quantum computer A to be verified, it is called efficient.
A method is known in which verification can be performed with a number of copies, which is less than or equal to
on average if the size of the quantum computer is denoted by n (refer to Non Patent Literature 2, for example). This method is highly versatile and can be used even when the quantum chip is not sparse.
First, for a natural number k satisfying 1≤k≤4n, Wk is set as n tensor products of a Pauli matrix.
A procedure performed to estimate F is as follows.
1. First, the value of k is randomly selected according to the following probability distribution expressed as the following expression.
This is repeated L times, and the i-th selected k is written as ki. Here, 1≤i≤L.
2. ρout is output mi times from the quantum computer, and each is measured with the basis of Wki corresponding to the selected value of ki. As a result, Aij∈{1, −1}(1≤j≤mi) is obtained as a j-th measurement result.
By using this result, the value of
is calculated. This operation is performed for all i.
3. The average
is calculated using {˜Xi}i=1
Since the value of k is selected according to the probability distribution expressed as the following expression,
the average
converges as expressed by the following expression.
Therefore, if
is established using a ceiling function,
is derived according to Chebyshev's inequality and Heading's inequality. In the above-described method, Σi=1
at most.
Although the method proposed in Non Patent Literature 2 can be applied to verification of any quantum chip including n qubits, a number of copies, which is expressed as the following expression,
on average at most is required to perform the verification, and the number of copies increases exponentially with respect to n. In order for a quantum computer to exhibit practical superiority over a classical computer, n needs to be sufficiently large, but with such large n, it takes a huge amount of time to verify the quantum computer. Therefore, even if calculation itself can be performed at a high speed, it takes an exponentially long time to confirm whether the calculation is performed correctly, and the high speed in calculation is canceled by the time taken for verification. In particular, it is important to verify whether or not a correct quantum state can be output because small and medium-scale quantum computers currently being realized do not have an error correction function.
An object of the present invention is to provide a quantum computer verification apparatus and a quantum computer verification method capable of verifying a quantum computer more efficiently than before.
A quantum computer verification apparatus according to one aspect of the present invention includes: a division unit configured to divide n qubits on which a quantum circuit U acts into m qubits and (n−m) qubits such that the number of CZ gates across the qubits becomes D=O(log n), the quantum circuit U being able to be expressed by the following expression using an m-qubit gate Vi and an (n−m)−qubit gate Wj;
a stabilizer operator calculation unit configured to randomly select a value of k∈{0, 1}n T1 times, and calculate a stabilizer operator {circumflex over ( )}sk defined by the following equation for each k, where Qi,j†=Vi(×)Wj, ki is an i-th bit of k, Zi is a Pauli Z gate acting on an i-th qubit, iL and jL are L-th bits of i and j, i·j=(+)L=1
an estimation unit configured to randomly select (i, j, i′, j′) T2 times for each k and calculate estimates of a real part of a value of the following equation to obtain T2 estimates, where ρout is a state output by the quantum circuit U;
an average calculation unit configured to obtain an average of the T2 estimates for each k and set the obtained average as an estimate of Tr[ρout{circumflex over ( )}sk] corresponding to each k; and a fidelity estimation value calculation unit configured to obtain an average of estimates of Tr[ρout{circumflex over ( )}sk] corresponding to each k and set the average as an estimate Fest of fidelity F of the quantum circuit U.
It is possible to verify a quantum computer more efficiently than before.
Hereinafter, an embodiment of the present invention will be described in detail. In the drawings, components having the same functions are denoted by the same reference numerals, and redundant description will be omitted.
As illustrated in
A quantum computer verification method is realized by each component of the quantum computer verification apparatus performing processing of steps S1 to S5 described below and illustrated in
Note that the symbol “{circumflex over ( )}” used in the text would normally be written immediately above the immediately following character, but is written immediately before the character due to limitations of text notation. In mathematical expressions, these symbols are described at their normal positions, that is, directly above the characters. For example, “{circumflex over ( )}X” in the text is written as follows in a mathematical expression.
The quantum computer verification apparatus and the quantum computer verification method are an apparatus and a method for performing verification of a quantum computer more efficiently than before. Verification involves evaluating closeness between an actually output quantum state and a theoretically expected correct quantum state as a quantity called fidelity.
In the following, a method of estimating fidelity by measuring a number of copies, which is expressed as the following expression,
through a number of qubits, which is less than n, for an n-qubit state with a density D is proposed. This method can also be applied to a general quantum computer similarly to the conventional method. This method is particularly efficient in a case where it is used for verification of a quantum computer in which the density of an output quantum state is D=O(log n). As described later, this method can also be used for verification of a quantum computer in which D≠O(log n).
The density of a quantum state is defined as follows. A gate set including single-qubit gates and controlled-Z (CZ) gates is conceived.
An n-qubit circuit configured by combining polynomial gates selected from the gate set is denoted by U. The n-qubit circuit U is abbreviated as a quantum circuit U. If the qubits are divided into two sets A and B having a size O(n), the number of gates across A and B in the quantum circuit U is defined as CUT(A:B). The density D of a quantum state |Ψ>=U|On> is a minimum value of CUT(A:B) in all the divisions A:B. Here, |0n> is n tensor products of |0>=(1,0)T.
A quantum circuit with a depth of O(log n) on a quantum chip represented by a graph that can be divided into two partial graphs having the same number of vertices by removing a constant number of sides is defined as a noisy intermediate-scale quantum (NISQ) computer. Therefore, the density of an output state of the NISQ computer is D=O(log n).
For example, a quantum chip that can be represented by a one-dimensional graph as illustrated in
Fest satisfying |Fest−<Ψt|ρout|Ψt≥ε is efficiently obtained with a probability of at least 1−δ for desired 0<ε and δ<1 and any n-qubit state |Ψt>=U|0n> with a density D=O(log n). Here, ρout is an actual output state of the NISQ computer, and it is assumed that this state does not change with time. Furthermore, it is assumed that any (m+1) qubit gates can be realized with an error of a diamond norm ε/4D+2 for n/2≤m<n−1.
First, the division unit 1 divides the n qubits on which the quantum circuit U acts into m qubits and (n−m) qubits such that the number of CZ gates across the qubits becomes D=O(log n) (step S1). Since the density of |Ψt> is D=O(log n), such a division can necessarily be performed.
The divided quantum circuit U is represented as follows.
For any i and j, Vi and Wj respectively represent an m-qubit gate and an (n−m)-qubit gate.
The stabilizer operator calculation unit 2 randomly selects a value of k∈{0, 1}n T1 times and calculates a stabilizer operator {circumflex over ( )}sk defined by the following expression for each k (step S2). The stabilizer operator calculation unit 2 selects a value of k∈{0, 1}n, for example, uniformly randomly, T1 times.
T1 is a predetermined positive integer. Qi,j†=Vi(×)Wj, ki is an i-th bit of k, Zi is a Pauli Z gate acting on the i-th qubit, iL and jL are L-th bits of i and j, and i·j=(+)L=1
The estimation unit 3 randomly selects (i, j, i′, j′) T2 times for each k, and calculates estimates of the real part of the values of the following expression to obtain T2 estimates (step S3). The estimation unit 3 uniformly randomly selects (i, j, i′, j′) T2 times for each k. The obtained T2 estimates are sent to the average calculation unit 4. T2 is a predetermined positive integer. Tr represents a diagonal sum.
The estimation unit 3 calculates an expected value of ΣL∈{0,1}{circumflex over ( )}3β(i, j, i′, j′, L)/2 as an estimate of the real part of the above equation (step S3).
For this purpose, the estimation unit 3 operates the quantum circuit in
A part surrounded by a broken line on the upper side in
A part surrounded by a broken line on the lower side in
β(i, j, i′, j′, L)=(−1){circumflex over ( )}((1+δL1,0δL2,0)o)α(i, j, i′, j′). It is assumed that α(i, j, i′, j′)∈{1, −1} becomes 1 only when (+)i=1nziki=i·j(+)i′·j′(+)b is satisfied and becomes −1 otherwise.
The average calculation unit 4 obtains an average of the T2 estimates for each k, and sets the obtained average as an estimate of Tr[ρout{circumflex over ( )}sk] corresponding to each k (step S4). The obtained estimate of Tr[ρout{circumflex over ( )}sk] corresponding to each k is sent to the fidelity estimation value calculation unit 5.
The fidelity estimation value calculation unit 5 obtains an average of the estimate of Tr[ρout{circumflex over ( )}sk] corresponding to each k, and sets the average as an estimate Fest of fidelity F of the quantum circuit U (step S5). In step S2, k is selected T1 times. Therefore, it can also be said that the fidelity estimation value calculation unit 5 obtains an average of estimates of T1 Tr[ρout{circumflex over ( )}sk] and uses the average as an estimate Fest of the fidelity F of the quantum circuit U.
An overview of such an operation is illustrated in
In
Since the size of the first quantum circuit is m+1 and the size of the second quantum circuit is n−m+1, and both are less than n, the size of the quantum circuit used for verification is less than the size of the quantum computer (in this case, a NISQ computer) to be verified.
In the conventional method, it is used that fidelity to be estimated can be written by the sum of expected values of tensor products of a Pauli matrix. Therefore, a required number of copies increases exponentially with respect to the size n of the quantum computer to be verified. On the other hand, this problem is avoided by using a decomposition method different from the conventional method as in the above embodiment, for example.
The number of samples required for the method described in the embodiment is at most the value expressed as the following expression.
In the case of a NISQ computer, this number is a polynomial with respect to the qubit number n because D=O(log n). In particular, in a case where D, δ, and ε are constants, the time required for verification does not change and is constant even when the size of the quantum computer increases. That is, the method described in the embodiment makes it possible to verify the NISQ computer in a shorter time than before.
The method described in the embodiment can also be applied to a case where the quantum computer to be verified is not a NISQ computer, in other words, a case where a quantum chip is not sparse although the depth is O(log n). Even in this case, the method described in the embodiment is more efficient than the conventional method. Many quantum chips currently produced can be represented by a plane graph having a constant maximum order. In the case of such representation, the dependency of the number of samples in the method described in the embodiment is 2{circumflex over ( )}(O((√n)log n)). 2{circumflex over ( )}(O((√n)log n)) is not a polynomial, but is smaller than the conventional number of samples, O(2n).
While the embodiment of the present invention has been described above, specific configurations are not limited to the embodiment, and it is needless to say that appropriate design changes, and the like are included in the present invention without deviating from the gist of the present invention.
The various types of processing described in the embodiment may be performed not only in chronological order in accordance with the described order, but also in parallel or individually depending on the processing capability of a device that performs the processing or as necessary.
| Filing Document | Filing Date | Country | Kind |
|---|---|---|---|
| PCT/JP2021/038778 | 10/20/2021 | WO |