QUANTUM COMPUTER VERIFICATION APPARATUS AND METHOD

Information

  • Patent Application
  • 20250131315
  • Publication Number
    20250131315
  • Date Filed
    October 20, 2021
    4 years ago
  • Date Published
    April 24, 2025
    11 months ago
  • CPC
    • G06N10/70
    • G06N10/20
  • International Classifications
    • G06N10/70
    • G06N10/20
Abstract
A quantum computer verification apparatus includes: a division unit 1 that divides 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); a stabilizer operator calculation unit 2 that calculates a stabilizer operator {circumflex over ( )}sk for each k; an estimation unit 3 that randomly selects (i, j, i′, j′) T2 times for each k and calculates estimates of a real part of a value of the following expression to obtain T2 estimates;
Description
TECHNICAL FIELD

The present invention relates to a technique for verifying correctness of operation of a quantum computer.


BACKGROUND ART

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 FIG. 6. Numbers 0 to 52 are numbers of qubits, which represents that a 2-qubit gate can be directly applied between the 0th and the 1st, but cannot be directly applied between the 0th and the 2nd, for example.


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 FIG. 6, as indicated by a broken line, by removing two of the side between the 21st and 28th vertices and the side between the 25th and 29th vertices, it is possible to separate the graph into a partial graph including the 0th to 27th vertices and a partial graph including the 28th to 52nd vertices.


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=<Ψtoutt>, 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









O

(


1


ϵ
2


δ


+



2
n


ϵ
2



log


1
δ



)




[

Math
.

1

]







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.











χ

p
out


(
k
)



Tr
[



ρ

o

u

t




W
k




2
n



]





[

Math
.

2

]









    • is defined using this Wk. Using this definition, the fidelity F is written as the following expression.












F
=




k
=
1


4
n






χ

ρ
out


(
k
)


χ






"\[LeftBracketingBar]"


ψ
t








ψ
t





"\[RightBracketingBar]"






(
k
)







[

Math
.

3

]







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.










{



χ






"\[LeftBracketingBar]"


ψ
t








ψ
t





"\[RightBracketingBar]"



(
k
)

2

}


k
=
1


4
n





[

Math
.

4

]







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











X
˜

i

=








j
=
1


n


ι
i





A
ij




m
i




2
n





χ






"\[LeftBracketingBar]"


ψ
t








ψ
t





"\[RightBracketingBar]"



(

k
i

)







[

Math
.

5

]







is calculated. This operation is performed for all i.


3. The average
















i
=
1

L




X
˜

i


L




[

Math
.

6

]







is calculated using {˜Xi}i=1L obtained in step 2, and this is accepted as the estimate Fest of the fidelity F.


Since the value of k is selected according to the probability distribution expressed as the following expression,










{



χ






"\[LeftBracketingBar]"


ψ
t








ψ
t





"\[RightBracketingBar]"



(
k
)

2

}


k
=
1


4
n





[

Math
.

7

]







the average










(




i
=
1

L





X

~

i


)

/
L




[

Math
.

8

]







converges as expressed by the following expression.













k
=
1


4
n






χ






"\[LeftBracketingBar]"


ψ
t








ψ
t





"\[RightBracketingBar]"



(
k
)

2




Tr
[


ρ

o

u

t




W
k


]




2
n





χ






"\[LeftBracketingBar]"


ψ
t








ψ
t





"\[RightBracketingBar]"



(
k
)





=





k
=
1


4
n





χ

ρ
out


(
k
)




χ






"\[LeftBracketingBar]"


ψ
t








ψ
t





"\[RightBracketingBar]"



(
k
)



=
F





[

Math
.

9

]







Therefore, if










L
=



8


ϵ
2


δ





,


m
i

=




8


log



4
/
δ




2
n





χ






"\[LeftBracketingBar]"


ψ
t








ψ
t





"\[RightBracketingBar]"



(

k
i

)

2


L


ϵ
2










[

Math
.

10

]







is established using a ceiling function,










Pr
[




"\[LeftBracketingBar]"



F
est

-
F



"\[RightBracketingBar]"



ϵ

]


δ




[

Math
.

11

]







is derived according to Chebyshev's inequality and Heading's inequality. In the above-described method, Σi=1Lmi copies are used in total, and the average value thereof becomes













i
=
1

L


[




k
i






χ






"\[LeftBracketingBar]"


ψ
t








ψ
t





"\[RightBracketingBar]"



(

k
i

)

2



m
i



]







i
=
1

L


[

1
+



2

n
+
3




log



(

4
/
δ

)



L


ϵ
2




]




1
+

8


ϵ
2


δ


+



2

n
+
3



ϵ
2



log


4
δ







[

Math
.

12

]







at most.


CITATION LIST
Non Patent Literature



  • Non Patent Literature 1: A. Kondratyev, Non-Differentiable Learning of Quantum Circuit Born Machine with Genetic Algorithm, SSRN 3569226, 2020

  • Non Patent Literature 2: S. T. Flammia and Y.-K. Liu, Direct Fidelity Estimation from Few Pauli Measurements, Phys. Rev. Lett. 106, 230501, 2011



SUMMARY OF INVENTION
Technical Problem

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,









O


(


1


ϵ
2


δ


+



2
n


ϵ
2



log


1
δ



)





[

Math
.

13

]







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.


Solution to Problem

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;









U
=


1

2
D







i
,

j

D

,

1
D






(

-
1

)


i
,
j





V
i



W
j









[

Math
.

14

]







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=1DiLjL, and T1 is a predetermined positive integer;









?




