Mach. Learn.: Sci. Technol. 6(2025) 035022 https://doi.org/10.1088/2632-2153/adf53d OPEN ACCESS RECEIVED 28 May 2025 REVISED 9 July 2025 ACCEPTED FOR PUBLICATION 28 July 2025 PUBLISHED 5 August 2025 Original Content from this work may be used under the terms of the Creative Commons Attribution 4.0 licence. Any further distribution of this work must maintain attribution to the author(s) and the title of the work, journal citation and DOI. PAPER A genetic algorithm to generate maximally orthogonal frames in complex space Sebastián Roca-Jerat1,2,∗and Juan Román-Roche1,3 1Instituto de Nanociencia y Materiales de Aragón (INMA), CSIC-Universidad de Zaragoza, 50009 Zaragoza, Spain 2Departamento de Física de la Materia Condensada, Universidad de Zaragoza, 50009 Zaragoza, Spain 3Departamento de Física Teórica, Universidad de Zaragoza, 50009 Zaragoza, Spain ∗Author to whom any correspondence should be addressed. E-mail:
[email protected] Keywords: evolutionary algorithms, metric geometry, quantum information, frame theory, packing problem, thomson problem, sic povm Abstract A frame is a generalization of a basis of a vector space to a redundant overspanning set whose vectors are linearly dependent. Frames find applications in signal processing and quantum information theory. We present a genetic algorithm that can generate maximally orthogonal frames (MOFs) of arbitrary size nin d-dimensional complex space. First, we formalize the concept of MOF and demonstrate that it depends on the choice of an energy function to weigh the different pairwise overlaps between vectors. Then, we discuss the relation between different energy functions and well-known frame varieties such as tight and Grassmannian frames and complex projective p-designs. Obtaining MOFs poses a global non-convex minimization problem. We discuss the relation with established numerical problems such as the Thomson problem and the problem of finding optimal packings in complex projective space. To tackle the minimization, we design a hybrid genetic algorithm that features local optimization of the parents. To assess the performance of the algorithm, we propose two visualization techniques that allow us to analyze the coherence and uniformity of high-dimensional frames. The genetic algorithm is able to produce highly-symmetric universal frames, such as equiangular tight frames, symmetric, informationally complete, positive operator-valued measurements and maximal sets of mutually unbiased bases, for configurations of up to d=6 and n=36, with runtimes of the order of several minutes on a regular desktop computer for the largest configurations. 1. Introduction At the beginning of every introductory course on linear algebra, one is presented with the concept of a basis of a vector space. A basis is a collection of vectors that are linearly independent and form a spanning set of the vector space. In fact, the dimension of a vector space is defined as the number of elements of a basis. If the vector space is further endowed with an inner product, the condition of linear independence is often superseded by the stronger condition of orthogonality between the basis vectors, thus defining an orthogonal basis. A consequence of these definitions is that in an inner-product (vector) space of dimension done can only create sets of at most dorthogonal vectors (which would constitute orthogonal bases). In light of this realization, it is only natural to wonder how to generalize the concept of an orthogonal basis to sets of more than dvectors. These over-spanning sets are typically referred to as frames, which are defined and characterized in frame theory [1,2]. The redundancy of frames provides robustness against errors and is thus useful in the encoding and retrieval of signals, with applications in telecommunications and (quantum) information theory [3]. For instance, equiangular tight frames (ETFs) with d2vectors provide symmetric, informationally complete, positive operator-valued measures (SIC-POVMs) that are optimal for quantum state tomography [4–9]. © 2025 The Author(s). Published by IOP Publishing Ltd
Mach. Learn.: Sci. Technol. 6(2025) 035022 S Roca-Jerat and J Román-Roche Several families of frames with different properties can be defined, such as tight and Grassmannian frames [10]. Many of these properties can be attributed to particular instances of what we call maximally orthogonal frames (MOFs): frames of n>dvectors that, although not completely orthogonal among themselves, are maximally orthogonal in the sense that their pairwise inner products are minimal. As orthogonality is a pairwise property, increasing the orthogonality between a given pair of vectors will often come at the expense of decreasing the orthogonality between other pairs of vectors. Depending on how much value one assigns to the orthogonality of each pair, one will favor one ‘maximally orthogonal’ set of vectors or another. Thus, the first step in this paper is providing a formal definition for MOFs of a complex space of arbitrary dimension. Once armed with this definition, we discuss their properties and establish their relation with notable frame families such as tight and Grassmannian frames, ETFs [10], SIC-POVMs [11], maximal sets of mutually unbiased bases (MUBs) [12,13] and complex projective t-designs [14,15]. We also show that finding MOFs constitutes, in most cases, a numerical optimization problem. We discuss the relation with established numerical problems such as the Thomson problem [16], the problem of finding optimal packings in complex projective space [17] and the problem of finding optimal reference states for quantum classifiers [18,19]. Inspired by the use of a genetic algorithm for the Thomson problem [20], we present a genetic algorithm that is capable of generating MOFs of arbitrary size in a complex space of arbitrary dimension. Then, we visualize and measure the quality of the frames produced by the genetic algorithm. In the cases where the problem of finding MOFs is equivalent to the Thomson problem or the problem of finding optimal packings in complex projective space, we compare the genetic algorithm with state-of-the-art (SOTA) numerical methods. The remainder of the manuscript is organized as follows. Section 2is dedicated to defining MOFs, discussing their properties, and relating them to notable frame families. In section 3we discuss related numerical problems. The genetic algorithm is presented in section 4. In section 5, we visualize and discuss the results obtained with the algorithm and its performance. We end the paper with the conclusions and outlook of our work in section 6. We also provide technical details and complementary results in the appendices. 2. MOFs 2.1. Definition The central object of our discussion is a set of vectors Φd,n={|ϕi⟩}n i=1⊂Cdwith Cda finite complex coordinate space of dimension d. The canonical sesquilinear inner product of two vectors |ϕ1⟩,|ϕ2⟩is denoted ⟨ϕ1|ϕ2⟩. Definition 2.1. [1]. A set of vectors Φd,n={|ϕi⟩}n i=1⊂Cdwith n⩾dis a frame for Cdif there exist frame bounds 0 <A⩽B<∞such that for every |v⟩∈Cd A∥v∥⩽ n ∑ i=1|⟨v|ϕi⟩|2⩽B∥v∥.(1) If one can set A=Bin equation (1), the frame is said to be tight [21]. For n=d, a frame is just a basis. If |⟨ϕi|ϕi⟩|=1∀ϕi∈Φd,n,Φd,nis a unit norm frame. Without loss of generality, we will assume that all vectors are of unit norm in the following. In a vector space of finite dimension, such as the ones considered in this paper, a frame is essentially a finite spanning set. We can formulate an energy associated to a set EW(Φd,n) = ∑ i=j W(|⟨ϕi|ϕj⟩|),(2) with W, the weighting function, an arbitrary real-valued and increasing function well-defined in the interval [0,1]. Such an energy grows whenever the overlap (the modulus of the inner product) of two vectors increases, ceteris paribus, and thus it will be minimized by a set with large over-all orthogonality. We denote a minimizing set as ¯ Φd,n. Proposition 2.1. A set of unit norm vectors ¯ Φd,n={|ϕi⟩}n i=1⊂Cdthat minimizes EW(2) is a unit norm frame. Proof. We have to show that ¯ Φd,nis a spanning set of Cd. First, if n=dany set that minimizes EWis an orthogonal basis and thus spans Cd. In the following we assume n>dand prove the proposition by contradiction. Let us assume that ¯ Φd,nis not spanning and denote its orthogonal complement as ¯ Φ⊥ d,n. Note that W(0)⩽W(|⟨ϕi|ϕj⟩|)⩽W(1), with equality in the lower bound if and only if |ϕi⟩and |ϕj⟩are orthogonal to each other. Let us define ϕ⊥ k={|ϕj=k⟩∈ ¯ Φd,n|W(|⟨ϕk|ϕj⟩|)>W(0)}.(3) 2
Mach. Learn.: Sci. Technol. 6(2025) 035022 S Roca-Jerat and J Román-Roche Let us choose a vector |ϕk⟩∈ ¯ Φd,nsuch that ϕ⊥ kis not the empty set. A non-spanning set with n>dvectors must contain al least three such vectors. Then, the frame ¯ Φ′ d,nformed by replacing |ϕk⟩by |ϕ′ k⟩∈ ¯ Φ⊥ d,nin ¯ Φd,n has energy EW(¯ Φ′ d,n) = EW(¯ Φd,n)−ϵwith ϵ=2∑ j∈ϕ⊥ k(W(|⟨ϕk|ϕj⟩|)−W(0))>0,(4) which implies that ¯ Φd,ndoes not minimize EW. Therefore we refer to any set that minimizes EWas a MOF. Depending on the functional form of the weighting function, W, the impact of large and small overlaps on the energy can vary and the MOF will depend on W. We denote it ¯ Φd,n[W]. Thus, there is not a unique definition for a MOF. 2.2. Properties of the different MOFs 2.2.1. Weighting functions: p-frame potential and Riesz s-energy We consider two main families of weighting functions: for W(x) = x2pthe energy becomes a p-frame potential [4,22,23] FPp(Φd,n) = ∑ i=j|⟨ϕi|ϕj⟩|2p(5) and for W(x) = D−s(x), with D(x) the trace or chordal distance D(x) = 2√1−x2,(6) the energy becomes a projective Riesz s-energy [23,24] REs(Φd,n) = ∑ i=j(2√1−|⟨ϕi|ϕj⟩|2)−s .(7) To be precise, D−s(x)is not per se a valid weighting function as it is not defined in the limit x→1. This can be fixed, by imposing that D−s(1)=+∞, which would correspond to taking the limit from the left, or by defining the function by parts, such that D−s(1−ϵ⩽x⩽1) = D−s(1−ϵ)with ϵas a free parameter. In practice, we do the latter. In the following, we discuss the relation between the p-frame potential and the Riesz s-energy and the properties of the frames that minimize them. 2.2.2. Riesz s-energy and asymptotic uniformity The main interest of the Riesz s-energy is that it allows us to reason in terms of the poppy-seed bagel theorem, which states that the minimal-energy arrangement of nparticles constrained to a bounded D-dimensional surface and subject to a potential of the form r−s, where ris the distance between particles, tends to be uniformly distributed for large nwhen s⩾D[25]. To understand this result, one must think physically in terms of short- and long-range interactions. For large s, large overlaps (short-range interactions) are weighted more heavily in the energy relative to small overlaps (long-range interactions). This implies that in the minimization process vectors prioritize decreasing the few large overlaps with their nearest neighbors before trying to minimize a large number of small overlaps with distant neighbors. The resulting arrangement is uniform because each vector is mostly concerned with being apart from its nearest neighbors and almost insensitive to the global arrangement of vectors. For small s, the opposite is true, vectors prioritize maximizing the number of vectors that they have a small overlap with, which may come at the cost of increasing the overlap with a few nearest neighbors, leading to crowding and lack of uniformity. The Riesz s-energy is invariant under changes in the global phase of the vectors, so we can identify equivalence classes for all unit vectors differing by a global phase, which essentially defines the complex projective space CPd−1. A parameterization of CPd−1in real coordinates forms a manifold of dimension 2(d−1). Following the poppy-seed bagel theorem, we will have to set s⩾2(d−1)to generate MOFs, ¯ Φd,n[s], that are asymptotically uniform, in the sense of uniformly distributed on the manifold that parametrizes CPd−1, for n→∞[23]. The same reasoning can be applied to the frame potential (1). Although we cannot invoke the poppy-seed bagel theorem to produce precise regimes depending on the value of plike we have just done for the Riesz s-energy, the argument on the basis of competing short- and long-range interactions remains valid. Small values of pgive more relative importance to long-range interactions and thus favor less uniform frames, and vice versa. 3
Mach. Learn.: Sci. Technol. 6(2025) 035022 S Roca-Jerat and J Román-Roche 2.2.3. Complex projective p-designs and uniformity Uniformity is only properly defined in the distribution sense, for n→∞. In this limit, it is useful to view uniformity as the property of a frame that integrating a function over the Haar measure of the corresponding manifold is the same as averaging the function over the frame elements. For a finite frame, an average over the frame elements will only provide an approximation of the integral. In this context, a frame is said to be a complex projective p-design if averaging a polynomial of degree por less over the frame elements is equivalent to integrating the polynomial over the Haar measure of the corresponding manifold [5]. In layman’s terms, finite frames cannot be uniform, but the frame vectors can be sufficiently evenly distributed on the manifold that averaging simple enough functions over them is equivalent to averaging over the full manifold. The p-frame potential obeys the Welch bound FPp(Φd,n)⩾n2 (d+p−1 p)−n,(8) with equality when the frame is a complex projective p-design [26,27]. Thus, the uniformity of a finite frame can be quantified by computing the largest pfor which it saturates the Welch bound. This also implies that minimizers of the p-frame potential tend to be projective p-designs. 2.2.4. One-designs are tight The frame potential was introduced by Bennedeto and Fickus, originally with p=1, for the study of finite normalized tight frames [28]. They proved that FP1has several convenient properties: its global minima are tight frames and saturate the Welch bound FP1(¯ Φd,n[p=1]) = n2/d−n, and all its local minima are degenerate, i.e. they are global minima and thus tight frames and one-designs. This tells us that we can see tight frames as a particular instance of MOFs as defined in proposition 1. In fact, Benedetto and Fickus already refer to a set of vectors that minimize the frame potential FP1as maximally orthogonal. Thus, they equate MOFs with tight frames. As argued above, it is natural to relax this equation and consider tight frames as just one case of many MOFs. Just like FP1leads to MOFs that are tight, other weighting functions are equally valid and endow the corresponding MOFs with other useful properties, such as uniformity or low coherence. We mention in passing that another consequence of Benedetto and Fickus’s work is that finding tight frames is an easy task. A local optimization from an arbitrary initial condition suffices to construct tight frames numerically, although constructive analytical methods have also been devised [29,30]. Other weighting functions do not lead to such an easily minimizable energy function, and thus obtaining the corresponding MOFs poses a numerical challenge. We are now in the position to mention that tight frames are not, just by virtue of being tight, uniform. This is to be expected since they are the minimizers of FP1and thus, generally, just projective one-designs, the lowest rank of uniformity for finite frames. Note also that there must exist a tight frame for every degenerate global minima of FP1, so a tight frame is not a unique object for a given dand n, whereas we identify a uniform frame as a highly-symmetric unique arrangement, modulo orthogonal transformations. In fact, for a given configuration of dand ntight frames form either a manifold or a disjoint union of manifolds [31]. 2.2.5. Coherence: the p →∞and s →∞limits For s→∞, we can write lim s→∞ (REs)1/s=m1/smax i=j 1 D(|ϕi⟩,|ϕj⟩),(9) where mis the multiplicity of the largest overlap. Therefore, only the maximum overlap(s) (minimum distance(s)) contribute to the energy and sets that only differ in submaximal overlaps will be degenerate. In this setting, the MOF will be given by ¯ Φd,n[s→∞] = argmin{Φd,n}{max i=j|⟨ϕi|ϕj⟩|}.(10) Note that the same MOF is obtained by minimizing the p-frame potential in the limit p→∞, the two weighting functions are equivalent in this limit. Equation (10) indicates that ¯ Φd,n[s→∞]is the set that minimizes the maximum overlap or, equivalently, that maximizes the minimum (trace) distance (6) between vectors. Problems of this sort are typically referred to as packing problems [32]. It is also important to identify the coherence µas the quantity that is minimized in equation (10) µ(Φd,n) = max i=j|⟨ϕi|ϕj⟩|.(11) 4
Mach. Learn.: Sci. Technol. 6(2025) 035022 S Roca-Jerat and J Román-Roche The minimizers of coherence are called Grassmannian frames [10]. Low coherence and ‘tightness’ are dual properties in terms of the encoding capabilities of a frame. A tight frame allows ‘perfect reconstruction’ of the encoded information, whereas a Grassmannian frame maximizes ‘robustness against error’ [33]. In general, it is impossible to optimize both simultaneously. This is evident from the fact that each is associated with minimizing a different energy function, FP1for tightness and RE∞or FP∞for low coherence. Similarly to the Welch bound for the p-frame potential, there exist bounds for the coherence. Namely, •Bukh–Cox bound [34] µ(Φd,n)⩾(n−d)2 n[1+ (n−d−1)√n−d+1]−(n−d)2if n>d.(12) •Welch–Rankin bound [26,35] µ(Φd,n)⩾√n−d d(n−1)if n>d.(13) •Orthoplex bound [36] µ(Φd,n)⩾1 √dif n>d2.(14) •Levenstein bound [37] µ(Φd,n)⩾√2n−d(d+1) (n−d)(d+1)if n>d2.(15) Frames that saturate the maximum applicable bound are optimal packings, also known as optimal Grassmannian frames. 2.2.6. Coherence and degeneracy To understand the geometric properties of Grassmannian frames, let us discuss the particular case of d=2, n=5. Because vectors in d=2 equivalent under global phase changes form CP1, which is diffeomorphic to the 2-sphere S2, they can be visualized on the Bloch sphere. Furthermore, for d=2 the trace distance between vectors (6) is equal to the Euclidean distance between their corresponding points on the Bloch sphere. For larger dthe nice visualization is lost, although some intuition about the topology of CPd−1can still be obtained [38]. Using the Bloch sphere, we can see that there is a continuum of degenerate frames that minimize the coherence, {¯ Φ2,5[p→∞]}, which are illustrated in figure 1. They are degenerate because their energy is determined by the largest overlap, which is the overlap between the vectors at the Equator of the Bloch sphere and the vectors at the North and South poles. The three vectors around the Equator can be redistributed between forming right angles between themselves, and thus their overlaps among themselves being equal to their overlap with the North- and South-pole vectors, and forming an equilateral triangle. However, this redistribution only decreases the submaximal overlaps, and does not lower the coherence. Alternatively, one may evaluate the energy of these sets under, e.g. the 6-frame potential. Because for p=6 all overlaps contribute to the energy, the degeneracy is broken and the set in which the vectors at the Equator form an equilateral triangle is lowest in 6-frame potential. In fact, this set is precisely the set that minimizes the 6-frame potential and is therefore the MOF for this weighting function, ¯ Φ2,5[p=6]. Note that, as we just explained, ¯ Φ2,5[p=6]∈{¯ Φ2,5[p→∞]}. Because the Bloch sphere grants us a graphical interpretation of the different sets, it is easy to see in figure 1that the vectors in ¯ Φ2,5[p=6]are more uniformly distributed on the sphere than the vectors of the other sets in {¯ Φ2,5[p→∞]}. The phenomenon that we just described for d=2 and n=5 is also observed for other values of dand nbecause it is a consequence of the fact that the coherence disregards submaximal overlaps (other examples appear in section 5). Note that our argument in the previous paragraph is centered on the appearance of systematic degeneracies in the coherence. We are disregarding degeneracies arising from the orthogonal symmetry intrinsic to MOFs. 2.2.7. Universal MOFs We have identified tightness and low coherence as associated with different weighting functions and thus generally incompatible in a MOF. We have also discussed the concept of complex projective p-designs and the uniformity of frames. Uniformity is to be expected of MOFs that are the minimizers of an energy that 5
Mach. Learn.: Sci. Technol. 6(2025) 035022 S Roca-Jerat and J Román-Roche Figure 1. Degeneracy of the coherence. Bloch-sphere representation (top) and overlaps among vectors (bottom) of the different Grassmannian frames for d=2 and n=5. Column (a) shows the distribution of vectors obtained by subtracting one vector from the equator from ¯ Φ2,6[s→ ∞]. The frames depicted in columns (b) and (c) are obtained by continuously spreading the remaining three vectors at the equator until they form an equilateral triangle. Note that, for each jin all three panels, there are five dots in the plot, each corresponding to the overlap of vector jwith every vector in the frame (including itself). Visually, there appears to be only three dots for each jbecause there are only three distinct overlaps and so three of the dots coincide perfectly. favors short-range interactions, without focusing only on nearest-neighbor interactions like coherence does. Thus neither tight nor Grassmannian frames are, generally, maximally uniform given their size. There can exist, however, for certain values of dand n, universal MOFs, i.e. frames that are simultaneously tight, minimally coherent and maximally uniform given their size. ETFs are the most prominent example [10]. ETFs are tight frames where every vector has the same overlap with every other vector in the frame. Their existence is restricted to n⩽d2[39]. ETFs with n=d2are known in quantum mechanics as SIC-POVMs. The characteristics that give them their name make SIC-POVMs useful for perfect reconstruction of input states from measurement data [4–9]. Their existence for any dimension, dwas conjectured by Zauner [40]. SIC-POVMs are also complex projective two-designs [4]. The fact that no ETFs exist for n>d2tells us that d2marks the threshold beyond which the frame vectors start to crowd the vector space. Since the frame cannot be equiangled while minimizing the energy, some vectors will necessarily have both short- and long-range neighbors. This gives rise to the dynamics afforded by the competition between short- and long-range interactions that we discussed before. It is for n>d2that tightness, low-coherence and uniformity start to be incompatible. Nevertheless, there do exist highly symmetric frames for n>d2. A notable example are sets of MUB [12,13]. A pair of orthonormal bases {|ϕi⟩}d i=1,{|ψj⟩}d j=1of Cdare mutually unbiased if |⟨ϕi|ψj⟩|2=1 d.(16) The maximum number of MUB M(d)obeys M(d)⩽d+1, with equality only if dis an integer power of a primer number. Thus, if dis an integer power of a prime it is possible to construct highly symmetric frames of d(d+1)vectors, by combining the d+1 MUB, where every vector has only nearest-neighbors with overlap 1/√d(the vectors of the other bases) and next-nearest-neighbors with null overlap (the other vectors of the same basis). Despite not being ETFs, frames built from d+1 sets of MUB are Grassmannian and tight [17] and complex projective two-designs [27]. 3. Related numerical optimization problems From the definition of MOFs one can see that finding them constitutes a multivariate minimization problem. Finding the global minima of a non-convex multivariate function is a complex task, without guarantee of success in most cases. A notable exception is the finding of tight frames, FP1, where the local minima are all degenerate and thus global minima are commonplace [28]. In the remaining cases, finding MOFs can be tackled with numerical optimization. In this section, we discuss the relation between the problem of finding MOFs and other established numerical problems. 6
Mach. Learn.: Sci. Technol. 6(2025) 035022 S Roca-Jerat and J Román-Roche 3.1. The Thomson problem The Thomson problem aims to determine the minimum energy arrangement of Nelectrons constrained to the surface of the unit sphere and subject to electrostatic repulsion [16,41]. Thus, if rij =∥ri−rj∥is the distance between each pair of electrons, the Thomson problem for Nelectrons is equivalent to finding the arrangement {ri|∥ri∥=1}N i=1that minimizes E=∑ i=j 1 rij .(17) Identifying the electron coordinates on the unit sphere with the coordinates of complex vectors of d=2 on the Bloch sphere, it is clear that the Thomson problem is equivalent to the problem of finding MOFs in d=2 by minimizing the Riesz one-energy. The Thomson problem is a challenging numerical minimization problem, as the number of local minima is observed to grow exponentially with n. In fact, it has been used as a benchmark for global optimization algorithms. There is agreement between all numerical and theoretical methods on what is the global minimum for arrangements of n⪅100 and putatively global minima have also been obtained for n⪅1000 [42,43]. Of the different methods employed, a genetic algorithm combined with local optimization at each generation has proven particularly effective, reaching arrangements of n⩽200 [20]. The genetic algorithm that we present in the next section can be seen as a generalization of the genetic algorithm employed on the Thomson problem [44]. 3.2. Optimal packings in complex projective space The problem of finding optimal packings in complex projective space consists of finding a set of lines through the origin of Cdthat are geometrically as spread apart as possible, i.e. with maximum angle distances between them. In practice, the lines are represented by unit vectors, such that a set is represented by a unit norm frame and the geometric spread is quantified by the coherence (11) of the frame. Since the coherence is invariant under changes in the global phase of the vectors, we can identify equivalence classes for all unit vectors differing by a global phase, so the set of lines in Cdis ultimately equivalent to a set of elements of complex projective space CPd−1. Finding optimal packings in complex projective space is thus equivalent to finding MOFs for FP∞or RE∞, i.e. Grassmannian frames. There exist a number of theoretical and numerical results on Grassmannian frames, which are neatly summarized in the review by Jasper et al [17]. In the review, the authors advertise a website by the name of Game of Sloanes (in honor of Neil Sloane, who hosts a website with the best known packings in Euclidean space) that hosts an open competition to find putatively optimal results for packings in complex projective space [45]. The numerical method used to obtain the best known packings listed on the Game of Sloanes consists on sequentially applying two algorithms: local optimization on the Grassmannian manifold [46,47] followed by alternating projection [48]. As its name implies, the algorithm based on local optimization on the Grassmannian manifold is specific to this problem. On the contrary, alternating projection is rather general and can be used in a variety of settings. In any case it does not work that well on its own, mainly because it benefits from an adequate initial condition, like the one outputted by the local optimization. For this reason, it is interesting to see how a completely general approach like a genetic algorithm fares against these specialized techniques. To this regard, it must be noted that although the search for a Grassmannian frame is rooted in the minimization of the coherence (11), in practice, to obtain a smooth function, the coherence is defined as the limit µ(Φ) ≡lim p→∞ (FPp(Φ))1 2p(18) Then, a relatively small value of pis used initially, and several local optimizations are performed sequentially. After each local optimization, the value of pis increased and a new local optimization begins. This process is repeated until convergence is reached [47]. Due to the finite values of pused in practice, the actual numerical minimization is equivalent to the problem of finding MOFs for the p-frame potential with finite p. However, in this case, pacts as a numerical hyperparameter that is tuned to optimize results with respect to a figure of merit: the coherence (11). 3.3. Optimal reference states in quantum classifiers The concept of maximally orthogonal states is introduced in the context of a single-qubit classifier to refer to a set of three or more states in the Bloch sphere that would optimally serve as reference states for each class in the classification process [18]. In an n-partite classification one would have to select nstates of the qubit as 7
Mach. Learn.: Sci. Technol. 6(2025) 035022 S Roca-Jerat and J Román-Roche reference states, assigning each of them to one of the classes. Then, the training process would strive to learn to assign to each data entry a state on the Bloch sphere that was closest, i.e. with the largest overlap, to the reference state of the corresponding class. This process is facilitated if the reference states are evenly distributed in the state space of the qubit. This is so that the basin of states that are closest to a given reference state is of equal size for all reference states, preventing default biases in the classifier that would have to be overcome during the learning process. In section 2we discussed that uniformity is a property only of some MOFs that are the minimizers of an adequate energy function. However, as we discussed in that same section, for frames with few elements, there exist universal MOFs that achieve tightness, minimal coherence and uniformity. Consequently, in a qubit, and for small sets, coming up with sets of maximally orthogonal states is relatively straightforward, with some imagination it can even be done graphically. This is the case in reference [18] where only sets of up to six maximally orthogonal states are considered and the challenge of obtaining larger sets is not discussed. The idea is further developed in reference [19], where they study a single-qudit classifier as the natural generalization of the single-qubit classifier. In order to generate large sets of optimal reference states of a qudit it was necessary to formalize the concept of maximal orthogonality, where the nuanced distinction between maximum orthogonality and maximum uniformity becomes apparent, and to develop the genetic algorithm that we present in this paper. The equivalence between maximally orthogonal states of a qudit and MOFs is clear from the fact that the coordinates of all possible normalized pure states of a d-dimensional qudit form the complex projective space CPd−1. 4. The genetic algorithm A genetic algorithm is a general optimization method inspired by Darwinian natural selection. A population of candidate solutions to the optimization problem is evolved across time in successive generations. At each generation, the fittest individuals among the population are selected and through recombination, mutation and survival, they generate the next population. The process is iterated until convergence is reached. The process of recombination attempts to stochastically combine the good characteristics of one individual with those of another, giving rise to an over-all better individual. The process of mutation introduces noise, allowing a random exploration of the state space. The process of survival introduces determinism in the algorithm. Because the fittest individuals are allowed to survive, it ensures a steady flow toward better solutions, without stochastic setbacks. The problem of finding MOFs lends itself to be implemented as a genetic algorithm because the recombination process can be implemented straightforwardly by combining subsets of vectors of the two parent frames. In our particular setting, for a given dand n, a population, Pd,n={Φk d,n}N k=1, will be a collection of putative MOFs, the individuals, with Nthe size of the population. The vectors in each frame are normalized, ⟨ϕk i|ϕk i⟩=1∀i,k, and encoded as a coordinate vector in the orthonormal basis of Cd. To eliminate degeneracies due to symmetry, we fix the first vector of each frame to be |ϕk 1⟩= (1,0,...,0)∀k. In all other vectors, the global phase is eliminated |ϕk i=1⟩= (zk,1,...,zk,d), with zk,1∈Rand zk,l=1∈C. Genetic algorithms are typically formulated as a maximization problem, where the fitness Fis the function to maximize. Here, we define fitness as the negative energy Riesz s-energy: F(Φ) = −REs(Φ). At each generation, we sort the individuals by fitness and select a number of them to serve as parents of the next generation. It is common in genetic algorithms to select the parents stochastically, with a probability proportional to their fitness, to delay the convergence process and efficiently explore the parameter space. Here we employ a rudimentary deterministic alternative. We fix a fitness gap, ∆F, and select four parents in decreasing order of fitness, starting from the fittest individual and ensuring that the next parent has a fitness at least ∆Fsmaller than the previous parent. The fitness gap is determined as a fraction of the fitness of the fittest individual in that generation ∆F=αdivFmax. The diversity ratio, αdiv, is a hyperparameter of the algorithm that we set to αdiv =0.1. Recombination is implemented as a random crossover of vectors from two individuals. A trivial recombination could consist on generating a random integer ibetween 1 and nto create a child with the i first vectors of parent A and the last n−ivectors form parent B. However, the vectors within a frame are, a priori, not sorted in any particular fashion, i.e. their order does not reflect any geometrical structure in the manifold that parametrizes the vectors. Therefore, the subset of vectors inherited from each parent would be random, consisting of vectors from parent A that could be arbitrarily close to vectors from parent B, and thus throw away most of the orthogonality gained over the course of the optimization process. Because of this, a trivial recombination like the one just described would, most likely, create a child with a fitness much lower than that of its parents. To prevent this, we sort the vectors of each parent by distance to the first vector of each set (which is fixed and the same for all sets). After the sort, the order of the vectors in a set does reflect some structural properties. Namely, the first vector of the set marks a reference point in the manifold that is common for all sets. After sorting, we apply the random recombination by drawing the first ivectors from 8
Mach. Learn.: Sci. Technol. 6(2025) 035022 S Roca-Jerat and J Román-Roche parent A, which are expected to be relatively closer to the reference point, and the last n−ivectors from parent B, which are expected to be relatively far from the reference point. To better understand this process, let us consider the case d=2. Now the manifold is the Bloch sphere and the reference point is given by the vector (1, 0), which marks the north pole. Selecting the first ivectors from parent A corresponds to selecting vectors covering a spherical cap around the north pole with an approximate height determined by the ratio i/n. Then, selecting the n−ivectors from parent B corresponds to selecting vectors covering a spherical cap around the south pole with an approximate height determined by the ratio (n−i)/n. Although nothing guarantees that the two caps do not overlap or, contrarily, leave blank a spherical strip in between them, at least the geometrical structure within each cap is preserved and the fitness of the child will only depend on the seam between the two caps. A similar recombination strategy is used in reference [20]. Following the same reasoning, we implement mutations by sorting a set by distance to the first vector, generating a random integer ibetween 1 and nand a random phase θ∈[0,2π)and rotating the last n−i vectors of the sorted set by the relative phase, i.e. (z1,z2,...,zd)→(z1,z2eiθ,...,zdeiθ). For d=2, this amounts to rotating the last n−ivectors of the set an angle θaround the north pole. In addition to the usual operations of a genetic algorithm: selection of the fittest, recombination, and mutation, we also implement local optimization. At each iteration, after the four parents are selected and before recombination and mutation, they are each subjected to a local optimization process. To implement the optimization, we encode a set as a (n−1)×d×2 dimensional vector where the first element is the real part of the second element of the first vector, the second element is the imaginary part of the second element of the first vector, the third element is the real part of the third element of the first vector and so on, i.e. Φd,n→(ℜ(z2,1),ℑ(z2,1),...,ℑ(z2,d),ℜ(z3,1),...). Due to the necessity to enforce normalization on the vectors composing each set throughout the optimization process, this is a case of multivariate constrained optimization which we tackle using sequential least-squares programming. The local optimization runs until either convergence or a maximum number of iterations, which constitutes another hyperparameter, are reached. From a genetic perspective, applying a local optimization to the parents that is later inherited by the next generation introduces a Lamarckian aspect to an otherwise Darwinian evolution process. Genetic algorithms based on this hybrid approach are typically termed memetic algorithms [49]. In summary, the algorithm runs as follows: 1. Select energy function, i.e. select the fitness function as the negative of the energy function. 2. Generate initial population. We generate Nsets of nnormalized random vectors drawn from the Haar distribution. 3. Select the four ‘fittest’ individuals as the parents (respecting the selected fitness gap, ∆F). 4. Apply local optimization to the parents. 5. Generate twelve children by recombining every parent with every other parent (note that each pair of parents mates twice, exchanging the roles of parents A and B in each case). 6. Generate four other children by mutating each parent once. 7. Form a new population with the four parents and the sixteen children and evaluate the fitness of the fittest individual. 8. If the maximum number of iterations or the convergence criterion are reached, halt, otherwise go to step 3 with the new population. To induce the halting of the algorithm, one can fix a maximum number of iterations or a convergence criterion based on the rate of change of the fitness across generations. We arbitrarily fix the number of parents to four, the number of recombinations to twelve, the number of mutations to four and consequently the population size to twenty (inherited from reference [20]), these numbers could be left as hyperparameters. More numerical details can be found in appendix A 5. Results and discussion 5.1. The Thomson problem As presented in section 3.1, for d=2 and using the Riesz one-energy as the weighting function, the problem of finding MOFs is equivalent to the Thomson problem. Therefore, we use the Thomson problem as a benchmark for the GA. Figure 2(a) shows the relative energy difference, ϵrel =|REGA 1−REref 1|/|REref 1|, between the frames produced by the GA for the Thomson problem and the best known arrangements reported in reference [50] for configurations of up to n=100 points. The GA produces optimal or near-optimal frames with a relative error under ∼0.1%for n⩽100. 9
Mach. Learn.: Sci. Technol. 6(2025) 035022 S Roca-Jerat and J Román-Roche Table A1. Runtimes of the genetic algorithm for different configurations. The number of generations was capped at 15. d n Runtime Generations Time/generation 2 6 0.6s 5 0.12s 2 24 99.9s 15 6.6s 4 16 28.7s 7 4.1s 4 40 9min6s 9 1min7s Figure 6. Dependence of the mesh norm with the number of Haar vectors NHfor d=4 and different values of n. A.2. Computing the mesh norm and the share of the vector space The mesh norm and the share of the vector space can only be computed approximately by performing a finite sampling of NHvectors from the Haar distribution for each dimension d. In figure 6we show how the mesh norm depends on NHfor different configurations. We find that a value of NH=107is sufficient to resolve changes in the mesh norm ⩾10−2, which is sufficient to compare, e.g. the frames obtained by optimizing different metrics in figure 4. Appendix B. Visualizing uniformity: share of the vector space In section 5.2.1 we defined the normalized share of the vector space βjas a way to visualize the uniformity of a frame. By definition, the share and the mesh norm are related. The mesh norm measures the radius of the largest gap left in the vector space by vectors of the frame. The share measures the portion of the vector space that is closest to each vector of the frame. The relation stems from the fact that the vectors of the frame surrounding the largest gap will have a larger share. Therefore, the mesh norm is positively correlated with the largest values of the share. This relation is similar to the relation between coherence and overlaps, where coherence is the maximum overlap. Note also that the share of the vector space is the metric to optimize when looking for optimal reference states for a quantum classifier (see section 3.3). A non-uniform distribution of the shares is associated with default biases of the quantum classifier. In figures 7and 8we visualize the uniformity of the frames obtained with the GA for d=4. Figure 7is complementary to figure 3. In figure 7we show the frames obtained for d=4 and n∈[4,43]. Each panel displays the share of the vector space βjof each vector |ϕk⟩∈ ¯ Φ4,n[s=8]. In addition, the standard deviation of the shares is indicated within each panel. Uniform frames have βj≈1 for all vectors and a small standard deviation. It is interesting to note that all frames up to the SIC-POVM for n=16 are relatively uniform. Appreciable non-uniformities only appear beyond this point. Nevertheless, highly symmetric frames such as the set of MUB or the three-design at n=40 are again relatively uniform. Figure 8is complementary to figure 4. In figure 8we plot the share of the vector space of three different configurations, for d=4 and n=23,40,43. For each configuration we plot the frame with lowest coherence, highest mesh norm and lowest looseness (closest to being tight). For n=40, given the high symmetry of the three-design, there are barely any differences between the three cases. In contrast, for n=23 and n=43 there are clear differences in the shares between the frames that optimize each metric. Frames that minimize coherence tend to display shares grouped in two or more distinct values. On the other hand, frames that 16
Mach. Learn.: Sci. Technol. 6(2025) 035022 S Roca-Jerat and J Román-Roche Figure 7. Maximally orthogonal frames for d=4 and s=8. Each panel shows the normalized share of the vector space βj(21) of each vector the best MOF out of ten runs of the GA for a certain size n. The horizontal black line is a guide to the eye marking the value 1. The panel title indicates whether it is a high-symmetry frame such as an ETF, maximal set of MUB or SIC-POVM. The standard deviation of the share σβis indicated within each panel. Figure 8. Genetic algorithm stochastic results. Normalized share of the vector space βj(21) of the maximally orthogonal frames for d=4 and s=8 and n=23,40,43. Each column shows the result of a different run of the GA that optimizes a different metric. The horizontal black line is a guide to the eye marking the value 1. The standard deviation of the share σβis indicated within each panel. 17
Mach. Learn.: Sci. Technol. 6(2025) 035022 S Roca-Jerat and J Román-Roche maximize the mesh norm or minimize looseness have more evenly distributed shares. This is reflected in the standard deviation of the share, which is higher for the frames that minimize coherence. We note that for several configurations in figures 7and 8the distribution of shares is mostly concentrated around 1, with one or a few outliers with a value significantly different than 1. In these cases, the standard deviation may not reflect the actual uniformity of the frame and it could be interesting to incorporate estimators of kurtosis or multimodality of the distribution of shares. ORCID iDs Sebastián Roca-Jerat 0000-0001-5948-4263 Juan Román-Roche 0000-0003-2995-6615 References [1] Duffin R J and Schaeffer A C 1952 A class of nonharmonic Fourier series Trans. Am. Math. Soc. 72 341–66 [2] Daubechies I 1992 Ten Lectures on Wavelets (Society for Industrial and Applied Mathematics) [3] G Kutyniok and P G Casazza ed 2013 Finite Frames: Theory and Applications (Birkhäuser Boston) [4] Renes J M, Blume-Kohout R, Scott A J and Caves C M 2004 Symmetric informationally complete quantum measurements J. Math. Phys. 45 2171–80 [5] Scott A J 2006 Tight informationally complete quantum measurements J. Phys. A: Math. Gen. 39 13507–30 [6] Słomczy´ nski W and Szymusiak A 2015 Highly symmetric POVMs and their informational power Quantum Inf. Process. 15 565–606 [7] Yoshida M and Kimura G 2022 Construction of general symmetric-informationally-complete–positive-operator-valued measures by using a complete orthogonal basis Phys. Rev. A 106 022408 [8] Gut¸˘ a M, Kahn J, Kueng R and Tropp J A 2020 Fast state tomography with optimal error bounds J. Phys. A: Math. Theor. 53 204001 [9] Jameson C, Qin Z, Goldar A, Wakin M B, Zhu Z and Gong Z 2024 Optimal quantum state tomography with local informationally complete measurements (arXiv:2408.07115) [quant-ph] [10] Strohmer T and Heath R W 2003 Grassmannian frames with applications to coding and communication Appl. Comput. Harmon. Anal. 14 257 [11] Fuchs C, Hoang M and Stacey B 2017 The SIC question: history and state of play Axioms 621 [12] Schwinger J 1960 Unitary operator bases Proc. Natl. Acad. Sci. 46 570–9 [13] Ivonovic I D 1981 Geometrical description of quantal state determination J. Phys. A: Math. Gen. 14 3241–5 [14] Delsarte P, Goethals J M and Seidel J J 1977 Spherical codes and designs Geom. Dedicata 6363 [15] Hoggar S 1982 t-designs in projective spaces Eur. J. Comb. 3233–54 [16] Thomson J 1904 On the structure of the atom: an investigation of the stability and periods of oscillation of a number of corpuscles arranged at equal intervals around the circumference of a circle; with application of the results to the theory of atomic structure Lond. Edinb. Dubl. Phil. Mag. 7237 [17] Jasper J, King E J and Mixon D G 2019 Game of Sloanes: best known packings in complex projective space Proc. SPIE 11138 111381E [18] Pérez-Salinas A, Cervera-Lierta A, Gil-Fuster E and Latorre J I 2020 Data re-uploading for a universal quantum classifier Quantum 4226 [19] Roca-Jerat S, Román-Roche J and Zueco D 2024 Qudit machine learning Mach. Learn.: Sci. Technol. 5015057 [20] Morris J R, Deaven D M and Ho K M 1996 Genetic-algorithm energy minimization for point charges on a sphere Phys. Rev. B 53 R1740 [21] Waldron S F 2018 An Introduction to Finite Tight Frames (Springer) [22] Bilyk D, Glazyrin A, Matzke R, Park J and Vlasiuk O 2022 Optimal measures for p-frame energies on spheres Rev. Mat. Iberoam. 38 1129–60 [23] Chen X, Hardin D P and Saff E B 2020 On the search for tight frames of low coherence J. Math. Anal. Appl. 27 2 [24] Doohovskoy A and Landkof N 1972 Foundations of Modern Potential Theory Grundlehren der Mathematischen Wissenschaften (Springer) (available at: https://books.google.es/books?id =ZUpxMQEACAAJ) [25] Hardin D P and Saff E B 2004 Discretizing manifolds via minimum energy points Notices Amer. Math. Soc. 51 1186–94 (available at: https://www.ams.org/journals/notices/200410/200410FullIssue.pdf) [26] Welch L 1974 Lower bounds on the maximum cross correlation of signals (corresp.) IEEE Trans. Inf. Theory 20 397 [27] Klappenecker A and Rotteler M 2005 Mutually unbiased bases are complex projective 2-designs Proc. Int. Symp. on Information Theory, 2005. ISIT 2005. pp 1740–4 [28] Benedetto J J and Fickus M 2003 Finite normalized tight frames Adv. Comput. Math. 18 357–85 [29] Casazza P G, Fickus M and Mixon D G 2012 Auto-tuning unit norm frames Appl. Comput. Harmon. Anal. 32 1–15 [30] Cahill J, Fickus M, Mixon D G, Poteet M J and Strawn N 2013 Constructing finite frames of a given spectrum and set of lengths Appl. Comput. Harmon. Anal. 35 52–73 [31] Dykema K and Strawn N 2003 Manifold structure of spaces of spherical tight frames (arXiv:math/0307367) [math.FA] [32] Weaire D and Aste T 2008 The Pursuit of Perfect Packing (CRC Press) [33] Haas J I and Casazza P G 2017 On the structures of grassmannian frames 2017 Int. Conf. on Sampling Theory and Applications (SampTA) (IEEE) [34] Bukh B and Cox C 2020 Nearly orthogonal vectors and small antipodal spherical codes Isr. J. Math. 238 359–88 [35] Rankin R A 1955 The closest packing of spherical caps in n dimensions Proc. Glasg. Math. Assn. 2139–44 [36] Conway J H, Hardin R H and Sloane N J A 1996 Packing lines, planes, etc.: packings in Grassmannian spaces Exp. Math. 5139 [37] Levenshtein V 1982 Bounds on the maximal cardinality of a code with bounded modulus of the inner product Soviet Math. Dokl. 25 526–31 [38] Bengtsson I and Zyczkowski K 2006 Geometry of Quantum States: An Introduction to Quantum Entanglement (Cambridge University Press) 18
Mach. Learn.: Sci. Technol. 6(2025) 035022 S Roca-Jerat and J Román-Roche [39] Sustik M A, Tropp J A, Dhillon I S and Heath R W 2007 On the existence of equiangular tight frames Linear Algebra Appl. 426 619–35 [40] Zauner G 2011 Quantum designs: foundations of a noncommutative design theory Int. J. Quantum Inf. 09 445–507 [41] Saff E B and Kuijlaars A B J 1997 Distributing many points on a sphere Math. Intell. 19 5–11 [42] Altschuler E L and Pérez-Garrido A 2005 Global minimum for Thomson’s problem of charges on a sphere Phys. Rev. E 71 047703 [43] Wales D J and Ulker S 2006 Structure and dynamics of spherical crystals characterized for the thomson problem Phys. Rev. B 74 212101 [44] Erber T and Hockney G M 1995 Comment on ‘method of constrained global optimization’ Phys. Rev. Lett. 74 1482 [45] Jasper J, King E J and Mixon D G Game of Sloanes (available at: www.math.colostate.edu/∼king/GameofSloanes.html) [46] Edelman A, Arias T A and Smith S T 1998 The geometry of algorithms with orthogonality constraints SIAM J. Matrix Anal. Appl. 20 303–53 [47] Medra A and Davidson T N 2014 Flexible codebook design for limited feedback systems via sequential smooth optimization on the Grassmannian manifold IEEE Trans. Signal Process. 62 1305 [48] Tropp J, Dhillon I, Heath R and Strohmer T 2005 Designing structured tight frames via an alternating projection method IEEE Trans. Inf. Theory 51 188 [49] Moscato P 2000 On evolution, search, optimization, genetic algorithms and martial arts - towards memetic algorithms Caltech Concurrent Computation Program [50] Wikipedia 2024 Thomson problem—Wikipedia, the free encyclopedia (available at: http://en.wikipedia.org/w/index. php?title=Thomson%20problem&oldid=1227607089) (Accessed 20 June 2024) [51] Sebastián Roca-Jerat J R-R 2025 (available at: https://github.com/Theory-and-Simulation-at-INMA/GAforMOF_public) 19