The disclosure pertains to quantum circuit synthesis.
Quantum circuit synthesis typically involves complex number-theoretic computations. A set of quantum gates is selected to serve as a basis, and various basis-specific approaches are used to synthesize a target unitary in the selected basis. Some methods for bases such as the Clifford+T basis, the V-basis, and the Fibonacci anyon basis are available, but these methods are limited to a single basis. In addition, for some bases, it is unclear how to synthesize a target unitary, or if such a synthesis is possible. Synthesized circuits are often based on approximate unitaries that correspond to the target unitary within a specified precision, so that the target unitary is synthesized based on exactly synthesizable unitaries. Unfortunately, conventional synthesis methods are limited in the available selection of bases, and synthesis methods applicable to arbitrary bases are needed.
Quantum circuit synthesis methods based on a predetermined single-qubit gate set include determining an initial projective gate set (PGS) associated with the single-qubit gate set. A set of elements of a quaternion algebra related to the PGS is determined, and in some cases, the associated quaternion algebra and elements of the quaternion algebra are established. Based on a maximal order and a set of ideals associated with the quaternion algebra, a final projective gate set (PGS*) is determined. A target unitary is mapped to a set of unitaries that are exactly representable based on PGS*, and based on a PGS/PGS* mapping, the target unitary is synthesized in the single-qubit gate set. Various single-qubit gate sets such as the Clifford+T gates, the V-gates, and the Fibonacci gates can be used. In some cases, target unitaries are approximated using exactly synthesizable unitaries defined by the final projective gate set that are then mapped into the single-qubit gate set.
As used in this application and in the claims, the singular forms “a,” “an,” and “the” include the plural forms unless the context clearly dictates otherwise. Additionally, the term “includes” means “comprises.” Further, the term “coupled” does not exclude the presence of intermediate elements between the coupled items.
The systems, apparatus, and methods described herein should not be construed as limiting in any way. Instead, the present disclosure is directed toward all novel and non-obvious features and aspects of the various disclosed embodiments, alone and in various combinations and sub-combinations with one another. The disclosed systems, methods, and apparatus are not limited to any specific aspect or feature or combinations thereof, nor do the disclosed systems, methods, and apparatus require that any one or more specific advantages be present or problems be solved. Any theories of operation are to facilitate explanation, but the disclosed systems, methods, and apparatus are not limited to such theories of operation.
Although the operations of some of the disclosed methods are described in a particular, sequential order for convenient presentation, it should be understood that this manner of description encompasses rearrangement, unless a particular ordering is required by specific language set forth below. For example, operations described sequentially may in some cases be rearranged or performed concurrently. Moreover, for the sake of simplicity, the attached figures may not show the various ways in which the disclosed systems, methods, and apparatus can be used in conjunction with other systems, methods, and apparatus. Additionally, the description sometimes uses terms like “produce” and “provide” to describe the disclosed methods. These terms are high-level abstractions of the actual operations that are performed. The actual operations that correspond to these terms will vary depending on the particular implementation and are readily discernible by one of ordinary skill in the art.
In some examples, values, procedures, or apparatus are referred to as “lowest”, “best”, “minimum,” or the like. It will be appreciated that such descriptions are intended to indicate that a selection among many used functional alternatives can be made, and such selections need not be better, smaller, or otherwise preferable to other selections.
As used herein, ζn is an nth root of unity. Sets are generally denoted in boldface text, without italics, and in some cases, as so-called blackboard bold. For example, the set of integers can be noted as or Z. The Pauli gates are represented as
and the identity gate is I. In the description of circuit synthesis, gate and gate set descriptions or specifications are sometimes referred to as gates or gate sets for convenience.
Quantum circuit synthesis requires representation of an arbitrary unitary in a basis set of available gates. For some unitaries, exact syntheses may be unavailable, and approximate syntheses are used. In addition, some quantum circuits are defined as repeat-until-success (RUS) circuits in which a selected computation result is obtained only in some instances. The disclosed methods and apparatus pertain to factoring unitaries using a selected basis (and possibly as RUS designs) and embedding them into a quaternion algebra A. A unitary is rescaled such that a corresponding quaternion q defines an integral and primitive right ideal I of maximal order M of A. The right ideal I is factored into a product of maximal primitive ideals, and products of maximal primitive ideals are combined into principal ideals. The quaternion q can be represented as a product of generators of principal ideals qk and units uk as u0q1u1 . . . qm-1um-1qmum. Each uk,qk is mapped to a unitary matrix or product of such matrices. If A is definite, the generators of the unit group of M are computed. If A is indefinite, generators can be obtained if A is split at a unique real place so that the unit group is a Fuchsian group. Typically, if the generators of the principal ideals qk are known to belong to a finite set G, the factorization of unitaries can be found.
The disclosed methods and apparatus are suitable for a variety of gate sets, including gate sets corresponding to SU (2)k, the V-basis, unitaries over rings such as [½,ζ8,1/p1,1/p2] or [½,ζ16,1/p1,1/p2], or gate sets such as described in Forest et al., “Exact synthesis of single-qubit unitaries over Clifford-cyclotomic gate sets,” arXiv:1501.04944 (January 2015). Note that the Clifford group coincides with matrices over [½,ζ4], ignoring a global phase. The disclosed methods typically involve finding a special description of exactly synthesizable matrices over a single-qubit quantum gate set, or a larger single-qubit quantum gate set that includes an original single-qubit quantum gate set and admits the special description of exactly synthesizable matrices. A correspondence between a projective gate set (PGS) and a single-qubit quantum gate set (GS) is determined. Several heuristics are provided that allow determination of an equivalent projective gate set suitable for a given quantum gate set. These can be based on CM fields that cover a wide class of number fields including cyclotomic number fields. In particular, heuristics for gate sets related to su(2) level k anyons and unitary matrices over the ring [1/p,ζn] for a rational prime p are provided. The correspondences take into account the irrelevance of global phase of unitary matrices in quantum computing applications. Number fields used for particular gate sets can be simplified by dealing with normalization factors in a particular way.
Representative methods determine correspondences between projective gate sets and elements of quaternion algebra. Some particular examples show detailed correspondences of selected quaternion algebras and single-qubit gates. Maximal orders of quaternion algebras related to projective gate sets are determined using several approaches, and sets of ideals corresponding to projective gate sets are established. A set of ideals describing a selected gate set can be found algorithmically given a maximal order and mapping from the gate set to a quaternion algebra. Upon finding a projective gate set defined by a maximal order and a set of ideals, a search method is applied to evaluate whether a new gate set is equivalent to the original gate set or only includes the original gate set as a subset. Exact synthesis methods define an exact decomposition of any unitary matrix using the associated maximal order, ideal, and quaternion algebra, typically based on syntheses over a projective gate set. Given a maximal order, a set of ideals, and correspondences between a single-qubit gate and a projective gate set, and an explicit description of the correspondence based on quaternion algebra and associated gates, a compact description of unitary matrices that can be decomposed using the projective gate set is obtained.
Quaternion algebras are written as
and any element of B can be written as q=x+yα+zβ+wαβ,x,y,z,w∈F. Conjugation is defined as q*=x−yα−zβ−wαβ. A reduced trace function trd(q) is defined as trd(q)=q+q*=2×. A reduced norm function nrd(q) is defined as qq*=x2−αy2−βz2+αβw2. Elements of the form xI+yiX+ziZ+wiY,x,y,z,w∈F, wherein I is the identity and X, Y, Z are the Pauli matrices, form a quaternion algebra
All single qubit unitaries over the Clifford+T gate set are elements of
Quaternion algebras and associated operations can be represented with computer-implementable instructions in various ways, and quaternions can be stored as 4-element row or column matrices, or otherwise stored and processed. The methods disclosed herein can be implemented with these or other representations.
Elements of the group SU(2) over [½,ζn] can be mapped to a quaternion algebra as follows. Any element of [ζn] can be written as α+ζnb for a, b from (ζn)∩. Thus, any element of SU(2) over [½,ζn] can be written as:
The identity matrix I can be mapped to 1 and iY can be mapped to element j in the quaternion algebra. Mappings for
are needed. Two cases are described below in which quaternion q corresponds to unitary U, det(U)=nrd(q).
In this case, √{square root over (−1)} is in (ζn) and any x in (ζn) has real and imaginary parts in (ζn)∩ Therefore, using the correspondence 1↔I,i↔Z,j↔Y,k↔iX between quaternions and Pauli matrices, the elements of SU(2) over [½,ζn] can be mapped to elements of quaternion algebra
It can be shown that
M
1
=Re(ζn)I+Im(ζn)iZ,M2=iYRe(ζn)+iXIm(ζn).
Therefore, M1↔Re (ζn)+i Im(ζn),M2 ↔j Re(ζn)+k Im(ζn).
In this case, Im(ζn)=sin(2π/n) is not in (ζn) and the mapping 1↔I, i↔2iZ sin(2π/n), j↔iY,k↔2iX sin(2π/n) can be used. It can be shown that
M
1
↔Re(ζn)+i/2,M2↔jRe(ζn)+k/2
Note that i2=−4 sin2 (2π/k)=4 cos2(2π/k)−4=(ζn+ζn−1)2=ζn2+ζn−2−2. Therefore, the quaternion algebra
is used.
Other bases can use these or different quaternion algebras. Fibonacci anyons can be written in the form
a,b,c,d∈ This can be rewritten as
Fibonacci anyons can use the mapping 1↔I,i↔2iZ sin(2πk/10), j↔iY√{square root over (τ)}, k↔2iX sin (2πk/10)√{square root over (τ)} which can be associated with the quaternion algebra
The Fibonacci matrix representation then can be expressed as a+b((i+s)/2)−cj+d((js+k)/2),s=Re(ζ10). Quaternions 1,(s+j)/2,j,(S*j+k/2) form a basis of maximal order.
In general, syntheses using su(2)k anyons can be based on quaternion algebras of the form
for n=k+2, wherein
q=ζn.
Referring to
Referring to
Typically, a single-qubit gate set V1, . . . , Vn is provided that may or may not be known to be complete. The gates Vi are defined over a particular number field. The gate set V1, . . . , Vn can be transformed using various approaches so as to form a projective gate set (PGS) having matrices U1, . . . , Un in the form:
wherein F is a minimal CM-field over which diagonal entries for each of the gates V1, . . . , Vn can be found. Several heuristics can be used. For example, each of the gates Vi can be multiplied by a scalar so that each can be defined over a simpler number field. One convenient example of such a CM-field is a cyclotomic field that is generated by the primitive nth root of unity. If a square root of an element of the real subfield F+ of F corresponds to an off-diagonal entry, this value is selected for b. If there are several possible values of b, a value corresponding to a square free algebraic integer is selected. If a gate Vj has a determinant that is one, rescaling can be done and in many cases such rescaling is sufficient to make the rescaled value an element of M[F,b]. If a gate U1, . . . , , Un has a determinant that is not one and is diagonal with a root of unity on the diagonal, then find U1, . . . , Un such that:
wherein ρ is an arbitrary 2 by 2 Hermitian matrix. For example, for
then
If none of these approaches are effective, Vj can be expressed a product of matrices that can be transformed using the above approaches.
Some representative mappings of a set GS to a PGS are shown in Table 1 below.
After determining a PGS based on the initial GS, a set of elements of a quaternion algebra is obtained that correspond to the PGS. A value D is found that is a totally positive algebraic integer in F+ such that F=F+[√{square root over (−D)}], and a quaternion algebra
having a basis 1, i, j, k is selected for use. For example, if F=Q[ζc], then F+=Q[ζn+ζn−1]. If 4|n, then F=F+[√{square root over (−1)}] and D=−1. Otherwise, D=(ζn+ζn−1)2−4. A mapping
is then found, comprising μ(I)=1,μ(√{square root over (−D)}Z)=i,μ(√{square root over (−b)}X)=j,qk=μ(Uk), wherein X, Z are Pauli matrices. In other examples, different Pauli matrices or combinations of Pauli matrices can be used.
With the mapping μ, an order O is then constructed that contains all qk, and a maximal order containing O is constructed. Alternatively, a maximal finite subgroup of a group generated by a set of some qk, is found. An order O can then be constructed based on generators of the group. In another alternative, if quaternion basis elements i, j, k can be expressed using qk, then the order ZF⊕ZFi⊕ZFj⊕ZFk is used, and an associated maximal order is found. The maximal order is then checked to determine that it contains all qk. If not, the qk, can be rescaled. In yet another example, if the quaternion algebra is described as
such that 2 is equal to ζ2 up to a unit of F+, wherein ζ is an algebraic integer in F+ then the maximal order
may be suitable.
With the maximal order determined, a set of ideals related to the set of elements of the quaternion algebra A is found. As noted above, the maximal order contains all of the qk The set of ideals is given by S={p|qkqk*ZF⊂p}, wherein p is a prime ideal in ZF, and can be built by prime factorization of ideals qkqk*ZF. Sets of ideals for representative bases are summarized in Table 2.
Non-unit generators Q corresponding to the maximal order M and the set of ideals S can be found along with unit generators U corresponding to M. The unit generators and the maximal order M are then mapped to a new PGS referred to as PGS*. In some cases, this procedure is unsuccessful, either due to computational difficulties or a deficiency in the original gate set. In other cases, PGS* does not correspond precisely to the original gate set but includes some added operations that extend the original gate set. Even if a gate set is known to be universal, an efficient procedure for using the gate set to represent an arbitrary unitary is not necessarily available.
Referring to
Referring to
With reference to
A method 600 for obtaining a description of exact unitaries is illustrated schematically in
M=p
1μ−1(q1)⊕p2μ−1(q2)⊕p3μ−1(q3)⊕p4μ−1(q4)
As discussed above, for G chosen to be a subset of S (all elements s of such that nrd(s) factors into elements of S), G⊂ can be found. However, it can be further shown that any element of S can be written as a product q1 . . . qnuα wherein quaternions q1, . . . , qn are from a finite set extS() and u is an element of a unit group of maximal order , and α is an element of F. If one of the following conditions holds u can be written as a product of finite number elements of genu(): (1) F is a totally real number field, and
is a totally definite quaternion algebra, or (2) F is a totally real number field, and
is split in exactly one real place. It will be appreciated that several methods for determining extS() genu(), and q1 . . . qnuα are known and can be selected for such determinations.
Thus, a finite set of quaternions G can be found such that any element of S can be written as q1 . . . qn for qk elements of G. A method for such factorization of elements of S into a finite set of quaternions is illustrated in the pseudo-code of Table 4. Additional procedures used include procedures for finding generators of a maximal order, testing membership in a maximal order, computing the discriminant of a quaternion algebra, returning a sequence length (procedure LENGTH), finding a number of ideals in a set S that does not divide the discriminant (procedure TOT-IDEALS), determining valuation vS(x)=Σp∈Svp(xF), wherein vp is a p-adic valuation of the ideal xF of number field F, procedure IS-TSI-CLASS-GROUP-TRIVIAL returns true if the two sided ideal class group of
is trivial, procedures for computing the generators of prime ideals with norm that divides discriminant of
procedure IDEAL-GENERATOR which determines a generator of right principal ideal, procedures for conjugation of maximal orders by an element, multiplication of ideals and maximal orders, ideals inversion, and conjugation of ideals by quaternion, and procedure UNIT-DECOMPOSE which decomposes a unit of maximal order into a product of generators of the unit group of when
is either totally definite or
splits in exactly one place. In addition, MAX-ORDER, PARENT-ID, IDEAL-ID are defined as
MAXORDER(s1,s2,s3,q)=(s3,q),PARENT-ID(s1,s2,s3,q)=s2,IDEAL-ID(s1,S2,S3,=s1,
respectively, wherein S1, S2, S3 are integers, and q is from
Pseudo-code for some of these procedures is listed in Tables 5-8 and others can be implemented with conventional computational algebra systems.
With reference to
The exemplary PC 700 further includes one or more storage devices 730 such as a hard disk drive for reading from and writing to a hard disk, a magnetic disk drive for reading from or writing to a removable magnetic disk, and an optical disk drive for reading from or writing to a removable optical disk (such as a CD-ROM or other optical media). Such storage devices can be connected to the system bus 706 by a hard disk drive interface, a magnetic disk drive interface, and an optical drive interface, respectively. The drives and their associated computer readable media provide nonvolatile storage of computer-readable instructions, data structures, program modules, and other data for the PC 700. Other types of computer-readable media which can store data that is accessible by a PC, such as magnetic cassettes, flash memory cards, digital video disks, CDs, DVDs, RAMs, ROMs, and the like, may also be used in the exemplary operating environment.
A number of program modules may be stored in the storage devices 730 including an operating system, one or more application programs, other program modules, and program data. Storage of quantum syntheses and instructions for obtaining such syntheses can be stored in the storage devices 730. A user may enter commands and information into the PC 700 through one or more input devices 740 such as a keyboard and a pointing device such as a mouse. Other input devices may include a digital camera, microphone, joystick, game pad, satellite dish, scanner, or the like. These and other input devices are often connected to the one or more processing units 702 through a serial port interface that is coupled to the system bus 706, but may be connected by other interfaces such as a parallel port, game port, or universal serial bus (USB). A monitor 746 or other type of display device is also connected to the system bus 706 via an interface, such as a video adapter. Other peripheral output devices, such as speakers and printers (not shown), may be included. In some cases, a user interface is display so that a user can input a circuit for synthesis, and verify successful synthesis.
The PC 700 may operate in a networked environment using logical connections to one or more remote computers, such as a remote computer 760. In some examples, one or more network or communication connections 750 are included. The remote computer 760 may be another PC, a server, a router, a network PC, or a peer device or other common network node, and typically includes many or all of the elements described above relative to the PC 700, although only a memory storage device 762 has been illustrated in
The personal computer 700 and/or the remote computer 760 can be connected to a logical a local area network (LAN) and a wide area network (WAN). Such networking environments are commonplace in offices, enterprise wide computer networks, intranets, and the Internet.
When used in a LAN networking environment, the PC 700 is connected to the LAN through a network interface. When used in a WAN networking environment, the PC 700 typically includes a modem or other means for establishing communications over the WAN, such as the Internet. In a networked environment, program modules depicted relative to the personal computer 700, or portions thereof, may be stored in the remote memory storage device or other locations on the LAN or WAN. The network connections shown are exemplary, and other means of establishing a communications link between the computers may be used.
With reference to
With reference to
Having described and illustrated the principles of the disclosed technology with reference to the illustrated embodiments, it will be recognized that the illustrated embodiments can be modified in arrangement and detail without departing from such principles. For instance, elements of the illustrated embodiments shown in software may be implemented in hardware and vice-versa. Also, the technologies from any example can be combined with the technologies described in any one or more of the other examples. It will be appreciated that procedures and functions such as those described with reference to the illustrated examples can be implemented in a single hardware or software module, or separate modules can be provided. The particular arrangements above are provided for convenient illustration, and other arrangements can be used.
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/US2016/025958 | 4/5/2016 | WO | 00 |
Number | Date | Country | |
---|---|---|---|
62146182 | Apr 2015 | US |