Beruflich Dokumente
Kultur Dokumente
We investigate the problem of evaluating the output probabilities of Clifford circuits with nonstabilizer prod-
uct input states. First, we consider the case when the input state is mixed, and give an efficient classical algorithm
to approximate the output probabilities, with respect to the l1 norm, of a large fraction of Clifford circuits. The
running time of our algorithm decreases as the inputs become more mixed. Second, we consider the case when
the input state is a pure nonstabilizer product state, and show that a similar efficient algorithm exists to approx-
arXiv:1902.11257v1 [quant-ph] 28 Feb 2019
imate the output probabilities, when a suitable restriction is placed on the number of qubits measured. This
restriction depends on a magic monotone that we call the Pauli rank. We apply our results to give an efficient
output probability approximation algorithm for some restricted quantum computation models, such as Clifford
circuits with solely magic state inputs (CM), Pauli-based computation (PBC) and instantaneous quantum poly-
nomial time (IQP) circuits.
taries that maps Pauli operators to Pauli operators, that is, Corollary 2. Let C = C1 ◦ V be a quantum circuit with input
Cln = {U ∈ U(2n ) : UPU † ∈ Pn , ∀P ∈ Pn }. Stabilizer states states |0ih0|⊗n ⊗m i=1 ρi , where the gates in the circuit C1 are
are pure states of the form U |0i⊗n [18], where U is some Clif- taken from the set of Clifford gates on n + m qubits Cln+m and
ford unitary. (3)
V is taken from the third level of Clifford hierarchy Clm acting
Here, we consider Clifford circuits with product input states on n + 1, ..., n + m-th qubits. Assume that each each qubit is
|0ih0|⊗n ⊗mi=1 ρi , and measurements on k qubits. If either m or measured in the computational basis. Then, Theorem 1 stil
k is O(log n), the output probabilities can be efficiently sim- holds if we replace C in Theorem 1 with C defined above.
ulated classically by the Gottesman-Knill theorem [11, 17].
However, if both m and k are greater than O(log n), we show The key property we use here is that the gates in the third
that the output probability of such circuits can still be approx- level of the Clifford Hierarchy map Pauli operators to Clifford
imated efficiently with respect to the l1 norm for a large frac- unitaries, which makes the proof of Theorem 1 still hold. (See
(3)
tion of Clifford circuits. a discussion of this in Appendix A. ) Although Cln is not a
(3) (3)
|0!"0|
group, the diagonal gates in Cln , denoted as Cln,d , forms a
group [20, 21]. Since the T gate and CCZ gate both belong
|0!"0| (3)
..
. C
..
. to Cln,d , the result in Theorem 1 still holds for the quantum
ρ1 .. .. circuits C = C1 ◦ C2 where gates in C1 and C2 are chosen from
(3)
Cn+m and Clm,d respectively.
. .
ρm
Since noise is inevitable in real physical experiments, it is
FIG. 1. A circuit diagram of Clifford circuits with product state in- important to consider the effects of noise in quantum compu-
puts, which could be either pure or mixed. tation. Recently, it has been demonstrated that if there is some
noise on the random quantum gates [22] or measurements of
IQP circuits [23], then there exists an efficient classical sim-
ulation of the output distribution of quantum circuits. In the
rest of this subsection, we apply our results to two important
A. Mixed input states
subuniversal quantum circuits with noisy input states and give
an efficient classical approximation algorithm for the output
We first consider the case where all ρi are mixed states and probabilities of the corresponding quantum circuits.
give an efficient classical algorithm to approximate the output Example 1—First, we consider Clifford circuits with magic
probabilities. input states. It is well known that the Clifford + T gate set
Theorem 1. Given a Clifford circuit C on n + m qubits with |T !
input state |0ih0|⊗n ⊗m i=1 ρi and measurement on each qubit
in the computational basis, there exists a classical algorithm |T !
B. Pure nonstabilizer input states each ρi is a mixed state, and each |ψ j i is a pure nonsta-
bilizer state. Assume that measurements are performed on
As we can see, the running time in Theorem 1 blows up if k qubits in the computational basis, where k ≤ n + m1 +
the input state ρi is pure. Here, we consider the case where all m2 − ∑mj=12
log2 (χ (ψi )/2) and χ (ψi ) is the Pauli rank of ψi .
ρi are pure nonstabilizer states, that is Clifford gates with the Then, there exists a classical algorithm to approximate the
input state |0i⊗n ⊗m i=1 |ψi i. output probability with respect to √ the l1 norm δ in time
For pure states |ψ i, the stabilizer fidelity [27] is defined as (n + m1 + m2 )O(1) (m1 + m2 )O(log( α /δ )/ε ) for at least 1 − α2
follows fraction of Clifford circuits C, where ε = min { λ , µ } and
λ := mini λi , µ := min j µ (ψ j ).
F(ψ ) = max |hφ |ψ i|2 , (1)
|φ i
Now, let us apply our results to some restricted quantum
where the maximization is taken over all stabilizer states. computation models, such as Clifford circuits with solely
Here, we define magic state inputs (CM) and Pauli-based measurement (PBC),
µ (ψ ) := 2(1 − F(ψ )). (2) which gives an efficient simulation of O(n) measurement with
high probability.
It is easy to see that µ (ψ ) = 0 iff |ψ i is a stabilizer state. Example 3—Theorem 3 implies the following result: for
Thus, µ quantifies the distance between a given state to the Clifford circuit C with input states |T i⊗n and measurement on
set of stabilizer states. Since each |ψi i is not a stabilizer state, k qubits in computational basis with k ≤ (1 − log2 (3/2))n ≈
it follows that µ (ψi ) > 0. 0.415n, there exists a classical algorithm to approximate the
√ √
Next, let us introduce the Pauli rank for pure single qubit output probability up to l1 norm δ in time nO((2+ 2) log( α /δ ))
states |ψ i. First, we write a pure state |ψ i in terms of its Bloch for at least 1 − α2 fraction of Clifford circuits C, where
sphere representation |ψ ihψ | = 12 ∑s,t∈{ 0,1 } ψst X s Zt , where
µ (|T i) = 1 − √12 and χ (|T i) = 3. This may be contrasted
ψ00 = 1 and |ψ01 |2 + |ψ10 |2 + |ψ11 |2 = 1. We define the Pauli
with the hardness result ruling out efficient classical sampling
rank χ (ψ ) to be the number of nonzero coefficients ψst . By
from this class of circuits [13].
the definition of Pauli rank, it is easy to see that 2 ≤ χ (ψ ) ≤ 4,
Example 4—A Pauli-Based Computation (PBC) is defined
and that |ψ i is a stabilizer state iff χ (ψ ) = 2. Since each input
as a sequence of measurement of some Pauli operators Pi ∈ Pn ,
state |ψi i is a nonstabilizer state, it follows that χ (ψi ) = 3 or 4.
where the measurement outcome is (−1)σi with σi ∈ { 0, 1 }
For example, for the magic state |T i, the corresponding Pauli
and the Pauli operators { Pi } are commuting with each other.
rank χ = 3. For n-qubit systems, the Pauli rank serves as a
Here, the initial state is |T i (or |Hi = cos π8 |0i + sin π8 |1i,
good candidate for a magic monotone as it is easier to com-
which is equivalent to |T i up to Clifford unitary [31].).
pute than other magic monotones which require a minimiza-
After k steps, the probability of outcome P(σ1 , . . . , σk ) =
tion over all stabilizer states [28–30]. (See a discussion of
Pauli rank for n-qubit systems in Appendix D.) hT ⊗n | Π |T ⊗n i, where Π = 2−k ∏ki=1 (I + (−1)σi Pi ). Note that
PBC was considered in the fault-tolerant implementation of
Theorem 3. Given a Clifford circuit C on n + m qubits with quantum computation based on stabilizer codes, where the
input state |0i⊗n ⊗m i=1 |ψi i and measurements on k qubits in stabilizer codes provide a simple realization of nondestruc-
the computational basis with k ≤ n + m − ∑m i=1 log2 (χ (ψi )/2) tive Pauli measurements [32, 33]. Besides, it has been proved
and χ (ψi ) being the Pauli rank of ψi , there exists a classical that the quantum computation based on Clifford+T circuits
algorithm to approximate the √ output probability up to l1 norm can be simulated by PBC [31]. Thus, this implies that the
δ in time (n + m)O(1) mO(log( α /δ )/µ ) for at least a 1 − α2 frac- output probability P(σ1 , . . . , σk ) is #P-hard to simulate. It
tion of Clifford circuits C, where µ := mini µ (ψi ) and µ (ψi ) has been shown that any PBC on n qubits can be classi-
is defined as (2). cally simulated in 2cn poly(n) time with c ≈ 0.94 [31]. Here,
4
Theorem 3 implies that if the measurement steps k ≤ (1 − we introduced in this work can be regarded as a good candi-
log2 (3/2))n ≈ 0.415n, then there exists a classical algorithm date for a magic monotone. We showed that these two results
to approximate
√
the output probability up to l1 norm δ in time have several implications in other restricted quantum compu-
nO((2+ 2) log(1/δ )) for a large fraction of PBC. tation models such as Clifford circuits with magic input states,
Pauli-based computation and IQP circuits.
III. CONCLUSION
ACKNOWLEDGMENTS
In this work, we investigated the problem of evaluating the
output probabilities of Clifford circuits with nonstabilizer in-
put states. First, we provided an efficient classical algorithm K. B. thanks Xun Gao for introducing the tensor network
to approximate the output probability of the Clifford circuits representation of quantum circuits to him, and for fruitful dis-
with mixed input states and showed that the running time cussions related to this topic. K.B. acknowledges the Temple-
scales with the increase in the purity of input states. Second, ton Religion Trust for the partial support of this research un-
we showed that a modification of this algorithm gives an effi- der grants TRT0159 and Zhejiang University for the support
cient classical simulation for pure nonstabilizer states, under of an Academic Award for Outstanding Doctoral Candidates.
some restriction on the number of measured qubits that is de- D.E.K. is funded by EPiQC, an NSF Expedition in Comput-
termined by the Pauli rank of the input states. The Pauli rank ing, under grant CCF-1729369.
[1] P. W. Shor, FOCS 35, 124 (1994). [18] S. Aaronson and D. Gottesman,
[2] P. W. Shor, SIAM review 41, 303 (1999). Phys. Rev. A 70, 052328 (2004).
[3] J. Preskill, Quantum 2, 79 (2018). [19] D. Gottesman and I. L. Chuang, Nature 402, 390 (1999).
[4] J. Preskill, arXiv:1203.5813. [20] B. Zeng, X. Chen, and I. L. Chuang,
[5] A. W. Harrow and A. Montanaro, Nature 549, 203 (2017). Phys. Rev. A 77, 042313 (2008).
[6] S. Aaronson and A. Arkhipov, in Proceedings of the forty-third [21] S. X. Cui, D. Gottesman, and A. Krishna,
annual ACM symposium on Theory of computing (ACM, 2011) Phys. Rev. A 95, 012329 (2017).
pp. 333–342. [22] X. Gao and L. Duan, arXiv:1810.03176.
[7] E. Knill and R. Laflamme, Phys. Rev. Lett. 81, 5672 (1998). [23] M. J. Bremner, A. Montanaro, and D. J. Shepherd,
[8] K. Fujii, H. Kobayashi, T. Morimae, H. Nishimura, S. Tamate, Quantum 1, 8 (2017).
and S. Tani, Phys. Rev. Lett. 120, 200502 (2018). [24] G. Kuperberg, Theory of Computing 11, 183 (2015).
[9] M. J. Bremner, R. Jozsa, and D. J. Shepherd, [25] K. Fujii and T. Morimae,
Proc. Roy. Soc. London Ser. A 467, 459 (2010). New Journal of Physics 19, 033003 (2017).
[10] T. Morimae, Y. Takeuchi, and H. Nishimura, [26] D. Hangleiter, J. Bermejo-Vega, M. Schwarz, and J. Eisert,
Quantum 2, 106 (2018). Quantum 2, 65 (2018).
[11] R. Jozsa and M. Van den Nest, [27] S. Bravyi, D. Browne, P. Calpin, E. Campbell, D. Gosset, and
Quantum Information & Computation 14, 633 (2014). M. Howard, arXiv:1808.00128.
[12] D. E. Koh, Quantum Information & Computation 17, 0262 (2017). [28] S. Bravyi and D. Gosset, Phys. Rev. Lett. 116, 250501 (2016).
[13] M. Yoganathan, R. Jozsa, and S. Strelchuk, arXiv:1806.03200. [29] M. Howard and E. Campbell,
[14] S. Boixo, S. V. Isakov, V. N. Smelyanskiy, R. Babbush, N. Ding, Phys. Rev. Lett. 118, 090501 (2017).
Z. Jiang, M. J. Bremner, J. M. Martinis, and H. Neven, [30] V. Veitch, S. A. H. Mousavian, D. Gottesman, and J. Emerson,
Nature Physics 14, 595 (2018). New Journal of Physics 16, 013009 (2014).
[15] A. Bouland, B. Fefferman, C. Nirkhe, and U. Vazirani, [31] S. Bravyi, G. Smith, and J. A. Smolin,
Nature Physics , 1 (2018). Phys. Rev. X 6, 021043 (2016).
[16] A. Bouland, J. F. Fitzsimons, and D. E. Koh, in [32] D. Gottesman, Phys. Rev. A 57, 127 (1998).
33rd Computational Complexity Conference (CCC 2018), [33] A. M. Steane, Phys. Rev. Lett. 78, 2252 (1997).
Leibniz International Proceedings in Informatics (LIPIcs), Vol. [34] C. Dankert, R. Cleve, J. Emerson, and E. Livine,
102, edited by R. A. Servedio (Schloss Dagstuhl–Leibniz- Phys. Rev. A 80, 012304 (2009).
Zentrum fuer Informatik, Dagstuhl, Germany, 2018) pp. [35] T. Tao and V. H. Vu, Additive combinatorics, Vol. 105 (Cam-
21:1–21:25. bridge University Press, 2006).
[17] D. Gottesman, Group22: Proceedings of the XXII International [36] M. J. Bremner, A. Montanaro, and D. J. Shepherd,
Colloquium on Group Theoretical Methods in Physics , 32 Phys. Rev. Lett. 117, 080501 (2016).
(1999).
5
First, let us define the Fourier transformation on a single qubit state, inspired by [22]. Given a single qubit state ρ ∈ D(C2 ),
we can write it in terms of its Bloch sphere representation
1
ρ= (ρ00 I + ρ10 X + ρ01Z + ρ11XZ) , (A1)
2
where ρ00 = 1 and |ρ10 |2 + |ρ01|2 + |ρ11|2 ≤ 1.
Given a, b ∈ F2 , it is easy to verify that
1
X bZa ρ Za X b = ∑ (−1)sa+tbρst X s Zt . (A2)
2 s,t∈F
2
Hence, the output probability q(~y) = q~0,~0 (~y). Then, let us take the Fourier transformation with respect to ~a,~b and the correspond-
ing Fourier coefficient is
~
q̂~s,~t := E~s∈Fm ,~t∈Fm q~a,~b (~y)(−1)~s·~a+~t·b
2 2
†
= E~s∈Fm ,~t∈Fm h~y|U|0ih0|n ⊗ (⊗m bi ai ai bi
i=1 X Z ρi Z X )U |~yi
2 2
= h~y|U|0ih0|⊗n ⊗ (⊗m bi ai ai bi †
i=1 Eai ∈F2 ,bi ∈F2 X Z ρi Z X )U |~yi .
By equation (A3), we have
(i)
!
m ρsiti
⊗n si ti †
q̂~s,~t = h~y|U|0ih0| ⊗m
i=1 X Z U |~ yi · ∏ , (A6)
i=1 2
(i)
where ρsiti is the coefficient of ρi in the corresponding Bloch sphere representation. Since U is a Clifford unitary, then
n
I + Pi m
⊗n m si ti †
U|0ih0| ⊗i=1 X Z U = ∏ ∏ Q j,
i=1 2 j=1
where the Pauli operators Pi := UZiU † for 1 ≤ i ≤ n and Pj := UX s j Zt j U † for 1 ≤ j ≤ m and they are commuting with each
other. Thus, by Gottesman-Knill Theorem, the Fourier coefficients q̂~s,~t can be evaluated in classical O((n + m)3) time .
Since ρ is a mixed state in D(C2 ), it can always be written as ρ = (1 − λ )σ + λ2 I, where σ is a pure state and λ = 1 −
p
2 Tr [ρ 2 ] − 1. The pure state σ also has the Bloch sphere representation
1
σ= (σ00 I + σ10 X + σ01 Z + σ11 XZ) , (A7)
2
where σ00 = 1 and |σ10 |2 + |σ01 |2 + |σ11 |2 = 1. We have the following relationship between the coefficients ρst and σst for any
s,t ∈ F2 .
6
Lemma 5. Given a mixed state ρ = (1 − λ )σ + λ2 I, where ρ , σ has Bloch sphere representation given by (A1) and (A7)
respectively, then we have
Each mixed input state ρi can be written as ρi = (1 − λi )σi + λ2i I where σi is a pure state. Consider the quantum circuit with
input state |0ih0|⊗n ⊗m
i=1 σi and Clifford unitary U, the output probability p(~
y) is equal to
p(~y) = h~y|U|0ih0|⊗n ⊗m †
i=1 σiU |~
yi . (A10)
~
Similar to q(~y), we insert X b Z~a into the circuit and define p~a,~b as follows
(i)
where σsiti is the coefficient of σi in the corresponding Bloch sphere representation. By Lemma 5, it is easy to see that
The following lemma regarding Clifford unitaries on n qubits is necessary the proof,
Lemma 6 ([34]). The uniform distribution of Clifford unitaries on n qubits is an exact 2-design, that is, for any A, B,W , we have
Z
EU∼C ln U † AUWU † BU = dU U † AUWU † BU, (A15)
U(2n )
1
where EU∼C ln := |C ln | ∑U∼C ln and
~
which gives an family of unnormalized probability distribution { q′ ~ }as q′ ~ (~y) = ∑~s,~t q̂~′s,~t (~y)(−1)~s·~a+~t·b for each output~y ∈ Fn+m
2
~a,b ~a,b
Then we show that q~′0,~0 (~y) gives a good approximation of q~0,~0 (~y) with respect to l1 norm
′
q~0,~0 − q~0,~0
= ∑n+m |q~′0,~0(~y) − q~0,~0(~y)|
1
~y∈F2
for a large fraction of Clifford circuits. First, since q̂~s,~t (~y) depends on the Clifford unitaries U, denote it as q̂~s,~t (~y)[U], then it is
easy to show that
~
q̂~s,~t (~y)[U](−1)~a·~s+b·~t = q̂~s,~t (~y)[U ′ ], (A18)
~ ~a ~b
where U ′ = U ◦ Z~a X b is also a Clifford unitary for any ~a,~b ∈ Fm
2 and Z X act on the n + 1, . . ., n + mth qubits. Thus
2
2
2
EU∼C ln+m
q~′0,~0 − q~0,~0
= EU∼C ln+m
q~′a,~b − q~a,~b
= EU∼C ln+m E~a∈Fm ,~b∈Fm
q~′a,~b − q~a,~b
. (A19)
1 1 2 2 1
Moreover,
2
E~a∈Fm ,~b∈Fm
q~′a,~b − q~a,~b
≤ E~a∈Fm ,~b∈Fm 2n+m ∑n+m(q~a′ ,~b (~y) − q~a,~b (~y))2
2 2 1 2 2
~y∈F2
=2 n+m
∑n+m m∑ (q̂~′s,~t (~y) − q̂~s,~t (~y))2
~y∈F2 ~s∈F2 ,~t∈Fm
2
≤2 n+m
(1 − λ )2l ∑n+m ∑ p̂~2s,~t (~y)
~y∈F2 w(~s,~t)≥l
2l
≤2 n+m
(1 − λ ) ∑n+m m∑ p̂~2s,~t (~y)
~y∈F2 ~s∈F2 ,~t∈Fm
2
2l
=2 n+m
(1 − λ ) ∑n+m E~a∈Fm2 ,~b∈Fm2 p~2a,~b (~y), (A20)
~y∈F2
where the first line comes from the Cauchy-Schwarz inequality, the third line comes from the Parseval identity, and the fourth
line comes from the fact that |q̂~s,~t (~y)| ≤ (1 − λ )w(~s,~t) | p̂~s,~t (~y)|. According to Lemma 6, we have
Thus
2
EU∼C ln+m
q~′0,~0 − q~0,~0
≤ 2e−λ l .
1
Now, let us consider the quantum circuit C = C1 ◦V with input state |0ih0|⊗n ⊗m i=1 ρi and the gates in circuits C1 taken from the
(3)
set of Clifford gates on n qubits Cln+m and V is taken from the third level of Clifford hierarchy Clm acting on n + 1, . . ., (n + m)th
8
qubits. The proof of Corollary 2 is almost the same as that of Theorem 1. We only need to show the corresponding Fourier
coefficients of q~a,~b also can be evaluated in O((n + m)3) time, where
~ ~
q~a,~b (~y) = h~y|UV |0ih0|⊗n ⊗ (X bZ~a ⊗m ~a b † †
yi = h~y|UV |0ih0|⊗n ⊗ (⊗m
i=1 ρi Z X )V U |~
bi ai ai bi † †
i=1 X Z ρi Z X )U V |~yi . (A21)
(3)
and V ∈ Clm ,U ∈ Cln+m . Then the Fourier coefficient q̂~s,~t (~y) is equal to
(i)
!
m ρsiti
⊗n si ti † †
q̂~s,~t = h~y|UV |0ih0| ⊗m
i=1 X Z V U |~ yi · ∏ . (A22)
i=1 2
(3) si ti †
Since V ∈ Clm , then V ⊗m
i=1 X Z V ∈ Clm . Thus,
(i)
!
m ρsiti
⊗n ′
q̂~s,~t = h~y|U|0ih0| U |~yi · ∏ .
i=1 2
where U,U ′ = V ⊗m si ti † †
i=1 X Z V U are both Clifford unitaries. Thus, the Fourier coefficient q̂~s,~t can also be evaluated in O((n +
3
m) ) time by Gottesman-Knill Theorem. Therefore, it is easy to prove Corollary 2 by following the proof of Theorem 1.
Appendix B: Efficient classical simualtion of IQP circuits with noisy input states
Proposition 7. Given an IQP circuit H ⊗n DH ⊗n with the diagonal unitaries chosen from the gate set {CZ, Z, S, T }, if there is
depolarizing nosie acting on each input state, i.e., input state is ((1 − ε )|0ih0| + ε2√I)⊗n , then there exists an efficient classical
algorithm to approximate the output probabilities up to l1 norm δ in time nO(log( α /δ )/ε ) for at least 1 − α2 fraction of IQP
circuits.
Proof. The proof is similar to that of Theorem 1. If the state ρ has some specific form as ρ = 12 (ρ0 I + ρ1 Z), then we can simplify
the Fourier transformation (A3) as
1
Ea∈F2 X a ρ X a (−1)as = ρs Z s . (B1)
2
Given an IQP circuit H ⊗n DH ⊗ with noisy input states ρ ⊗n , ρ = (1 − ε )|0ih0| + ε 2I , and gates in D chosen from the gate set
{CZ, Z, S, T }, then the output probability q(~y) is equal to
q(~y) = h~y| H ⊗n DH ⊗n ρ ⊗n H ⊗n DH ⊗n |~yi . (B2)
Similar to the proof of Theorem 1, we insert X~a into the circuits for any ~a ∈ Fn2 and define q~a (~y) as follows
where the diagonal part D can be written as D′ ◦ ⊗ni=1 T γi with γi ∈ F2 and the gates in D′ chosen from the gate set {CZ, Z, S }. It
is easy to verify that
π
T γi X si T −γi = e−i 4 γi si Sγi si X si , (B6)
for any γi , si ∈ { 0, 1 }. That is, DH ⊗n ⊗i Z si H ⊗n D† is a Clifford circuit. Thus, each Fourier coefficient can be evaluated in O(n3 )
by Gottesman-Knill Theorem.
We also consider the same IQP circuits with input states |0ih0|⊗n , then output probability p(~y) =
h~y| H ⊗n DH ⊗n |0ih0|⊗n H ⊗n DH ⊗n |~yi. Similarly, we insert the operator X~a as follows
p~a (~y) = h~y| H ⊗n DH ⊗n X~a |0ih0|⊗n X~a H ⊗n DH ⊗n |~yi . (B7)
And the corresponding Fourier coefficient is
p̂~s (~y) := E~a∈Fn2 p~a (~y) = h~y| H ⊗n DH ⊗n ⊗i Z si H ⊗n DH ⊗n |~yi · 2−n. (B8)
Comparing (B4) with (B8), we have the following relation
q̂~s (~y) = (1 − ε )|~s| p̂~s (~y), (B9)
where |~s| = ∑i si is the Hamming weight of ~s ∈ Fn2 .
Let us define
(
q̂~′s (~y), |~s| ≤ l
q̂~′s (~y) = , (B10)
0, otherwise
which gives an family of unnormalized probability distribution { q~a′ }as q~a′ (~y) = ∑~s q̂~′s (~y)(−1)~s·~a for each output~y ∈ Fn2 . Then we
will show that q~0′ (~y) gives a good approximation of q~0 (~y) with respect to l1 norm
′
q~0 − q~0
= ∑ |q~′0 (~y) − q~0 (~y)|
1
~y∈Fn2
for a large fraction of IQP circuits. We denote Dn to be the set of of diagonal part of IQP circuits where the diagonal gates are
chosen from {CZ, Z, S, T }. Since q̂~s (~y) depends on the IQP circuits, denote it as q̂~s,~t (~y)[D], then it is easy to verify that
And
2
E~a∈Fn2
q~′a − q~a
1 ≤ E~a∈Fn2 2n ∑n(q~′a (~y) − q~a(~y))2
~y∈F2
=2 n
∑n E~a∈Fn2 (q~′a(~y) − q~a(~y))2
~y∈F2
=2 n
∑ ∑ (q̂~′s (~y) − q̂~s(~y))2
~y∈Fn2 ~s∈Fn2
where the first line comes from the Cauchy-Schwarz inequality, the third line comes from Parvesal identity, and the fourth line
comes from the fact that q̂~s (~y) = (1 − ε )|~s| p̂~s (~y). According to Lemma 8 in Appendix C, we have
Thus, we have
2
ED∼Dn
q~′0 − q~0
≤ 2e−2ε l .
1
Here we consider IQP circuits, which can be represented by H ⊗n DH ⊗n |0i⊗n , where the gates in the diagonal part D are
chosen from the gate set {CZ, Z, S, T }. Then the output distribution is p(~y) = | h~y| H ⊗n DH ⊗n |0i⊗n |2 = | fˆ(~y)|2 for any ~y ∈ Fn2 ,
where fˆ(~y) = 21n ∑~x∈Fn2 f (~x)(−1)~y·~x and the function f can be expressed as
where αi j , βi , γi ,ti ∈ F2 , denote the number of CZ between ith and jth qubits, Z gate on ith qubit, S gate on ith gate and T gate on
ith gate. Since T 2 = S, S2 = Z and Z 2 = I, then there are at most one T , S, Z gate on each qubit respectively. Thus, ~β ,~γ ,~t ∈ Fn2
and the Hamming weight |~β |, |~γ |, |~t| is the number of Z, S and T gates in the IQP circiut.
In fact, the function f can be rewritten as follows
~
f (~x) = (−1)β ·~x i~xA~x eiπ /4~t·~x , (C2)
where Aii = γi and Ai j = A ji = αi j for i 6= j. That is, the matrix A is a symmetric 0 − 1 matrix.
Now, let us introduce the Gowers uniformity norm here. Let G be a finite additive group and f : G → C and an integer d ≥ 1.
Then the Gowers uniformity norm k f kU d (G) [35] is defined as
d
k f kU2 d (G) = Eh1 ,..,hd ,x∈G ∆h1 ...∆hd f (x), (C3)
where ∆h f (x) := f (x + h) f (x). Here we take G = Fn2 and the Fourier transformation for f : Fn2 → C is defined as fˆ(~y) =
E~x∈Fn2 f (x)(−1)~x·~y , where E~x∈Fn2 := 21n ∑~x∈Fn2 . One important property of Gowers uniformity norm, which we will use in the
following section to demonstrate the distribution of IQP circuits, is the following equality [35]
For IQP circuits with diagonal gates chosen from {CZ, Z,CCZ } randomly, it has been proved that the average value of the
second moment of output probability satisfies that ∑~y p2D (~y) ≤ α 2−n , where α is some constant [36]. Here, we consider the case
where the gates in the diagonal part D are chosen uniformly, i.e., P(αi j=1 ) = P(βi = 1) = P(γi = 1) = P(ti = 1) = 1/2, then we
can give the exact value of average value of the second moment of the output probability of random IQP circuits.
Lemma 8. Given an IQP circuit, if the gates in the diagonal part D can be chosen uniformly, then
~
For the function f (~x) = (−1)β ·~x i~xA~x eiπ /4~t·~x , the Gowers uniformity norm k f kU 2 (Fn ) can be expressed as follows
2
11
k f kU4 2 (Fn ) = E~a,~b,~x∈Fn f (~x ⊕~a ⊕~b) f (~x) f (~x ⊕~a) f (~x ⊕~b)
2 2
~
= E~a,~b,~x∈Fn i2~aAb eiπ /4 ∑i ti [(xi ⊕ai ⊕bi )+xi −(xi ⊕ai )−(xi ⊕bi )]
2
~
= E~a,~b,~x∈Fn (−1)~aAb eiπ /4 ∑i ti [(xi ⊕ai ⊕bi )+xi −(xi ⊕ai )−(xi ⊕bi )]
2
~
= E~a,~b∈Fn (−1)~aAb E~x∈Fn2 eiπ /4 ∑i ti [(xi ⊕ai ⊕bi )+xi −(xi ⊕ai )−(xi ⊕bi )]
2
n
~
= E~a,~b∈Fn (−1)~aAb ∏ Exi ∈F2 eiπ /4ti [(xi ⊕ai ⊕bi )+xi −(xi ⊕ai )−(xi ⊕bi )] .
2
i=1
The expected value of ∑~y∈Fn2 p2D (~y) over the random IQP circuits is
ED ∑ p2D (~y)
~y∈Fn2
= ED k fD kU4 2 (Fn )
2
n
1 + (−1)ti ai bi
~aA~b
= E{ αi j ,βi ,γi ,ti } E~a,~b∈Fn (−1)
2
∏ 2
i=1
n
1 + (−1)ti ai bi
~aA~b
= E~a,~b∈Fn E{ αi j ,βi ,γi ,ti } (−1) ∏
2
i=1 2
1 + (−1)aib j +bi a j n 1 + (−1)aibi 3 + (−1)aibi
= E~a,~b∈Fn ∏ ∏ .
2
i< j 2 i=1 2 4
Since
(
1 + (−1)ai,bi 0, (ai , bi ) = (1, 1)
= ,
2 1, otherwise
(
1 + (−1)(ai+a j )(bi +b j ) 0, (ai , bi , a j , b j ) = (1, 0, 0, 1), (0, 1, 1, 0)
= .
2 1, otherwise
Thus,
" #
1 + (−1)(ai+a j )(bi +b j )
∑ ∏ = ∑ 1 + ∑ 1 − 1 = 2n+1 − 1.
2
×ni=1 (ai ,bi )∈{ (0,0),(0,1),(1,0)}×n i< j ×ni=1 (ai ,bi )∈{ (0,0),(0,1)}×n ×ni=1 (ai ,bi )∈{ (0,0),(10)}×n
12
1 n+1
ED ∑ p2D (s) = [2 − 1].
s 4n
Besides, based on the Gowers uniformity norm, we can also give an approximation of the second moment for any IQP circuit.
Proposition 9. Given an IQP circuit with the diagonal gates chosen from {CZ, Z, S, T }, then the output probability of this
circuit satisfies the following property,
where the constant c = log 43 > 0, A(~t) is the matrix obtained from A by removing the rows and columns i such that ti = 1 and
Rank(A(~t)) denotes the rank of the matrix A(~t) in F2 . Moreover, if ~t = 0, i.e., there is no T gate, then
n
1 + (−1)tiai bi
2 ˆ 4 4 ~aA~b
∑ p (~y) = ∑n | f (~s)| = k f kU 2 (Fn2) = E~a,~b∈Fn2 (−1) ∏ 2
.
~y∈Fn
2 ~s∈F 2
i=1
~
Thus, we need estimate the Gower uniform norm k f kU 2 (Fn ) for the phase polynomial f (~x) = (−1)β ·~x i~xA~x eiπ /4~t·~x by the Hamming
2
weight |~t| and the rank of the symmetric matrix A.
Without loss of generality, we assume the first k = |~t| qubits have T gates, i.e., t1 = . . . = tk = 1, and the remaining qubits do
not have T gate, then we can decompose the symmetric matrix A as follows
Ak,k Ak,n−k
A= ,
An−k,k An−k,n−k
where Ak,k is an k × k symmetric matrix, An−k,n−k is an (n − k) × (n − k) symmetric matrix and An−k,k = Atk,n−k . Similarly, we
also decompose the vectors ~a,~b as
~b
~ak
~a = ,~b = ~ k ,
~an−k bn−k
" #
k
~aA~b 1 + (−1)aibi
k f kU4 2 (Fn ) = E~a,~b∈Fn (−1) ∏
2 2
i=1 2
" #
k
~ak Ak,k~bk 1 + (−1)aibi ~ ~ ~
= E~a ,~b ∈Fk (−1) ∏ E~a ,~b ∈Fn−k (−1)~an−k An−k,n−k bn−k +~ak Ak,n−k bn−k +~an−k An−k,k bk .
k k 2
i=1 2 n−k n−k 2
Since
(
1 + (−1)ai,bi 0, (ai , bi ) = (1, 1)
= , (C10)
2 1, otherwise
13
then
" #
k ai bi
~ 1 + (−1) ~ ~ ~
E~ak ,~bk ∈Fk (−1)~ak Ak,k bk ∏ E~a ,~b ∈Fn−k (−1)~an−k An−k,n−k bn−k +~ak Ak,n−k bn−k +~an−k An−k,k bk
2
i=1 2 n−k n−k 2
1 ~ak Ak,k~bk ~an−k An−k,n−k~bn−k +~ak Ak,n−k~bn−k +~an−k An−k,k~bk
= k
∑ (−1) E~a ,~b ∈Fn−k (−1)
4 k n−k n−k 2
k
×i=1 (ai ,bi )∈{ (0,0),(0,1),(1,0)}
1
~ ~ ~
≤ ∑ E~an−k ,~bn−k (−1)~an−k An−k,n−k bn−k +~ak Ak,n−k bn−k +~an−k An−k,k bk
4k
×ki=1 (ai ,bi )∈{ (0,0),(0,1),(1,0)}k
k
3
~ ~
≤ max E~a ,~b ∈Fn−k (−1)~an−k An−k,n−k bn−k +~x·bn−k +~y·~an−k .
4 ~x,~y∈Fn−k
2
n−k n−k 2
where c = log 34 .
Moreover, if ~t = 0, then
~ Ker(A)
k f kU4 2 (Fn ) = E~a∈Fn2 E~b∈Fn (−1)~aAb = E~a∈Fn2 δA~a,~0 = = 2−Rank(A) .
2 2 2n
1. Proof of Theorem 3
Lemma 10. For any pure state |ψ i in D(C2 ), the stabilizer fidelity can be expressed as
1
F(ψ ) = 1 + max | hψ | P |ψ i | . (D1)
2 P∈{ X,Y,Z }
Proof. This follows directly from the fact the single-qubit stabilizer states are the eigenstates of X,Y, Z, that is, the stabilizer
states have the form |φ ihφ | = I±P
2 , where P ∈ { X,Y, Z }.
µ (ψ ) = 1 − max | hψ | P |ψ i |. (D2)
P∈{ X,Y,Z }
14
Now, let us begin the proof of Theorem 3. Since |ψ i has the Bloch sphere representation as |ψ ihψ | = 21 ∑s,t∈F2 ψst X s Zt , it is
easy to see that
|ψst | ≤ 1 − µ (ψ ). (D3)
for any (s,t) 6= (0, 0).
Without loss of generality, we assume the first k qubits are measured as the swap gate belongs to Cln+m . Then the output
probability is
q(~y) = Tr U|0ih0|⊗n ⊗m †
i=1 |ψi ihψi |U |~
yih~y| ⊗ In+m−k , (D4)
~
for any ~y ∈ Fk2 , where In+m−k denotes the identity on the k + 1, ..., (n + m)th qubits. Let us insert the Pauli operator X b Z~a into the
circuit and the corresponding output probability
h i
~ ~a ~b
q~a,~b (~y) = Tr U|0ih0|⊗n ⊗ (X bZ~a ⊗m
i=1 | ψ i ihψ i |Z X )U †
|~
yih~
y| ⊗ In+m−k . (D5)
Now let us define the reference Hermitian operator with respect to ψ as follows
1
O(ψ ) := (I + sgn(|ψ10 |)X + sgn(|ψ01 |)Z + sgn(|ψ11 |)iXZ), (D7)
2
where the function sgn is defined as sgn(x) = 1 if x > 0, sgn(x) = 0 if x = 0. It is easy to verify that Tr [O(ψ )] = 1, Tr O(ψ )2 =
χ (ψ )
2 , where χ (ψ ) is the Pauli rank of ψ . Besides, we have
where each Oi is the reference Hermitian operator with respect to ψi defined as (D7) and the corresponding Fourier coefficient is
m O(i)
!
~s·~a+~t·~b ⊗n m si ti † siti
ô~s,~t (~y) = E~a∈Fm ,~b∈Fm o~a,~b (~y)(−1) = Tr U|0ih0| ⊗i=1 X Z U |~yih~y| ⊗ In+m−k ∏ . (D11)
2 2
i=1 2
~
which gives a family of unnormalized probability distribution { q′ ~ }as q′ ~ (~y) = ∑~s,~t q̂~′s,~t (~y)(−1)~s·~a+~t·b for each output ~y ∈ Fk2
~a,b ~a,b
Similar to the proof of Theorem 1, we show that q~′0,~0 (~y) gives a good approximation of q~0,~0 (~y) with respect to l1 norm for a large
fraction of Clifford circuits.
It is easy to verify that the equations (A18) and (A19) still hold, and we can repeat the process of inequality (A20) and obtain
the following inequality
2
E~a∈Fm ,~b∈Fm
q~′a,~b − q~a,~b
≤ 2k (1 − µ )2l ∑ E~a∈Fm ,~b∈Fm o~a2,~b (~y).
2 2 1 2 2
~y∈Fk2
15
At the end of this section, let us introduce several basic properties of Pauli rank. For any pure state |ψ i on n qubits, we have
the Bloch sphere representation
1
|ψ ihψ | = ∑ n ψ~s,~t X~sZ~t ,
2n ~s,~t∈F
2
where ψ~0,~0 = 1 and ∑(~s,~t)6=(~0,~0) |ψ~s,~t |2 = 2n − 1. The Pauli rank is defined as the number of nonvanishing coefficients ψ~s,~t , that is,
χ (ψ ) := | { (~s,~t) ∈ F2n
2 | ψ~s,~t 6= 0 } |. (D14)
Then we have the following property for the Pauli rank.
Proposition 11. Given an n-qubit pure state |ψ i, we have
(i) 2n ≤ χ (ψ ) ≤ 4n , χ (ψ ) = 2n iff ψ is a stabilizer state.
(ii) χ (ψ1 ⊗ ψ2 ) = χ (ψ1 )χ (ψ2 ).
Proof. (i) 2n ≤ χ (ψ ) ≤ 4n follows directly from the definition. We only need prove χ (ψ ) = 2n iff ψ is a stabilizer state. In the
backward direction, if ψ is a stabilizer state, then it can be written as |ψ ihψ | = ∏ni=1 I+P n
2 , where Pi ∈ P and Pi are commuting
i
n n
with each other. Thus, the Pauli rank of |ψ i is 2 . In the forward direction, if χ (ψ ) = 2 , then it can be represented as
n
|ψ ihψ | = 21n ∑2i=1 Pi where P1 = I, each Pi ∈ Pn , and Pi , Pj are not equivalent in the sense that Tr [Pi Pj ] = 0 for any i 6= j. First,
we show that Pi Pj = Pj Pi for any i, j. Otherwise, there exists i0 , j0 such that Pi0 Pj0 = −Pj0 Pi0 . Since ψ is a pure state, then
n 2n n
1 2 1 1 2 nk
|ψ ihψ | = |ψ ihψ |2 =
4n i,∑ ∑ ∑ 2n Pk ,
Pi Pj = n Pi Pj = (D15)
j=1 4 i, j=1, 2n k=1
{ i, j }6={ i0 , j0 }
where the third inequality comes from the fact that Pi0 Pj0 = −Pj0 Pi0 . Since each Pi Pj is equal to ici jk Pk for some k and nk is the
summation the these phases ici jk , thus
2n
∑ |nk | ≤ | { (i, j) | 1 ≤ i, j ≤ 2n, { i, j } 6= { i0 , j0 } } | = 4n − 2. (D16)
k=1
|nk |
Then there is some k0 such that |nk0 | ≤ 2n − 1, i.e., 2n0 < 1, which contradicts with the representation of ψ . Thus, Pi are
n
commuting with each other. Next, we prove that this set of { Pi }2i=1 can be generated by some subset S up to ± sign. For
16
any Pi not equal to identity, e.g., P2 , then there exists U1 ∈ Cln such that U1 P2U1† = Z ⊗ In−1 , and for any i, U1 PiU1† must
have the form Z ai ⊗ Pi,n−1 , where Pi,n−1 ∈ Pn−1 and they are commuting with each other. The generating set S = { Z ⊗ In−1 }.
For some Pi,n−1 not equal to identity, e.g., Z a3 ⊗ P3,n−1, there exists U2 ∈ Cln−1 such that U2U1 P3U1†U2† = Z a3 ⊗ Z ⊗ In−2 , and
U2U1 PiU1†U2† = Z ai ⊗ Z ⊗ Pi,n−2 . Then the generating set is updated to S = { Z ⊗ In−1, Z a3 ⊗ Z ⊗ In−2 }. Let us repeat the above
process for another n − 2 times, finially we will get some generating set S = { gi }ni=1 , where gi = Z ci,1 ⊗ . . . ⊗ Z ci,i−1 ⊗ Z ⊗ In−i .
Moreover, the remaining Pauli operators must have the form ± ⊗ni=1 Z ai , which can be generated by the generating set S up to ±
sign. That is, there is a Clifford unitary map U that maps |ψ ihψ | to another pure state |ψ ′ ihψ ′ | = 21n ∑~a∈Fn2 c|~a| Z~a where c|~a| = ±1,
|~a| := ∑i ai 2i−1 and c0 = 1. Repeating the argument (D15) and (D16) for the pure state |ψ ′ ihψ ′ |, we have c|~a| = ∏ni=1 ca2ii−1 . Thus
I+c Zi
|ψ ′ ihψ ′ | = ∏ni=1 22i−1 where Zi denotes the Pauli Z operator acting on the ith qubit. Therefore ψ is a stabilizer state.
(ii) This property follows directly from the definition.
Based on the above proposition and the fact that the Pauli rank is invariant under conjugation by Clifford unitaries, it is easy
to see that the Pauli rank is a good candidate to quantify the magic in a state. Here, using the Pauli rank as a magic monotone is
advantageous because it is easier to compute than previous magic monotones [28–30], which typically involve a minimization
over all stabilizer states.