[

Math
.

15

]










?

indicates text missing or illegible when filed




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;











(

-
1

)



i
·
j

+


i


·

j







Tr
[


ρ
out

[



Q

i
,
j

+

(




i
=
1

n


z
i

k
i



)



Q


i


,

j





]

]





[

Math
.

16

]







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.


Advantageous Effects of Invention

It is possible to verify a quantum computer more efficiently than before.





BRIEF DESCRIPTION OF DRAWINGS


FIG. 1 is a diagram illustrating an example of a functional configuration of a quantum computer verification apparatus.



FIG. 2 is a diagram illustrating an example of a processing procedure of a quantum computer verification method.



FIG. 3 is a diagram for describing a density of a quantum state.



FIG. 4 is a diagram for describing processing of an estimation unit 3.



FIG. 5 is a diagram illustrating an overview of an operation of an embodiment.



FIG. 6 is a diagram illustrating an example of a graph showing a quantum chip.





DESCRIPTION OF EMBODIMENTS

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.


[Quantum Computer Verification Apparatus and Method]

As illustrated in FIG. 1, a quantum computer verification apparatus includes, for example, a division unit 1, a stabilizer operator calculation unit 2, an estimation unit 3, an average calculation unit 4, and a fidelity estimation value calculation unit 5.


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 FIG. 2.


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.









X
^




[

Math
.

17

]







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,









O

(



2

12

D



ϵ
6





(

D
+

log


1

δϵ
4




)

3


)




[

Math
.

18

]







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.









CZ


(



1


0


0


0




0


1


0


0




0


0


1


0




0


0


0



-
1




)





[

Math
.

19

]







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 FIG. 3 is conceived. This graph can be divided into two partial graphs having the same number of vertices by removing the middle side. In a case where a quantum circuit having a depth d is mounted on the quantum chip represented by this graph, the density D is at most d.


Fest satisfying |Fest−<Ψtoutt≥ε 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.









U
=


1

2
D







i
,

j

0

,

1
D






(

-
1

)


i
·
j





V
i



W
j









[

Math
.

20

]







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.










?

=


1

4
D





?

[



Q

i
,
j

+

(




i
=
1

n


z
i

k
i



)



Q


i


,

j





]






[

Math
.

21

]










?

indicates text missing or illegible when filed




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=1DiLjL. Here, (×) represents a tensor product. (+) represents an exclusive OR. † represents complex conjugate transposition.


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.











(

-
1

)



i
·
j

+


i


·

j







Tr
[


ρ
out

[



Q

i
,
j

+

(




i
=
1

n


z
i

k
i



)



Q


i


,

j





]

]





[

Math
.

22

]







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 FIG. 4 T3 times for each L, for example. T3 is a predetermined positive integer. H represents a Hadamard gate, and X represents a Pauli X gate. Symbols with vertical lines attached to square boxes (Vi, Vi,, Wj, Wj,) represent controlled quantum gates written in the square boxes. Further, for any L∈{0,1}3, CL=S{circumflex over ( )}(δL1,1δL2,0)H{circumflex over ( )}(δL1+L2,1)X{circumflex over ( )}(L3). S=√Z with Z as a Pauli Z gate. δa,b is Kronecker delta. δa,b=1 if a=b, and δa,b=0 if a≠b. The mark on the meter represents a Pauli Z measurement. o∈{0, 1}, b∈{0, 1}, and z∈{0, 1}n represent measurement results.


A part surrounded by a broken line on the upper side in FIG. 4 is referred to as a first quantum circuit. The first quantum circuit is a quantum circuit including Vi that represents an m-qubit gate. Inputs of the first quantum circuit are |0> and m qubits divided by the division unit 1 in ρout.


A part surrounded by a broken line on the lower side in FIG. 4 is referred to as a second quantum circuit. The second quantum circuit is a quantum circuit including Wj that represents an m-qubit gate. Inputs of the second quantum circuit are |0> and n-m qubits divided by the division unit 1 in ρout.


β(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 FIG. 5. First, the qubits of the quantum circuit U are divided into m qubits and n-m qubits. The m qubits of the output state ρout of the quantum circuit U and |0> are input to the first quantum circuit. The n-m qubits of the output state ρout of the quantum circuit U and |0> are input to the second quantum circuit.


In FIG. 5, calculation performed using measurement results of the first quantum circuit and the second quantum circuit is represented as classical post-processing.


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.












32768



(


5
·

4
D


+
1

)

6



ϵ
6





(

log



10240



(


5
·

4
D


+
1

)

4



δϵ
4



)

3


=

O

(



16
D


ϵ
2




(

D
+

log


1

δϵ
4




)


)





[

Math
.

23

]







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).


Modified Example

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.

Claims
  • 1. A quantum computer verification apparatus comprising processing circuitry configured to: divide n qubits on which a quantum circuit U acts into m qubits and (n−m) qubits such that a number of CZ gates across the qubits becomes D=O(log n), the quantum circuit U being assumed to be able to be expressed by the following expression using an m-qubit gate Vi and an (n−m) qubit gate Wj;
  • 2. A quantum computer verification method comprising: a division step in which a division unit divides n qubits on which a quantum circuit U acts into m qubits and (n−m) qubits such that a number of CZ gates across the qubits becomes D=O(log n), the quantum circuit U being assumed to be able to be expressed by the following expression using an m-qubit gate Vi and an (n−m) qubit gate Wj by a stabilizer operator calculation unit;
PCT Information
Filing Document Filing Date Country Kind
PCT/JP2021/038778 10/20/2021 WO