Oscillators that sync and swarm

Synchronization occurs in many natural and technological systems, from cardiac pacemaker cells to coupled lasers. In the synchronized state, the individual cells or lasers coordinate the timing of their oscillations, but they do not move through space. A complementary form of self-organization occurs among swarming insects, flocking birds, or schooling fish; now the individuals move through space, but without conspicuously altering their internal states. Here we explore systems in which both synchronization and swarming occur together. Specifically, we consider oscillators whose phase dynamics and spatial dynamics are coupled. We call them swarmalators, to highlight their dual character. A case study of a generalized Kuramoto model predicts five collective states as possible long-term modes of organization. These states may be observable in groups of sperm, Japanese tree frogs, colloidal suspensions of magnetic particles, and other biological and physical systems in which self-assembly and synchronization interact.

Synchronization occurs in many natural and technological systems, from cardiac pacemaker cells to coupled lasers. In the synchronized state, the individual cells or lasers coordinate the timing of their oscillations, but they do not move through space. A complementary form of self-organization occurs among swarming insects, flocking birds, or schooling fish; now the individuals move through space, but without conspicuously altering their internal states. Here we explore systems in which both synchronization and swarming occur together. Specifically, we consider oscillators whose phase dynamics and spatial dynamics are coupled. We call them swarmalators, to highlight their dual character. A case study of a generalized Kuramoto model predicts five collective states as possible long-term modes of organization. These states may be observable in groups of sperm, Japanese tree frogs, colloidal suspensions of magnetic particles, and other biological and physical systems in which self-assembly and synchronization interact.
This year marks the fiftieth anniversary of a breakthrough in the study of synchronization. In 1967, Winfree proposed a coupled oscillator model for the circadian rhythms that underlie daily cycles of activity in virtually all plants and animals [1]. He discovered that above a critical coupling strength, synchronization breaks out spontaneously, in a manner reminiscent of a phase transition. Then Kuramoto simplified Winfree's model and solved it exactly [2], leading to an explosion of interest in the dynamics of coupled oscillators [3][4][5]. Kuramoto's model in turn has been generalized to other large systems of biological oscillators, such as chorusing frogs [6], firing neurons [7][8][9][10][11], and even human concert audiences clapping in unison [12]. The analyses often borrow techniques from statistical physics, such as mean-field approximations, renormalization group analyses [13,14], and finite-size scaling [15,16]. There has also been traffic in the other direction, from biology back to physics. For example, insights from biological synchronization have shed light on neutrino oscillations [17], phase locking in Josephson junction arrays [18], the dynamics of power grids [19,20], and the unexpected wobbling of London's Millennium Bridge on opening day [21].
Studies of swarming and synchronization have much in common. Both involve large, self-organizing groups of individuals interacting according to simple rules. Both lie at the intersection of nonlinear dynamics and statistical physics. Nevertheless the two fields have, by and large, remained disconnected. Studies of swarms focus on how animals move, while neglecting the dynamics of their internal states. Studies of synchronization do the opposite: they focus on oscillators' internal dynamics, not on their motion. In the past decade, however, a few studies of "mobile oscillators," motivated by applications in robotics and developmental biology, have brought the two fields into contact [34][35][36][37][38]. Even so, the assumption has been that the oscillators' locations affect their phase dynamics, but not conversely. Their motion has been modeled as a random walk or as externally determined, without feedback from the oscillators' phases.
We suspect that somewhere in nature and technology there must be mobile oscillators whose phases affect how they move. For instance, many species of frogs, crickets, and katydids call periodically, and synchronize in vast choruses [6,[39][40][41]. The natural question is whether they tend to hop toward or away from others depending on the relative phases of their calling rhythms, and if so, what spatiotemporal patterns are produced.
A clue comes from the physics of magnetic colloids [42][43][44] and microfluidic mixtures of active spinners [45,46], both of which show rich collective behavior. In these systems, the particles or spinners attract or repel one another, depending on their orientations. Given that orientation is formally analogous to the phase of an oscillation (both being circular variables), a similarly rich phenomenology is expected for mobile oscillators whose phases affect their motion. We call these hypothetical systems 'swarmalators' because they generalize swarms and oscillators.
One possible instance of a swarmalator system is a population of myxobacteria, modeled in 2001 by Igoshin and colleagues [47]. The movements of these bacteria in space are thought to be influenced by an internal, biochemical degree of freedom, which appears to vary cyclically. Igoshin et al. [47] modeled it as a phase oscillator. Experimental evidence suggests that the evolution of this phase is influenced by the spatial density of neighboring cells; thus there appears to be a bidirectional coupling between spatial and phase dynamics, as required of swarmalators.
Tanaka and colleagues also made an early contribu-tion to the modeling of swarmalators [48,49]. They analyzed a broad class of models in the hope of finding phenomena which were not system-specific. They considered chemotactic oscillators, whose movements in space are mediated by the diffusion of a background chemical. The oscillators' consumption of this chemical depends on their internal states, thereby completing the bidirectional space-phase coupling. Tanaka et al. [48,49] began with a general model with these ingredients, from which they derived a simpler model by means of center manifold and phase-reduction methods.
Here we take a bottom-up approach. We propose a simple model of a swarmalator system which lets us study some of its collective states analytically. We hope our work will draw attention to this class of problems, and stimulate the discovery and characterization of natural and technological systems of swarmalators.

Results
The model. We consider swarmalators free to move in the plane. The governing equations arė for i = 1, . . . , N , where N is the population size, x i = (x i , y i ) is the position of the i-th swarmalator, and θ i , ω i and v i are its phase, natural frequency, and selfpropulsion velocity. The functions I att and I rep represent the spatial attraction and repulsion between swarmalators, while the phase interaction is captured by H att . The function F in equation (1) measures the influence of phase similarity on spatial attraction, while G in equation (2) measures the influence of spatial proximity on the phase attraction. Consider the following instance of this model: For simplicity, we chose power laws for I att , I rep and G along with analytically convenient exponents. The sine function in H att was similarly motivated, in the spirit of the Kuramoto model [2]. We first consider identical swarmalators so that ω i = ω and v i = v. Further, we assume propulsion with constant magnitude and direction v = v 0n wheren is a constant vector (we relax these simplifications later). Then by a choice of reference frame we can set ω = v 0 = 0 without loss of generality. Finally, by rescaling time and space we set A = B = 1. This leaves us with a system with two parameters (J, K). The parameter K is the phase coupling strength. For K > 0, the phase coupling between swarmalators tends to minimize their phase difference, while for K < 0, this phase difference is maximized. The parameter J measures the extent to which phase similarity enhances spatial attraction. For J > 0, "like attracts like": swarmalators prefer to be near other swarmalators with the same phase. When J < 0, we have the opposite scenario: swarmalators are preferentially attracted in space to those with opposite phase. And when J = 0, swaramalators are phase-agnostic, their spatial attraction being independent of their phase. To keep I att > 0, we constrain J to satisfy −1 ≤ J ≤ 1.
Before stating our results, we pause to discuss our model's features. As mentioned above, the model's purpose is to study the interplay between synchronization and swarming. But what precisely do we mean by swarming? While, to our knowledge, there is no unanimous classification, elements of a swarming system typically (i) attract and repel each other, leading to aggregation, and (ii) align their orientations so as to move in the same direction. Succinctly then, a swarming system models aggregation and/or alignment.
Our model accounts for aggregation, but not for alignment: the spatial dynamics (1) model phasedependent aggregation, while the phase dynamics (2) model position-dependent synchronization. There are no alignment terms. Indeed, the particles of our system do not have an orientation so there is nothing to align! We chose to neglect an orientation state variable, and thus alignment, for two reasons. The first was simply because we believe there are swarmalator systems in which orientation does not play a role, such as the Japanese tree frogs [6,41] or chemotactic oscillators [48,49]. The second was that modeling orientable swarmalators adds an additional layer of complexity; it gives each swarmalator an orientation β, increasing the number of state variables per swarmalator from three (a two-dimensional position (x, y) and an internal phase θ) to four.
In the interest of minimalism we wished to avoid this complication for now. Hence as it stands our model applies only to swarmalators without an orientation. However we later show that our results are robust to the inclusion of simple alignment dynamics, indicating their potential to hold for systems of orientable swarmalators as well.
Numerics. We performed numerical experiments to probe the behavior of our system. Unless otherwise stated, the simulations were run using python's ODE solver 'odeint'. We initially positioned the swarmalators in a box of length 2 and drew their phases from [−π, π], both uniformly at random. We found the system settles into five states (Supplementary . In three of these states, the swarmalators are ultimately static in space and phase. In the remaining two, the swarmalators move. However in all states, the density of swarmalators ρ(x, θ, t) is time-independent, where ρ(x, θ, t) dx dθ gives the fraction of swarmalators with positions between x and x + dx, and phases between θ and θ + dθ at time t. In Fig. 1 we show where these states occur in the (J, K) parameter plane. We next discuss these five states.  (3) and (4) with A = B = 1 and vi = ωi = 0 in the (J, K) plane. The straight line separating the static async and active phase wave states is a semi-analytic approximation given by (18). Black dots show simulation data. These were calculated by finding where the order parameter S bifurcates from zero, defined by where its second derivative is largest. Similarly, the red dots separating the active phase wave and splintered phase wave states were found by finding where the order parameter γ bifurcates from 0. The red dashed line simply connects these points and was included to make the boundary clearer.
1. Static synchrony. The first state is shown in Fig. 2(a). The swarmalators form a circularly symmetric, crystal-like distribution in space, and are fully synchronized in phase, as indicated by all of them having the same color in Fig. 2(a). Since the swarmalators are ultimately stationary in x, and they all end up at the same phase θ, we call this the 'static sync' state. It occurs for K > 0 and for all J, as seen in Fig. 1.
In the continuum limit, this state is described by ρ(r, φ, θ, t) = 1 2π g 1 (r)δ(θ − θ 0 ), where φ is the spatial angle φ = tan −1 (y/x), and the final phase θ 0 is determined from the initial conditions. In Supplementary Note 1 we uset a technique used by Kololnikov et al [50] when studying swarms to derive the following pair of integral equations for g 1 : where K, E are the complete elliptic integral of the first and second kinds, and R is the radius of the disk in the (x, y) plane which must be determined. We were unable to solve these equations for g 1 (r) and R, so instead solve them numerically, and show the results in Supplementary Note 1. Analytic progress can however be made if a linear attraction kernel I att (x) = x, is used instead of the unit vector kernel we are currently considering. Then, as shown in Kolokolnikov et al. [50], the radial density becomes g 1 (r) = 1, i.e swarmalators are uniformly distributed. In this special case we can also calculate R analytically, We show a full derivation in the Methods section. In dimensionful units, this reads R = B/(A + J). Thus the radius is determined by the ratio of the strengths of the attractive to the repulsive forces I att , I rep (in the static sync state, the effective attraction force is A + J cos(θ j − θ i ) = A + J, since all swarmalators have the same phase). Figure 3(a) shows the prediction (7) agrees with simulation results. 2. Static asynchrony. Swarmalators can also form a static async state, illustrated in Fig. 2(b). At any given location x, all phases θ can occur, and hence all colors are present everywhere in Fig. 2(b). This is seen more clearly in a scatter plot of the swarmalators in the (φ, θ) plane, depicted in Fig. 4(a). Notice that the swarmalators are distributed uniformly, meaning that every phase occurs everywhere. This completely asynchronous state occurs in the quadrant J < 0, K < 0, and also for J > 0 as long as J lies in the wedge J < |K c | shown in the phase diagram in Fig. 1. As for the static sync state, we were able to calculate the radius of the circular distribution when a linear attraction kernel I att (x) was used. In the Methods section we show this radius is given by which agrees with simulation as shown in Fig. 3(a).
3. Static phase wave. The final stationary state occurs for the special case K = 0 and J > 0. This means the swarmalators' phases are frozen at their initial values. How, then, does the population evolve? Since J > 0, 'like attracts like': swarmalators want to settle near others with similar phase. The result is an annular structure where the spatial angle φ of each swarmalator is perfectly correlated with its phase θ, as seen in Fig. 2(c) and 4(b).
Since the phases run through a full cycle as the swarmalators arrange themselves around the ring, we call this state the 'static phase wave'. In density space, this static phase wave state is described by ρ(r, φ, θ) = g 2 (r)δ(φ ± θ + C 1 ) where the ± and the constant C 1 , are determined by the initial conditions. In the Methods section we again consider the linear attraction kernel, and find that g 2 (r) can be obtained analytically, . This in turn lets us calculate the inner and outer radii R 1 , R 2 of the annulus: Figure 3(b) shows agreement between these predictions and simulation.
4. Splintered phase wave. Moving from K = 0 into the K < 0 half-plane, we encounter the first non-stationary state, shown in Fig. 5(a) and Fig. 4(c). As can be seen, the static phase wave splinters into disconnected clusters of distinct phases. Accordingly we call this state the 'splintered phase wave'. It is unclear what determines the number of clusters. Fewer are found when smaller length scales for the interaction functions I att , I rep , G are used. However the parameters J, K also play a role, although how precisely has not yet been determined. Within each cluster, the swarmalators "quiver," executing small amplitude oscillations in both position and phase about their mean values. 5. Active phase wave. As K is further decreased, these oscillations increase in amplitude until the swarmalators start to execute regular cycles in both spatial angle and phase. This motion is best illustrated in Fig. 4(d), in which shear flow about the φ i = θ i ± C axis is evident. This type of flow follows from a conserved quantity in the model: φ = θ = 0, which can be seen by averaging equations (3) and (4) over the population.
There are also oscillations in the radial position, where each swarmalator travels from the inner rim to the outer rim and back, in one orbit around the annulus. This new, and final, state is similar to the double milling states found in biological swarms [51], where populations split into counter-rotating subgroups. It is also similar to the vortex arrays formed by groups of sperm [52], where the angular position φ of each sperm is correlated with the phase θ associated with the rhythmic beating of its tail.
At the density level, the state is like a blurred version of the static phase wave, insofar as the spatial angle and phase of a given swarmalator are roughly correlated, as evident in Fig. 4(d). However unlike the static phase wave, the swarmalators are non-stationary. To highlight this difference, we name this state the 'active phase wave'.
Order parameters. Having described the five states of our system, we next discuss how to distinguish them. We define the following order parameter, where φ i := tan −1 (y i /x i ). As shown in Fig. 6, the magnitude S ± varies from 1 to 0 as we decrease K from 0, passing through all the states in the upper left quadrant of the (J, K) plane. (Note that all states except for static sync occur in this part of parameter space, so we hereafter confine our attention to just this region.) To see why S ± varies in this manner, recall that in the static phase wave, the spatial angle and phase of each swarmalator are perfectly correlated, φ i = ±θ i + C 1 (recall that the ± and C 1 are determined by the initial conditions. This means either S + or S − is non-zero). Therefore S ± = 1 at K = 0, where the static phase wave state is realized. Moving into the K < 0 plane we encounter the splintered phase wave. Here the correlation between φ i and θ i is not perfect, and so S ± < 1. As K is decreased the decay of this correlation is non-monotonic, which induces a dip in S ± as seen in Fig. 6. Once the active phase wave is reached however this non-monotonicity disappears. As a result S ± declines uniformly until it finally drops to zero when the static async state is reached, in which φ i and θ i are fully uncorrelated.
Active phase wave Static async To sum up, S ± is zero in the static async state, bifurcates from zero at a critical coupling strength K c , is non-zero in the non-stationary splintered and active phase wave states, and is one in the static phase wave state.
Notice however that since S ± is non-zero for both the splintered and active phase wave, it cannot distinguish between these states. To do this, we use another order parameter γ. We define this to be the fraction of swarmalators that have executed at least one full cycle in phase and position, after transients have been discarded. Then γ is zero for the splintered phase wave, and non-zero for the active phase wave. Using γ in concert with S ± then allows us to discern all the macroscopic states of our system as illustrated in Fig. 6.
Stability analysis. To calculate the critical coupling strength K c at which the static async state loses stability, we consider perturbations η in density space defined by ρ(x, θ, t) = ρ 0 (x, θ) + η(x, θ, t) where ρ 0 (x, θ, t) = (4π 2 ) −1 g 1 (r) is density in the static async state. In Supplementary Note 2, we substitute this ansatz into the continuity equation, expand η in a Fourier series, η(x, θ, t) = n=0 b n (x, t)e inθ + c.c., and derive evolution equations for the harmonics b n . We show the critical mode is b 1 (x, t) (higher modes are zero, and the zeroth mode is stable) which obeyṡ We next expand in an additional Fourier series: . Substituting this ansatz into (14) leads to a evolution equation for each mode f m (r, t). We then set f m (r, t) = e λmt c m (r) and derive the following eigenvalue equation: where R is the radius of the support of the density in the static async state. We focus first on the zeroth mode f 0 for which we can compute H 0 (r, s) analytically: H 0 (r, s) = J(r 2 − s 2 )g (r) + 2rg(r)(J + K) 4π 2 r(r + s) K 4rs (r + s) 2 where K, E are the complete elliptic integral of the first and second kinds. We were unable to solve (16) for λ 0 analytically. Instead, we found it numerically by approximating the integral using gaussian quadrature. This reduces (16) to the form λ c i = M ij c j where M ij = H 0 (r i , r j )w j , w j are gaussian quadrature weights, r i = i * (R/N ) and i = 1 . . . N . The eigenvalues λ 0 (N ) of M ij , which depend on the number of grid points N used in the quadrature, then approximate λ 0 . The eigenvalues λ 0 (N ) have unexpected properties. The real part of the most unstable eigenvalue, denoted λ * 0 (N ), is positive for all J, K. This tells us that f 0 is always unstable, which in turn tells us that the static async state is always unstable! In Fig. 7 we plot λ * 0 (N ) versus K for J = 0.5 and N = 200 grid points. As can be seen it is small but positive for sufficiently negative K. Note however that there is a transition-like point K * 0 ≈ −0.5 beyond which λ * 0 (N ) increases sharply. Figure 7 also shows λ * m (N ) for m = 1, 2, 3, 4, which have the same behavior as λ * 0 (N ): they are small but positive for K < K * m , and grow sharply for K > K * m .
The real part of the most unstable eigenvalue λ * m of the first five modes fm calculated from equation (15) for J = 0.5. Notice that they are all is positive for all K. Each λ * m was calculated by approximating the integral of the R.H.S. of (15) using gaussian quadrature with N = 200 grid points and diagonalizing the resulting matrix. The upper limit of integration R = 1.15 was measured from simulations. The radial density g(r) was determined numerically as discussed in Supplementary Note 1. The kernels Hm in equation (15) for m > 1 were calculated numerically. The dashed line marks the approximation to the critical coupling strength (18).
Small but positive eigenvalues for K < K * m were a surprise. We were expecting them to be negative, since simulations show the static async state is stable. We were thus suspicious of these results, and doubted the accuracy of the approximation λ * 0 (N ) to the true λ * 0 . We therefore repeated the calculation for different values of N up to N = 1600 in Supplementary Note 2. Contrary to our expectations, we found that while the λ * m (N ) got smaller, they consistently remained positive for K < K * m . We also crudely investigated the N → ∞ limit by (i) fitting our data to curves of the form a + b(N ) c and (ii) using Richardson extrapolation. Due to the small magnitudes of the λ * m (N ) however, the results were rather unconvincing. Typical values for the best fit parameter a, which represents the limiting behavior of λ * m , were a ∼ 10 −6 . The confidence interval for this parameter also contained positive and negative values. On top of that the approximations from methods (i) and (ii) gave inconsistent results. Hence we were unable to reliably determine the sign of λ * m when K < K * m and N → ∞, which preventing us from accurately ascertaining the stability of the static async state. We restate however that the fact that λ * m > 0 for the large but finite value of N we used is significant evidence that the unanticipated instability of the static async state is genuine.
While a rigorous determination of the sign of λ * m when K < K * m remains elusive, our analysis certifiably shows its magnitude is very small. Hence, whatever the stability or instability of the m-th mode f m turns out to be, it must be weak. In turn, then, the static async state has weak stability properties for K < K c , where K c = min m K * m (i.e., at the point the most unstable f m loses stability). How can we find this K c ? In Fig. 7 we see the f 1 becomes unstable first. There are of course an infinite number of modes, but as can be seen, λ * m appears to decrease with increasing m. Thus we assume min m K * m = 1. In Supplementary Note 2 we approximate K * 1 = argmax d 2 λ * 1 dK 2 , calculate it for different J, and find the following linear relation: Summarizing our main result: in the continuum limit N → ∞, the static async state is unstable for K > K c , and either weakly stable, neutrally stable, or weakly unstable for K < K c . Further, numerical evidence suggests that the third option, weakly unstable, is the most likely. While this result is perhaps unsatisfying from a technical perspective, in practice it has utility. For example as shown in Fig. 1, the approximation (18) for K c agrees reasonably well with finite N simulations.
Genericity. Our analysis so far has been for the instance (3), (4), of the model defined by (1), (2). This begs the question: are the phenomena we found generic to the model? Or specific to this instance of the model? To answer this question, we ran simulations for different choices of the functions I rep , I att and G; see Supplementary Note 4.
In all but one case, we found the same phenomena. The exception is when a linear attraction kernel I att (x) = x is used. Here we found new states, which we call 'non-stationary phase waves'. They are similar to the active phase wave, except now the phase Ψ ± of the order parameter W ± begins to rotate, reminiscent of the traveling wave states found in the Kuramoto model with distributed coupling strengths [53,54]. We further discuss this and other properties in Supplementary Note 4.
Noise and disordered natural frequencies. The swarmalators previously considered were identical and noiseless. We now relax these idealizations. Then the governing equations arė where ω i are random variables drawn from a Lorentzian . By a change of frame we set µ = 0, leaving just σ, which quantifies the strength of the disorder. We choose white noise variables η i (t) and ξ x i (t) with zero mean and strengths D x , D y , D θ characterized by ξ x i (t)ξ x j (t ) = 2D x δ ij δ(t − t ), etc.
Simulations show that when just phase noise D θ is turned on, noisy versions of all the states are realized. The splintered phase wave however degenerates into the active phase wave for all but the smallest noise D θ > ∼ 10 −3 . In the remaining states, the spatial densities remain compact supported with the same radii, except now the swarmalators have noisy phase motion (this induces some spatial movement, which disappears when N → ∞ as we show in Supplementary Note 3). Hence the following states, where we have swapped the descriptor 'static' with 'noisy', are robustly realized when D θ > 0: noisy phase wave, active phase wave, noisy async.
Frequency disorder σ > 0 has a more serious effect. Since g(ω) is symmetric about zero, there are equal numbers of swarmalators with oppositely signed natural frequencies. This turns the static/noisy phase wave into the active phase wave, in the sense that counter-rotating groups develop. This is not seen in the async state.
Here, there are noisy spatial movements which vanish as N → ∞, as in the noisy async state. In contrast however, the swarmalators execute noisy, but full, phase cycles. To highlight this distinction, we rename the state the active async state. The states realized are then the active phase wave and the active async.
Finally spatial noise D x , D y > 0 simply blurs the spatial densities of the states. No other phenomena are induced. Hence when D θ , σ, D x , D y > 0, we again get the active phase wave and active async states.
In Fig. 8 we plot the order parameter S(K) for different amounts of noise and frequency disorder. As for the original model, S simply declines to zero as K is decreased, with the noise and disordered frequencies changing just the shape of the curves and the value of K c . Note the disappearance of the dip in S for small K, which indicates the absence of the splintered phase wave state. Note also we do not plot the second order parameter γ which discerns the splintered phase wave since this state does not robustly exist when σ, D θ = 0.
Swarmalators in 3D. So far we have considered swarmalators moving in two dimensions. While there are physical systems where this approximation is valid, such as certain active colloids [55] or sperm, which are often attracted to two dimensional surfaces [56], this restriction was mostly for mathematical convenience. Here we explore the more physically realistic case of motion in three spatial dimensions (in Supplementary Note 6 we also explore motion in one dimension). For simplicity we consider the case of identical swarmalators with no noise, although we relax these idealizations in Supplementary Note 5. Our system is theṅ where x i = (x i , y i , z i ). These are the same as equation (3) and (4), except the exponent of the hard shell repulsion is now 3 (we choose this because it yields simple formulas for the radii of certain states).
Simulations show that analogues of the states found in 2D are realized. We show these as scatter plots in the (x, y, z) plane in Fig. 9. We also provide movies of the evolution to these states in Supplementary Movies 9-12. The static sync and async states become spheres (note we do not plot the static sync state due to space limitations) as seen in panel (a). As in the 2D case, we can calculate their radii when a linear attraction kernel is used, which agree with simulation as shown in Supplementary Note 5.
In panel (b) we show the static phase wave becomes a sphere with a cylindrical hole through its center. The orientation of this cylinder is determined by the initial conditions. The phase and azimuthal angle φ = tan −1 (y/x) are correlated in the same way for each value of the polar angle α = cos −1 (z/ x 2 + y 2 + z 2 ) (when the azimuthal and polar angles are measured relative to the axis of the cylindrical hole). We show this more clearly in a scatter plot in the (θ, φ) plane in Supplementary Note 5 .
As in the 2D model, this correlation between φ and θ persists for the splintered phase waves and active phase wave states as can be seen in panels (c) and (d) of Fig. 9. The motion of the swarmalators in these states are as before: in the splintered phase wave they 'quiver', executing small oscillations in space and phase, while in the active phase wave they execute full rotations (note the spatial component of these rotations are in the azimuthal directionφ only, not in the polar direction α). In Supplementary Note 5 we show how the order parameters S ± , γ can also be used to differentiate these 3D states. Alignment and self-propulsion. Up to now we have considered the trivial case of swarmalators that propel themselves with constant magnitude and direction, in a manner uninfluenced by their neighbors. This allowed us to set this term to zero via a change of reference. In many real systems, however, such behavior is unrealistic: individuals often adjust the direction of their motion to align with that of their neighbors. Vicsek studied this alignment effect in a seminal work [29].
We here partially explore the effect of alignment on swarmalator systems. Accordingly we endow each swarmalator with an orientation β, which characterizes the direction of its self-propulsion. The inclusion of alignment makes our model complicated; there are now four state variables (x, y, θ, β) per swarmalator, which could interact with each other in potentially many ways. Furthermore, there are six parameters (J, K, σ, D θ , D x , D y ), not to mention any additional parameters governing the evolution of β. An exhaustive study of orientable swarmalators is thus beyond the scope of the present work. Hence, we restrict ourselves to answering a simple question: are the states of our swarmalator system robust to the inclusion of simple alignment dynamics?
To this end, we study the simplest possible extension to our current model: we choose Vicsek type interactions between x and β, and leave β and the phase θ uncoupled (although they are indirectly coupled through the position x). Our system then readṡ wheren = (cos β, sin β), Λ i is the set of swarmalators within a distance δ of the i-th swarmalator, and |Λ i | is the number of such neighbors. The ζ i (t) is a white noise variable with zero mean and strength D β characterized by Simulations show that for certain parameter values aligned versions of all our states persist. We plot two of these in panels (a) and (b) of Fig. 10, where each swarmalator is depicted as a colored arrow, oriented according to β, and colored according to phase. As can be seen the swarmalators are aligned, with their space-phase distributions being the same as before. In contrast to the original model, however, the center of mass of each distribution now moves (in a direction determined by the initial conditions). In this sense the states are mobile. They are however equivalent to their static versions via a change of reference frame, x → x + v 0 t. For larger D β , the unaligned versions of the same states are realized, as illustrated in panels (c) and (d) of Fig. 10.
We have demonstrated that the phenomena of our system are insensitive to the inclusion of simple alignment dynamics. We restate however that we have not comprehensively explored the space defined by the other parameters (J, K, σ, v 0 , D x , D y ) given its large size. Thus it remains to be seen if new states will be found.

Discussion
We have examined the collective dynamics of swarmalators. These are mobile particles or agents with both phase and spatial degrees of freedom, which lets them sync and swarm. Furthermore, their phase and spatial dynamics are coupled. By studying simple models, we found this coupling leads to rich spatiotempo- ral patterns which we explored analytically and numerically. These patterns were robust to modifications to the model, namely motion in one, two, and three spatial dimensions, distributed natural frequencies, noisy interactions, and alignment dynamics. We thus believe they could be realized in nature or technology. A pertinent future goal, then, is to investigate the behavior of real-world systems of swarmalators. As mentioned in the introduction, colloidal suspensions of magnetic particles [42][43][44] or active spinners [45,46] are promising candidates. For example, structures equivalent to the static phase wave state have been experimentally realized by Snezhko and Aranson, when studying the behavior of ferromagnetic colloids at liquid-liquid interfaces [43] (the particles comprising the colloids can be considered swarmalators if we interpret the angle subtended by their magnetic dipole vectors as their phase). As shown in Fig. 4 of [43], the colloids can form asters. These are structures composed of radial chains of magnetically ordered particles, which "decorate slopes of a self-induced circular standing wave" [43], analogous to the annular pattern of correlated phases and positions of the static phase wave shown in Fig. 2(c).
Perhaps colloidal equivalents of the splintered and active phase wave states could also be realized. Aside from being theoretically interesting, the ability to engineer these states could have practical application. For instance, Snezhko and Aranson also show that asters can be manipulated to capture and transport target particles. The non-stationary behavior of the splintered and active wave states might also have locomotive utility. Tentative evidence for this claim is provided by populations of cilia, whose collective metachronal waves, similar to the motion of swarmalators in the aforementioned states, are known to facilitate biological transport [57][58][59].
Other plausible systems of real-world swarmalators are biological microswimmers, self-propelled microorganisms capable of collective behavior [60]. One such contender is populations of spermatoza, which exhibit rich swarming behavior such as trains [61,62] and vortex arrays [52], the latter of which is reminiscent of the active phase wave state, as mentioned in the Results section. The phase variable for each sperm is associated with the rhythmic beating of the sperm's tail, which can synchronize with that of a neighboring sperm [63,64]. It has been theorized that this can induce spatial attraction [65], leading to clusters of synchronized sperm, consistent with experimentally observed behavior [66].
There are also theoretical avenues to explore within our proposed model of swarmalators. For instance the curious stability properties of the static async state deserve further study. Another route would be to include more realism by including heterogeneity in the coupling parameters K, J, or by choosing more complicated interaction functions I att , I rep , G, H att . For example we chose H att (θ) = sin(θ) to mimic the Kuramoto model, but as we saw, it led to just the trivial static sync state when K > 0. Perhaps choosing the more realistic Winfree model for the phase dynamics, which gives rise to richer collective behavior, would lead to more interesting swarmalator phenomena in this parameter regime.
Perhaps the most important direction for future work is to more fully explore the interplay among aggregation, alignment, and synchronization-or put another way, to explore the collective behavior of particles with a position x, an orientation β, and an internal phase θ. The primary goal of our work is to draw attention to this class of problems, which we believe define a wide landscape of emergent behavior. In this work, we have started to map out this landscape by studying a simple model that contains a subset of these three effects, namely aggregation and synchronization.
Others have considered the remaining subsets. For example, Leon and Liverpool have explored the interaction between alignment and synchronization [67]. They introduced a new class of soft active fluids whose units have an orientation and phase. They found this mixture can either enhance or inhibit the transition from disordered states to states with polar order. The latter states are roughly similar to the aligned static async states. They also found transitions from disordered states to states with phase order, which are analogous to unaligned static sync states. Yet counterparts of the static, splintered, and active phase waves were not reported.
The final combination, aggregation and alignment, is perhaps the most well studied, in both new models and old. For instance, Starnini et al. [68] recently introduced a model of mobile particles capable of aggregating and aligning their opinions, and found the emergence of echo chambers. Even in the classic Vicsek model and its numerous extensions, new phenomena are still being found. For instance, Kruk et al. found that delayed alignment in the Vicsek model produces self-propelled chimeras [69]; perhaps delayed phase interactions could lead to similar states for swarmalators. Liebchen and Levis [70] considered units with an intrinsic rotation, and found 'phase separated droplets': clusters of rotationsynchronized particles surrounded by a sea of incoherent particles (multiple droplets are also possible). These droplets are similar to our static sync states, but they differ in the crucial respect that the entire population is synchronized in our static sync state. Here too, the counterparts of our static, splintered, and active phase waves were not seen.
Thus, to the best of our knowledge, no other models display states analogous to the splintered phase waves and active phase waves found in our swarmalator model. In that sense, those two states are unprecedented.

Methods
Properties of static sync and async state. We here use techniques used by Fetecau et al. [50] when studying swarm dynamics to study the static sync and static async states with a linear attraction kernel I att (x) = x is used. We start with the async state whose density is We wish to solve for the radial density g 1 (r) and the radius R of its support. In this state the swarmalators are at rest and their phases are unchanging, so v ≡ 0, where v = (v x , v y , v θ ). As we will show, it is also useful to consider the divergence of the velocity, which must also be zero (from the continuity equation for the conservation of swarmalators, and by applying the assumptions that the density for the static async state is stationary and the velocity is zero). This gives us a pair of simultaneous equations, We begin with divergence term given by (30). In cartesian coordinates the velocity reads v x (x, θ, t) = x − x 1 + J cos(θ − θ) − (31) x − x |x − x| 2 ρ(x,θ, t) dx dθ, v θ (x, θ, t) = sin(θ − θ) |x − x| ρ(x,θ, t)dx dθ.
The divergence has a spatial and phase component: The phase component ∂ θ v θ is trivially zero, since the swarmalators' phases are uniformly distributed in phase in the static async state. We find the spatial component by applying ∇ x to (31): Here we have used the identity (expressed most cleanly in cartesian coordinates) Simplifying this, and substituting ∂ θ v θ = 0 gives the full divergence ∇.v = 2πρ(x, θ) − 2 1 + J cos(θ − θ) ρ(x,θ, t) dx dθ.
We see that v x = 0 at θ = θ 0 if R = 1, as required.
Properties of static phase wave state. Here we calculate the density of swarmalators, and inner and outer radii R 1 , R 2 of the annulus, in the static phase wave state, when a linear attraction kernel is used.
Next we use the result (56) in v = 0 to compute the inner and outer radii R 1 , R 2 . We first evaluate v r by substituting (56) into (51). Performing the integration we get v r (r) = Cr + D r with Since v ≡ 0, the coefficients C, D must be zero. This yields two equations for R 1 , R 2 , with solutions with and small-J expansion given by