Simulating the wavefunction of a system of fermions, such as in electronic structure problems in chemistry and material sciences, is one of the most promising applications of quantum computers. Once the fermion wavefunction is prepared on a quantum device, this wavefunction may be characterized in order to evaluate its properties, such as energy, density, and other many-body correlations.
In the case where the wavefunction ρ has particle number symmetry, meaning that the number of fermions η occupying n modes is fixed, the properties of the wavefunction are observables O that may be expressed as linear combinations of number-conserving k-Reduced Density Matrices (k-RDMs) D{right arrow over (q)}{right arrow over (p)}.
In the above equation, each k-RDM may be expressed as a product of k fermion creation operators and k fermion annihilation operators:
The fermion creation and annihilation operators satisfy the standard anti-commutation relations:
In the above definition of D{right arrow over (q)}{right arrow over (p)}, the vectors {right arrow over (p)}, {right arrow over (q)} represent which modes are occupied by fermions. The integer elements of these vectors may be listed in ascending order, such that {right arrow over (p)}∈n,η≐{(z1, . . . , zη): ∀j∈[η], 1≤zj<zj+1≤n}. In addition, the number operator for the fermion system is given by {circumflex over (n)}j=aj†aj.
Any observable then has the following form:
for some k and complex coefficients o{right arrow over (q)}{right arrow over (p)} For example, dipole moment and electron density are characterized by k=1, the electric structure Hamiltonian by k=2, the effective nuclear Hamiltonian by k=3, and the overlap with a single Slater determinant by k=η. Note that some observables may be linear combination of different k, but the equation for O is without loss of generality as the case of fixed particle number allows up-folding of any k-RDM to a sum of (k+1)-RDMs through the following identity:
Note that it suffices to consider at most k≤η, and RDMs with k>η are automatically zero.
According to one aspect of the present disclosure, a computing device is provided, including one or more processing devices configured to receive a plurality of classical shadow measurement results associated with a fermion wavefunction. The fermion wavefunction may describe a plurality of fermions in a particle-number-conserving fermion system that occupy a plurality of modes. The one or more processing devices may be further configured to compute an estimated k-reduced density matrix (k-RDM), where k is a number of ladder operator pairs. Computing the estimated k-RDM may include computing, as terms of the estimated k-RDM, a plurality of traces of respective products of a number operator of the particle-number-conserving fermion system, a single-particle basis rotation matrix dependent upon the classical shadow measurement result, a plurality of elementary symmetric polynomials of a plurality of Majorana bivectors respectively associated with the plurality of fermions, and a conjugate transpose of the single-particle basis rotation matrix. Computing each of the traces may include iteratively computing a plurality of derivatives of a Pfaffian. The one or more processing devices may be further configured to output the estimated k-RDM.
This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter. Furthermore, the claimed subject matter is not limited to implementations that solve any or all disadvantages noted in any part of this disclosure.
There exist prior protocols to evaluate all k-RDMs of a fermion system to some target error, or standard deviation, ϵ. These protocols include forming ρ, measuring it in some basis, and computing a noisy estimate of the k-RDMs from the measurement outcome. Such protocols may be made more efficient by minimizing the number of copies of ρ needed to achieve the target error ϵ. In the case where there is no particle symmetry, roughly
measurements of the quantum state suffice. This expression for the sample efficiency has an explicit dependence on the number of modes but not the number of particles.
One prior protocol exploits particle number symmetry to estimate all number-conserving k-RDMs with a sample complexity of roughly
that depends only on the number of fermions. This increase in sample complexity is substantial, as there are many natural applications where η«n, such as in simulating dynamical correlations or in a plane-wave representation of electronic structure. Although the estimator in this protocol is computationally efficient on a classical computer, it may still be impractical, requiring (n5) time to compute a single estimate of a single k-RDM. This
(n5) time complexity may be a bottleneck for large-scale estimation considering that the electronic structure Hamiltonian already has
(n4) RDMs in general. In addition, other applications such as unbiasing fermionic Monte Carlo may utilize millions of new estimates in every run.
{circumflex over (D)}{right arrow over (q)}{right arrow over (p)}
is computed according to the prior protocol. The computing system 10 depicted in
As shown in the example of
The one or more processing devices 22 are configured to compute the estimated k-RDMs {circumflex over (D)}{right arrow over (q)}{right arrow over (p)}
as expectation values of a k-RDM operator {circumflex over (D)}{right arrow over (q)}{right arrow over (p)}. In the previous protocol, the expectation values
{circumflex over (D)}{right arrow over (q)}{right arrow over (p)}
of the k-RDM operators {circumflex over (D)}{right arrow over (q)}{right arrow over (p)} are estimated using classical shadow measurement results |{right arrow over (z)}
. These classical shadow measurement results |{right arrow over (z)}
may be measured as observables of a rotated fermion wavefunction obtained by applying a sampling rotation U(uH) to the fermion wavefunction ρ. The sampling rotation U(uH) is a rotation in a single-particle basis. Given a unitary matrix uH sampled from the n×n Haar random distribution on the unitary group Un, the sampling rotation U(uH) may be defined as rotating each creation operator ak† to a linear combination of other creation operators as follows:
The rotated fermion wavefunction may be given by UρU†. The sampling rotations U(uH) also have, within the η-particle subspace, matrix elements given by the following:
where ∧ is the exterior product and u{right arrow over (x)},{right arrow over (y)} denotes the submatrix formed by taking rows x1, x2, . . . and columns y1, y2, . . . of uH.
The quantum state of the rotated fermion wavefunction UρU† may be measured in the computational basis to obtain a classical shadow measurement result |{right arrow over (z)}, as discussed above. The classical shadow measurement result |{right arrow over (z)}
may be obtained with the following probability:
A permutation matrix that maps elements of {right arrow over (z)} to [η] may be defined as v{right arrow over (z)}∈n×n. Using this permutation matrix, a classical shadow may be computed as v=v{right arrow over (z)}UH.
Subsequently to computing the classical shadow v, an estimated k-RDM {circumflex over (D)}{right arrow over (q)}{right arrow over (p)}
may be computed from the classical shadow v using the following formula:
The above equation for k-RDM {circumflex over (D)}{right arrow over (q)}{right arrow over (p)}
a involves matrix multiplication of dimension
matrices and is therefore inefficient for large values of k.
The previous protocol also includes a method of computing {circumflex over (D)}{right arrow over (q)}{right arrow over (p)}
or any k. Hermitian combinations of k-RDMs may be defined as follows:
Any Hermitian k-RDM D{right arrow over (q;ϕ)}{right arrow over (p)} is a linear combination of at most two diagonal k-RDMs. For example, when {right arrow over (p)}=[k] and {right arrow over (q)}=[2k]\[k]=(k+1 . . . 2k), then:
where ω(ϕ) is a phase matrix defined as:
and where I{right arrow over (x)}=Σj∈{right arrow over (x)}|j)j|. Accordingly, D{right arrow over (q;ϕ)}{right arrow over (p)} is a rotation of D{right arrow over (q)}{right arrow over (p)} in the complex plane.
Any rotated k-RDM D{right arrow over (q;ϕ)}{right arrow over (p)} may then be obtained by multiplying ω with a permutation that maps [k] to {right arrow over (p)} and [2k]\[k] to {right arrow over (q)}. The case where {right arrow over (p)} and {right arrow over (q)} have k′ elements not in common is treated analogously by the replacement ({circumflex over (n)}[k]−{circumflex over (n)}[2k]\[k])→({circumflex over (n)}[k]−{circumflex over (n)}[2k]\[k]){circumflex over (n)}[2k+k′]\[k′], since U(ω)aj†U(ω)†=aj† acts as an identity on fermion operators with subscripts j>2k. In the above expressions, {circumflex over (n)}[k]={circumflex over (n)}1 . . . {circumflex over (n)}k. Using this replacement, any k-RDM may be expressed as a linear combination of at most four diagonal estimated k-RDMs D[k][k] conjugated by single-particle basis rotations U(ωj),
where the ωj are permutations of the sparse matrix ω(ϕ).
In the previous protocol, the estimator for any k-RDM may be computed by combining the above equation for D{right arrow over (q)}{right arrow over (p)} with an alternate expression for {circumflex over (D)}{right arrow over (q)}{right arrow over (p)}
given by the following formula:
The trace may be computed over the k-particle subspace, such that:
where Πk projects onto the k-particle subspace. βj in the equation for Simk,s(Π[η]) is a Majorana bivector, as discussed below. In the above equations, ej are elementary symmetric polynomials. The elementary symmetric polynomials of degree k in d commuting variables are defined as follows:
In addition, any element of the matrix product ωj†v may be computed using (1) arithmetic operations without matrix multiplication, since ω(ϕ) is sparse and ωj† is ω(ϕ) times some permutation.
Systems and methods of computing the estimated k-RDM {circumflex over (D)}{right arrow over (q)}{right arrow over (p)}
with higher computational efficiency are provided below.
{circumflex over (D)}{right arrow over (q)}{right arrow over (p)}
of a k-RDM operator {circumflex over (D)}{right arrow over (q)}{right arrow over (p)} according to this more efficient approach. From each measurement of the quantum state, the following systems and methods allow any k-RDM to be estimated in
(k2η) time. This increase in efficiency is particularly significant in examples in which k-RDM estimates are computed a large number of times.
The one or more processing devices 22 of the classical computing device 20 are configured to receive a plurality of classical shadow measurement results |{right arrow over (z)} associated with a fermion wavefunction ρ, as in the previous approach. The fermion wavefunction ρ describes a plurality of fermions 14 in a particle-number-conserving fermion system 30 that occupy a plurality of modes 16. The number of fermions is given by η and the number of modes 16 is given by n. Using the classical shadow measurement results |{right arrow over (z)}
, the one or more processing devices 22 are further configured to compute an estimated k-RDM
{circumflex over (D)}{right arrow over (q)}{right arrow over (p)}
, where k is a number of ladder operator pairs (pairs of fermion creation and annihilation operators) that are used to define the k-RDM. The estimated k-RDM
{circumflex over (D)}{right arrow over (q)}{right arrow over (p)}
may, as in the previous approach, be computed as an expectation value of a k-RDM operator {circumflex over (D)}{right arrow over (q)}{right arrow over (p)}.
In the following discussion of the higher-efficiency approach to computing estimated k-RDMs {circumflex over (D)}{right arrow over (q)}{right arrow over (p)}
the Majorana fermion representation γp of regular fermions is used. The Majorana representation γp has the following properties:
In the above equations, αp is an annihilation operator, αp† a creation operator, {circumflex over (n)}j is a number operator, and βj is a Majorana bivector. Thus, the one or more processing devices 22 are configured to compute the plurality of Majorana bivectors βj as products of pairs of Majorana representations γp of the fermions 14.
For each of the classical shadow measurement results |{right arrow over (z)}, the computation of the estimated k-RDM
{circumflex over (D)}{right arrow over (q)}{right arrow over (p)}
may utilize a single-particle basis rotation matrix U(ωj†v) that is dependent upon the classical shadow measurement result |{right arrow over (z)}
, as discussed in further detail below. When computing terms of the estimated k-RDM, the one or more processing devices 22 may be configured to compute the single-particle basis rotation matrix U(ωj†v) implicitly, as discussed below. Accordingly, the one or more processing devices 22 may avoid having to explicitly compute the single-particle basis rotation matrix, which may have a size of
For each of the plurality of classical shadow measurement results |{right arrow over (z)}, the one or more processing devices 22 may be configured to compute a permutation matrix v{right arrow over (z)}∈
n×n that maps elements of the classical shadow measurement result |{right arrow over (z)}
to the fermions 14 included in the particle-number-conserving fermion system 30. In addition, the one or more processing devices 22 may be further configured to sample a unitary matrix uH from a Haar random distribution. As in the previous approach shown in
When generating each of the classical shadow measurement results |{right arrow over (z)}, the one or more processing devices 22 may be further configured to utilize a sampling rotation matrix U(uH) that encodes a rotation by the unitary matrix uH. The one or more processing devices 22 may be further configured to sample each of the classical shadow measurement results |{right arrow over (z)}
based at least in part on the fermion wavefunction ρ and on the sampling rotation matrix U(uH). Since the sampling rotation matrix U(uH) may have a size of
the one or more processing devices 22 may be configured to compute the sampling rotation matrix U(uH) implicitly when computing the classical shadow measurement results |{right arrow over (z)} rather than explicitly computing the sampling rotation matrix U(uH). When the classical shadow measurement results |{right arrow over (z)}
are sampled, as shown in
are sampled. Although the example of
results from a quantum computing device 12, the fermion wavefunction ρ may instead be simulated at a classical analog simulator in other examples.
The one or more processing devices 22 may be further configured to compute the classical shadow v as a product of the permutation matrix v{right arrow over (z)} and the unitary matrix uH, such that v=V{right arrow over (z)}uH. The classical shadows v may accordingly be computed as discussed above with reference to the previous approach.
The one or more processing devices 22 may be further configured to compute a rotated unitary matrix ωj†v as a product of a phase matrix ωj† and the classical shadow v. The phase matrix ωj† in this example is the conjugate transpose of the phase matrix ω(ϕ) discussed above. Accordingly, in this example, the one or more processing devices 22 are further configured to compute the phase matrix ωj† based at least in part on the number of ladder operator pairs k, the total number of modes n, and a randomly selected phase angle ϕ.
The single-particle basis rotation matrix U(ωj†v) encodes a rotation by the rotated unitary matrix ωj†V. In the following discussion, ωj†v is indicated as u, such that the single-particle basis rotation matrix U(ωj†v) is represented as U(u). In the Majorana representation, the single-particle basis rotation matrix U(u) rotates Majorana operators to other linear combination of Majorana operators:
The matrices in the above equation for ũ may be indicated as follows:
Using the indexing γp,x=γ2p+x−1, the consistency of the Majorana representation with the above definition of the single-particle basis rotation may be verified as follows:
Given a real orthogonal matrix R∈2n, the fermion operator γp and the single-particle basis rotation matrix U(R) associated with the real orthogonal matrix R satisfy the following property:
where Rp,q are coefficients of the terms of the rotated fermion operator UγpU†.
Computing the estimated k-RDM includes computing a plurality of traces as terms of the estimated k-RDM {circumflex over (D)}{right arrow over (q)}{right arrow over (p)}
. The terms
Uk(u){circumflex over (D)}[k][k]Uk†(u)
of the estimated k-RDM
{circumflex over (D)}{right arrow over (q)}{right arrow over (p)}
, (where the notation is simplified by absorbing ωj into u) are linear combinations of the traces of various degrees of elementary symmetric polynomials of Majorana bivectors:
with some coefficients αn,η,k,j. Accordingly, the traces computed as terms of the estimated k-RDM are computed as traces of respective products of a number operator {circumflex over (n)}[k] of the particle-number-conserving fermion system 30, the single-particle basis rotation matrix Uk(u), the plurality of elementary symmetric polynomials ej of a plurality of Majorana bivectors βj respectively associated with the plurality of fermions 14, and the conjugate transpose Uk†(u) of the single-particle basis rotation matrix Uk (u). The plurality of elementary symmetric polynomials ej of the plurality of Majorana bivectors βj may include the elementary symmetric polynomials with integer degrees j=0, . . . , η.
As discussed above, the estimated k-RDM {circumflex over (D)}{right arrow over (q)}{right arrow over (p)}
may be computed as a sum of four or fewer terms
Uk(u){circumflex over (D)}[k][k]Uk†(u)
with corresponding coefficients. The speedup in the computation of the terms
Uk(u){circumflex over (D)}[k][k]Uk†(u)
arises from a faster method for computing traces of the following form:
concurrently for each of the elementary symmetric polynomials j=0, . . . , η of the Majorana bivectors βj. Once the traces are computed, each term Uk(u){circumflex over (D)}[k][k]Uk†(u)
may be obtained by computing an appropriate linear combination of the traces.
Uk(u){circumflex over (D)}[k][k]Uk†(u)
. The one or more processing devices 22, as shown in the example of
Uk(u){circumflex over (D)}[k][k]Uk†(u)
, as discussed in further detail below.
The inner product Trk[{circumflex over (n)}[k]U(u)ej(β1, . . . , βη)U†(u)] may be inferred from (n) calculations of fermionic linear optics. Fermionic linear optics is related to the strong simulability of matchgate circuits and non-interacting fermion distributions and is known to be possible in polynomial time
(poly(n)). However, the approach discussed below is significantly faster.
Given any real anti-symmetric matrix M, which has block-diagonal form
the fermionic gaussian may be defined as follows:
The trace of two products of fermionic gaussians evaluates to a Pfaffian as follows:
In a first step performed when computing the trace Trk[{circumflex over (n)}[k]U(u)ej(β1, . . . , βη)U†(u)], the inner product {circumflex over (n)}[k]U(u)ej(β1, . . . , βη)U†(u) in the above expression may be converted into an evaluation of at most 72 fermionic linear optics expressions Tr[ρ(M)ρ(K)] for some M and K. In a second step, the η fermionic linear optics expressions may be evaluated in a combined manner to obtain the value of the trace.
In the first step, any operator X, the trace Trk [{circumflex over (n)}[k]X]=Trk [ρkX] over k particles is equal to the trace over all particles times a fermionic gaussian ρk. An invertible matrix ∧ may be defined as follows:
where I[k] is an identity matrix with k rows and columns. From the definition of the fermionic gaussian,
which implies
The use of a fermionic gaussian in the above identity is a significant simplification over the previous approach, which instead inserted a generic projector Πk onto the k-particle subspace as Trk[{circumflex over (n)}[k]X]=Tr[Πk{circumflex over (n)}[k]X]. In contrast, in the current approach, Trk[{circumflex over (n)}[k]X]=Tr[ΠkX].
The fermionic gaussian itself is a generating function for the elementary symmetric polynomials:
Thus, the following fermonic gaussian is a linear combination of the elementary symmetric polynomials ej (β1, . . . , βη):
A single evaluation of
is therefore equal to a linear combination of the traces Trk[{circumflex over (n)}[k]U(u)ej(β1, . . . , βη)U†(u)]. Evaluating Tr[ρkUk(u)ρη(κ)Uk†(u)] on (n) different values of κ then provides enough information to compute all the traces Trk[Π[k]U(v)ej({circumflex over (n)}1, . . . , {circumflex over (n)}η)U†(v)], e.g., by polynomial interpolation.
In the second step, rather than computing the traces Trk [{circumflex over (n)}[k]U(u)ej (β1, . . . , βη)U†(u)] via polynomial interpolation, a faster approach may instead be used. The traces may be expressed as Pfaffians of appropriately defined matrices:
Thus, the Pfaffian used to compute the traces is a Pfaffian of an intermediate matrix A(κ), which the one or more processing devices 22 are configured to compute based at least in part on the rotated unitary matrix ωj†v, the total number η of the plurality of fermions 14, the total number n of the plurality of modes 16, and the number of ladder operator pairs k.
Computing each of the traces includes iteratively computing a plurality of derivatives of the Pfaffian Pf[A]. By taking high-order derivatives with respect to K, the traces corresponding to specific elementary symmetric polynomials may be isolated. For example, the following derivative may be computed:
Accordingly, the trace may be computed for each of the elementary symmetric polynomials ej for j=0, . . . , η. The one or more processing devices 22 may be configured to compute the derivatives of the Pfaffian Pf[A] with integer orders x=1, . . . , η.
An efficient method of computing the derivatives the Pfaffian Pf[A(K)] is provided below. The derivatives of a Pfaffian in general are given by:
For the intermediate matrix A discussed above, the derivatives are:
This recursive computation allows the one or more processing devices 22 to compute higher-order derivatives from lower-order derivatives. Assuming that all the traces Tr[(A−1(I,[η]⊗Y))j]|κ=0 have been computed, the recursive computation of each of the derivatives ∀x∈[η], ∂κxPf(A)|κ=0 may be performed in (η2) time.
The one or more processing devices 22 are further configured to compute the traces included in the above equation for the derivatives ∂κxPf(A) of the Pfaffian. As a base case for the intermediate matrix,
Hence, the trace is given by:
The trace Tr[(A−1(I[η]⊗Y))j]|κ=0 may be computed at least in part by computing each of the eigenvalues of (Λ⊗Y)(ũI[n]⊗YũT).
Computing eigenvalues of a 2n×2n matrix has a time complexity of (nω) and enables straightforward computation of the trace. Such an approach may be used in the non-particle-conserving case. However, when particle number is conserved, the above computation of the trace may be reduced to finding the eigenvalues of an even smaller 2k×2k matrix. Using the identity Λ=2I[k]−I[n], the trace may be computed as follows:
The following identities may be used to simplify the computation of the above trace:
In addition,
Using the above identities, the binomial expansion, and the cyclic property of the trace, Tr[(A−1(I[η]⊗Y))j]|κ=0 may be computed as follows:
A matrix M within the trace in the above equation may be defined as:
The matrix M is non-zero on only a 2k×2k block. M may be rewritten as M=m·mT, where
is a 2k×2η submatrix of . Thus, M may be obtained by matrix multiplication of a 2k×2η matrix with a 2η×2k matrix, which has a time complexity of
(k2ηα) for some matrix multiplication exponent α≤1.
Subsequently to computing the matrix M, the one or more processing devices 22 may be further configured to compute each of the nonzero eigenvalues of M with a time complexity of (kω). The one or more processing devices 22 may be further configured to compute each of the powers of the eigenvalues of M (such as by repeated squaring) in
(ηk) multiplications, thereby allowing each of the traces Tr[My] for y∈[η] to be computed with an overall time complexity of
(k2ηα+kω+ηk). Using a cubic-time algorithm for matrix multiplication, the traces Tr[My] may be computed with a time complexity of
(k2η), which is dominated by the time spent forming M.
Once the traces Tr[My] have been computed, the one or more processing devices 22 may be further configured to recursively compute the traces Tr [(A−1(I[η]⊗Y))j]|k=0 for j∈[η] with a time complexity of (η2). Accordingly, computing the derivatives ∂kxPf(A) of the Pfaffian may have an overall time complexity of
(η2+k2η). The computation of the derivatives of the Pfaffian may be the highest-time-complexity step of the k-RDM estimation. Accordingly, the one or more processing devices 22 may be configured to compute the estimated k-RDM with a time complexity of
(η2+k2η).
Subsequently to computing the estimated k-RDM {circumflex over (D)}{right arrow over (q)}{right arrow over (p)}
, the one or more processing devices 22 are further configured to output the estimated k-RDM
{circumflex over (D)}{right arrow over (q)}{right arrow over (p)}
to an additional computing process. At the additional computing process, the one or more processing devices 22 may be further configured to estimate an observable O of the fermion wavefunction based at least in part on the estimated k-RDM
{circumflex over (D)}{right arrow over (q)}{right arrow over (p)}
. The one or more processing devices 22 may, for example, be configured to compute the estimated observable Ô as a linear combination of a plurality of estimated k-RDMs
{circumflex over (D)}{right arrow over (q)}{right arrow over (p)}
.
The steps of the method 100 shown in
At step 102, the method 100 includes receiving a plurality of classical shadow measurement results associated with a fermion wavefunction. The fermion wavefunction describes a plurality of fermions in a particle-number-conserving fermion system that occupy a plurality of modes.
At step 104, the method 100 further includes computing an estimated k-reduced density matrix (k-RDM), where k is a number of ladder operator pairs. Each of the ladder operator pairs includes a fermion creation operator and a fermion annihilation operator.
Step 104 includes step 106, which is performed for each of the classical shadow measurement results. At step 106, computing the estimated k-RDM further includes computing, as terms of the estimated k-RDM, a plurality of traces of respective products of: a number operator of the particle-number-conserving fermion system, a single-particle basis rotation matrix, a plurality of elementary symmetric polynomials of a plurality of Majorana bivectors respectively associated with the plurality of fermions, and a conjugate transpose of the single-particle basis rotation matrix. The single-particle basis rotation matrix is dependent upon the classical shadow measurement result, although the single-particle basis rotation matrix is not explicitly computed in the example of
At step 110, the method 100 further includes outputting the estimated k-RDM. The estimated k-RDM may be output to an additional computing process at which one or more estimated values of an observable are computed using the estimated k-RDM. For example, the additional computing process may be a quantum chemistry simulation program. The observable may, for example, be an energy, a density, a dipole moment, or some other observable of the fermion system. Observables of the particle-number-conserving fermion system may be expressed as linear combinations of k-RDMs.
At step 116, step 112 may further include sampling the classical shadow measurement result from a rotated fermion wavefunction. The rotated fermion wavefunction may be computed based at least in part on the fermion wavefunction and on a sampling rotation matrix that encodes a rotation by the unitary matrix. The plurality of classical shadow measurement results may be received from the quantum computing device, at which the rotated fermion wavefunction may be prepared. The rotated fermion wavefunction may be a product of the sampling rotation matrix, the fermion wavefunction, and a conjugate transpose of the sampling rotation matrix. The classical shadow measurement results may be sampled without explicitly computing the sampling rotation matrix, which may be inefficient to compute.
At step 118, for each of the classical shadow measurement results, the method 100 may further include computing a permutation matrix that maps elements of the classical shadow measurement result to the fermions included in the particle-number-conserving fermion system. The method 100 may further include, at step 120, computing a classical shadow as a product of the permutation matrix and the unitary matrix.
At step 122, the method 100 may further include computing a rotated unitary matrix as a product of a phase matrix and the classical shadow. The single-particle basis rotation matrix may encode a rotation by the rotated unitary matrix. The phase matrix may be computed based at least in part on the number of ladder operator pairs, the total number of modes, and a randomly selected phase angle. Accordingly, the single-particle basis rotation matrix used when computing the k-RDM depends upon the classical shadow.
In examples in which the steps of (η2+k2η), where η is a total number of the plurality of fermions. This time complexity represents a significant speedup over the
(n5) time complexity of prior approaches to k-RDM estimation.
In some embodiments, the methods and processes described herein may be tied to a computing system of one or more computing devices. In particular, such methods and processes may be implemented as a computer-application program or service, an application-programming interface (API), a library, and/or other computer-program product.
Computing system 200 includes a logic processor 202 volatile memory 204, and a non-volatile storage device 206. Computing system 200 may optionally include a display subsystem 208, input subsystem 210, communication subsystem 212, and/or other components not shown in
Logic processor 202 includes one or more physical devices configured to execute instructions. For example, the logic processor may be configured to execute instructions that are part of one or more applications, programs, routines, libraries, objects, components, data structures, or other logical constructs. Such instructions may be implemented to perform a task, implement a data type, transform the state of one or more components, achieve a technical effect, or otherwise arrive at a desired result.
The logic processor may include one or more physical processors configured to execute software instructions. Additionally or alternatively, the logic processor may include one or more hardware logic circuits or firmware devices configured to execute hardware-implemented logic or firmware instructions. Processors of the logic processor 202 may be single-core or multi-core, and the instructions executed thereon may be configured for sequential, parallel, and/or distributed processing. Individual components of the logic processor optionally may be distributed among two or more separate devices, which may be remotely located and/or configured for coordinated processing. Aspects of the logic processor may be virtualized and executed by remotely accessible, networked computing devices configured in a cloud-computing configuration. In such a case, these virtualized aspects are run on different physical logic processors of various different machines, it will be understood.
Non-volatile storage device 206 includes one or more physical devices configured to hold instructions executable by the logic processors to implement the methods and processes described herein. When such methods and processes are implemented, the state of non-volatile storage device 206 may be transformed—e.g., to hold different data.
Non-volatile storage device 206 may include physical devices that are removable and/or built-in. Non-volatile storage device 206 may include optical memory, semiconductor memory, and/or magnetic memory, or other mass storage device technology. Non-volatile storage device 206 may include nonvolatile, dynamic, static, read/write, read-only, sequential-access, location-addressable, file-addressable, and/or content-addressable devices. It will be appreciated that non-volatile storage device 206 is configured to hold instructions even when power is cut to the non-volatile storage device 206.
Volatile memory 204 may include physical devices that include random access memory. Volatile memory 204 is typically utilized by logic processor 202 to temporarily store information during processing of software instructions. It will be appreciated that volatile memory 204 typically does not continue to store instructions when power is cut to the volatile memory 204.
Aspects of logic processor 202, volatile memory 204, and non-volatile storage device 206 may be integrated together into one or more hardware-logic components. Such hardware-logic components may include field-programmable gate arrays (FPGAs), program- and application-specific integrated circuits (PASIC/ASICs), program- and application-specific standard products (PSSP/ASSPs), system-on-a-chip (SOC), and complex programmable logic devices (CPLDs), for example.
The terms “module,” “program,” and “engine” may be used to describe an aspect of computing system 200 typically implemented in software by a processor to perform a particular function using portions of volatile memory, which function involves transformative processing that specially configures the processor to perform the function. Thus, a module, program, or engine may be instantiated via logic processor 202 executing instructions held by non-volatile storage device 206, using portions of volatile memory 204. It will be understood that different modules, programs, and/or engines may be instantiated from the same application, service, code block, object, library, routine, API, function, etc. Likewise, the same module, program, and/or engine may be instantiated by different applications, services, code blocks, objects, routines, APIs, functions, etc. The terms “module,” “program,” and “engine” may encompass individual or groups of executable files, data files, libraries, drivers, scripts, database records, etc.
When included, display subsystem 208 may be used to present a visual representation of data held by non-volatile storage device 206. The visual representation may take the form of a graphical user interface (GUI). As the herein described methods and processes change the data held by the non-volatile storage device, and thus transform the state of the non-volatile storage device, the state of display subsystem 208 may likewise be transformed to visually represent changes in the underlying data. Display subsystem 208 may include one or more display devices utilizing virtually any type of technology. Such display devices may be combined with logic processor 202, volatile memory 204, and/or non-volatile storage device 206 in a shared enclosure, or such display devices may be peripheral display devices.
When included, input subsystem 210 may comprise or interface with one or more user-input devices such as a keyboard, mouse, touch screen, or game controller. In some embodiments, the input subsystem may comprise or interface with selected natural user input (NUI) componentry. Such componentry may be integrated or peripheral, and the transduction and/or processing of input actions may be handled on- or off-board. Example NUI componentry may include a microphone for speech and/or voice recognition; an infrared, color, stereoscopic, and/or depth camera for machine vision and/or gesture recognition; a head tracker, eye tracker, accelerometer, and/or gyroscope for motion detection and/or intent recognition; as well as electric-field sensing componentry for assessing brain activity; and/or any other suitable sensor.
When included, communication subsystem 212 may be configured to communicatively couple various computing devices described herein with each other, and with other devices. Communication subsystem 212 may include wired and/or wireless communication devices compatible with one or more different communication protocols. As non-limiting examples, the communication subsystem may be configured for communication via a wireless telephone network, or a wired or wireless local- or wide-area network. In some embodiments, the communication subsystem may allow computing system 200 to send and/or receive messages to and/or from other devices via a network such as the Internet.
The following paragraphs provide additional support for the claims of the subject application. According to one aspect, a computing device is provided, comprising one or more processing devices configured to receive a plurality of classical shadow measurement results associated with a fermion wavefunction, wherein the fermion wavefunction describes a plurality of fermions in a particle-number-conserving fermion system that occupy a plurality of modes. The one or more processing devices are further configured to compute an estimated k-reduced density matrix (k-RDM), where k is a number of ladder operator pairs, at least in part by, for each of the classical shadow measurement results, computing, as terms of the estimated k-RDM, a plurality of traces of respective products of: (1) a number operator of the particle-number-conserving fermion system; a single-particle basis rotation matrix dependent upon the classical shadow measurement result; (2) a plurality of elementary symmetric polynomials of a plurality of Majorana bivectors respectively associated with the plurality of fermions; and (3) a conjugate transpose of the single-particle basis rotation matrix, wherein computing each of the traces includes iteratively computing a plurality of derivatives of a Pfaffian. The one or more processors are further configured to output the estimated k-RDM.
In this aspect, the one or more processing devices can be configured to receive the plurality of classical shadow measurement results from a quantum computing device.
In this aspect, the one or more processing devices can be further configured to generate the plurality of classical shadow measurement results at least in part by, for each of the classical shadow measurement results: sampling a unitary matrix from a Haar random distribution; and sampling the classical shadow measurement result from a rotated fermion wavefunction, wherein the rotated fermion wavefunction is computed based at least in part on the fermion wavefunction and on a sampling rotation matrix that encodes a rotation by the unitary matrix.
In this aspect, for each of the plurality of classical shadow measurement results, the one or more processing devices can be further configured to: compute a permutation matrix that maps elements of the classical shadow measurement result to the fermions included in the particle-number-conserving fermion system; and compute a classical shadow as a product of the permutation matrix and the unitary matrix. Further in this aspect, the one or more processing devices can be further configured to compute a rotated unitary matrix as a product of a phase matrix and the classical shadow, wherein the single-particle basis rotation matrix encodes a rotation by the rotated unitary matrix. Further in this aspect, the Pfaffian can be a Pfaffian of an intermediate matrix; and the one or more processing devices can be configured to compute the intermediate matrix based at least in part on the rotated unitary matrix, a total number of the plurality of fermions, a total number of the plurality of modes, and the number of ladder operator pairs. Still further in this aspect, the one or more processing devices can be further configured to compute the phase matrix based at least in part on the number of ladder operator pairs, the total number of modes, and a randomly selected phase angle.
In this aspect, the one or more processing devices can be further configured to compute the plurality of Majorana bivectors as products of pairs of Majorana representations of the fermions.
In this aspect, the plurality of elementary symmetric polynomials of the plurality of Majorana bivectors can include the elementary symmetric polynomials with integer degrees from zero to the number of fermions.
In this aspect, the one or more processing devices can be configured to compute the derivatives of the Pfaffian with integer orders from one to the number of fermions.
In this aspect, the one or more processing devices can be configured to compute the estimated k-RDM with a time complexity of (η2+k2η), where η is a total number of the plurality of fermions.
In this aspect, the one or more processing devices can be further configured to estimate an observable of the fermion wavefunction based at least in part on the estimated k-RDM.
According to another aspect, a method for use with a computing device is provided, the method comprising: receiving a plurality of classical shadow measurement results associated with a fermion wavefunction, wherein the fermion wavefunction describes a plurality of fermions in a particle-number-conserving fermion system that occupy a plurality of modes. The method further comprises computing an estimated k-reduced density matrix (k-RDM), where k is a number of ladder operator pairs, at least in part by, for each of the classical shadow measurement results, computing, as terms of the estimated k-RDM, a plurality of traces of respective products of: (1) a number operator of the particle-number-conserving fermion system; (2) a single-particle basis rotation matrix dependent upon the classical shadow measurement result; (3) a plurality of elementary symmetric polynomials of a plurality of Majorana bivectors respectively associated with the plurality of fermions; and (4) a conjugate transpose of the single-particle basis rotation matrix. Each of the traces includes iteratively computing a plurality of derivatives of a Pfaffian. The method further comprises outputting the estimated k-RDM.
In this aspect, the plurality of classical shadow measurement results can be received from a quantum computing device.
In this aspect, the method can further comprise generating the plurality of classical shadow measurement results at least in part by, for each of the classical shadow measurement results: sampling a unitary matrix from a Haar random distribution; and sampling the classical shadow measurement result from a rotated fermion wavefunction, wherein the rotated fermion wavefunction is computed based at least in part on the fermion wavefunction and on a sampling rotation matrix that encodes a rotation by the unitary matrix.
In this aspect, the method can further comprise, for each of the classical shadow measurement results: computing a permutation matrix that maps elements of the classical shadow measurement result to the fermions included in the particle-number-conserving fermion system; and computing a classical shadow as a product of the permutation matrix and the unitary matrix.
In this aspect, the method can further comprise computing a rotated unitary matrix as a product of a phase matrix and the classical shadow, wherein the single-particle basis rotation matrix encodes a rotation by the rotated unitary matrix. Further in this aspect, the Pfaffian can be a Pfaffian of an intermediate matrix; and the method can further include computing the intermediate matrix based at least in part on the rotated unitary matrix, a total number of the plurality of fermions, a total number of the plurality of modes, and the number of ladder operator pairs.
In this aspect, the estimated k-RDM can be computed with a time complexity of (η2+k2η), where η is a total number of the plurality of fermions.
According to another aspect, a computing system is provided, comprising a quantum computing device and a classical computing device. The quantum computing device is configured to: prepare a fermion wavefunction, wherein the fermion wavefunction describes a plurality of fermions in a particle-number-conserving fermion system that occupy a plurality of modes; and measure a plurality of classical shadow measurement results associated with the fermion wavefunction. The classical computing device includes one or more processing devices configured to: receive the plurality of classical shadow measurement results; and compute an estimated k-reduced density matrix (k-RDM), where k is a number of ladder operator pairs. The estimated k-RDM can be computed at least in part by, for each of the classical shadow measurement results, computing, as terms of the estimated k-RDM, a plurality of traces of respective products of: (1) a number operator of the particle-number-conserving fermion system; (2) a single-particle basis rotation matrix dependent upon the classical shadow measurement result; (3) a plurality of elementary symmetric polynomials of a plurality of Majorana bivectors respectively associated with the plurality of fermions; and a conjugate transpose of the single-particle basis rotation matrix, wherein computing each of the traces includes iteratively computing a plurality of derivatives of a Pfaffian. The one or more processing devices are further configured to output the estimated k-RDM.
It will be understood that the configurations and/or approaches described herein are exemplary in nature, and that these specific embodiments or examples are not to be considered in a limiting sense, because numerous variations are possible. The specific routines or methods described herein may represent one or more of any number of processing strategies. As such, various acts illustrated and/or described may be performed in the sequence illustrated and/or described, in other sequences, in parallel, or omitted. Likewise, the order of the above-described processes may be changed.
The subject matter of the present disclosure includes all novel and non-obvious combinations and sub-combinations of the various processes, systems and configurations, and other features, functions, acts, and/or properties disclosed herein, as well as any and all equivalents thereof.