Configurational-space separation and structure selection in three hard squares
Abstract
Self-assembly of hard particles with diverse shapes gives rise to a rich variety of structures through excluded-volume constraints alone. Here we show that even a minimal system of three hard squares confined in a two-dimensional periodic box exhibits nontrivial configurational behavior relevant to structure selection. As the packing fraction increases, radial distribution functions obtained from Markov-chain Monte Carlo and uniform non-overlapping insertion sampling agree at low densities, deviate markedly over an intermediate range, and converge again at higher densities. Pressure measurements provide strong numerical evidence that the discrepancy originates from the separation of the allowed configurational space into two disconnected regions above a characteristic density. We identify the separation density as , construct explicit overlap-free transition pathways connecting the two regions immediately below it, and quantify their relative configurational-space volumes. At higher packing fractions, an approximately L-shaped arrangement of the particle centers becomes strongly favored over a staggered one, revealing a structural motif characteristic of tetratic and square-lattice ordering in larger hard-square systems. These results show that excluded-volume geometry can govern both configurational connectivity and local structure selection even in a three-particle system, revealing how signatures of many-particle self-assembly can already emerge in the few-particle limit.
Introduction. Hard-particle systems—where particles interact solely through excluded-volume constraints—exhibit a remarkable variety of self-assembled structures determined by particle shape and packing fraction (e.g., Refs. [18, 34, 19, 27, 1, 14, 9, 33, 30, 5, 16, 6, 2, 23, 22, 35, 37, 31, 26, 25]), ranging from disordered fluids [40, 20] and liquid crystals [13, 28, 24] to plastic crystals [30, 29, 15], quasicrystals [19, 12], and complex crystals with unit cells containing tens of particles [9]. Previous studies have mainly focused on many-particle systems, addressing collective ordering, equilibrium phases, and phase transitions (e.g., Refs. [19, 27, 1, 30, 5, 16, 6, 2, 35, 29, 15, 12]). Large-scale simulations, for example, have shown that melting scenarios depend sensitively on particle shape and may require systems containing up to millions of particles to resolve the decay of order-parameter correlations [6, 10, 32, 21]. By contrast, the few-particle limit remains much less explored, particularly with respect to how the connectivity of the allowed configurational space affects structural accessibility and selection, and whether local ordering tendencies characteristic of many-particle systems can already emerge at such minimal scales.
To address these questions, we study three hard squares confined in a two-dimensional periodic square box [Fig. 1(a)] using both Markov-chain Monte Carlo (MCMC) and uniform non-overlapping insertion sampling. We find that the two methods yield markedly different structural statistics near . Analysis of the pressure provides strong numerical evidence that the allowed configurational space separates into two disconnected regions above a separation density . Explicit overlap-free transition pathways below this density reveal a narrow geometric bottleneck, and a geometric construction yields . At higher packing fractions, we further find a pronounced preference for an approximately L-shaped arrangement of the particle centers over a staggered one. This local ordering motif is characteristic of both tetratic and square-lattice ordering in larger hard-square systems. These results show that even three hard squares can exhibit nontrivial configurational connectivity and local ordering tendencies relevant to many-particle self-assembly.
Methods. We study three hard squares confined in a square box with periodic boundary conditions using the hard-particle Monte Carlo module of HOOMD-blue [17, 3]. In MCMC sampling, the particles evolve through local translational and rotational moves. For the calculation of in Fig. 1(b), the system is initialized from the class-I configuration shown in Fig. 2(a) and uniformly rescaled to the target packing fraction. For the pressure calculations in Fig. 2, separate MCMC simulations are initialized from representative configurations of classes I and II to obtain the two pressure branches. Pressure data are reported in dimensionless form as , where and is the square side length; and are used in the simulations. In uniform non-overlapping insertion sampling, three particles are placed sequentially at random positions and orientations, and a configuration is accepted only if all particles and their periodic images are non-overlapping [36, 38]. Thus, this method samples the allowed configurational space uniformly. Details of the sampling protocols, pressure calculations, machine-learning classification, and Monte Carlo chain-of-states construction are provided in the Supplemental Material.
Results and discussion. Figure 1(b) compares the radial distribution function obtained from MCMC and uniform insertion sampling at selected packing fractions, where denotes the center-to-center distance between square particles [Fig. 1(a)]. For the MCMC simulations, the system is initialized from the L-shaped class-I configuration rescaled to the target packing fraction. The two methods agree well for , as indicated by the small values shown in the inset. At , however, a clear discrepancy emerges, with becoming significantly larger. At higher packing fractions, and , the difference decreases again.
To understand this anomalous behavior, we further examine the pressure of the system. The MCMC pressures are shown by the red circles in Fig. 2(b) (see Supplemental Material, Sec. III, for details). Overall, the pressure increases with , while any anomalous behavior near is not clearly resolved on this scale. We therefore perform additional simulations in the region highlighted by the orange dashed box in Fig. 2(b), as shown in the enlarged view in Fig. 2(c). The denser sampling reveals a small range around in which the MCMC pressure varies irregularly and shows substantial run-to-run variation. In contrast, the pressure obtained from uniform insertion sampling varies smoothly across this range [green solid line in Fig. 2(c)]. Below this irregular range, the insertion and MCMC pressures agree closely, whereas on the higher- side, the insertion pressure lies systematically above the MCMC values shown by the red circles.
As the pressure obtained from uniform insertion sampling represents an ensemble average over all allowed configurations, its deviation from the MCMC results indicates that the MCMC trajectories do not fully explore the allowed configurational space within the finite simulation time. By examining the configurations sampled by the two methods, we identify a second configuration class, denoted class II, in which the three squares form a tilted linear arrangement at with respect to the box sides [Fig. 2(a), II]. The maximum packing fraction of class II is , lower than for class I [7]. We then perform MCMC simulations initialized from class-II configurations. The resulting pressures, shown by the blue circles in Fig. 2(b), increase rapidly as approaches . A closer examination of the region near shows that two distinct pressure branches emerge for [Fig. 2(c)]. The class-II branch lies above the class-I branch, while the uniform insertion results lie between the two. For , the three results converge to the same curve. These observations provide strong numerical evidence that the allowed configurational space separates into two disconnected regions above and becomes connected below this density. The irregular MCMC pressures around can then be understood as a finite-time sampling regime in which different trajectories access the class-II region to different extents, leading to run-dependent pressure estimates.
We next examine how the two configuration classes become connected near . Representative snapshots along a transition pathway observed directly by MCMC at are shown in Fig. 3(a)–(d) (see also Supplemental Movie S1). The pathway starts from a configuration in the larger configurational region associated with class I [Fig. 3(a)], with the particle orientations indicated by the pink symbols in Fig. 3(e). Squares 1 and 2 then rotate clockwise, while square 3 rotates counterclockwise, as indicated by the red arrow, leading to the intermediate configuration in Fig. 3(b). The corresponding orientations are marked by the dark-blue symbols in Fig. 3(e). Further rotation brings square 3 into a nearly collinear arrangement with squares 1 and 2 [Fig. 3(c)], as highlighted by the dashed red rectangle. At this stage, the three squares also have nearly the same orientation, with their orientations lying in a low-probability region of the orientation distribution in Fig. 3(e), indicating that the system has reached a narrow bottleneck in configurational space. The three squares subsequently undergo a collective clockwise rotation, as indicated by the red arrow in Fig. 3(c), and evolve into the configuration shown in Fig. 3(d), thereby passing through the bottleneck and entering the smaller configurational region associated with class II.
As approaches , the connecting channel becomes increasingly narrow, making such transitions difficult to sample directly by MCMC. We therefore employ a Monte Carlo chain-of-states method in configurational space to search for transition pathways closer to this density. In this approach, the two endpoints of each chain are fixed to representative configurations of classes I and II, respectively, while the intermediate configurations are relaxed subject to the hard-particle constraints (see Supplemental Material, Sec. IV, for details). Remarkably, even at , the method identifies two distinct overlap-free pathways connecting classes I and II, as shown in Fig. 3(f)–(i) and (k)–(n); see also Supplemental Movies S2 and S3. The pathway in Fig. 3(f)–(i) closely resembles the transition observed directly by MCMC at in Fig. 3(a)–(d). By contrast, along the second pathway [Fig. 3(k)–(n)], the three squares undergo a collective counterclockwise rotation and pass through a nearly collinear bottleneck, highlighted by the red dashed rectangle in Fig. 3(m), before entering the class-II region. Despite their different rotational routes, all three pathways pass through essentially the same bottleneck, characterized by a compact, tilted arrangement of three nearly parallel squares. This recurring geometric structure suggests an origin for the configurational-space separation near . As shown in the Supplemental Material, Sec. V, a geometric construction based on this bottleneck yields and , with the latter indicated by the red dashed lines in Fig. 3. These values are consistent with the separation density and bottleneck orientation observed in the simulations.
When the two configurational regions are disconnected, their relative volumes can be inferred from three pressures: the pressures of the two individual branches and the ensemble-averaged pressure obtained from uniform insertion sampling. At the separation density , this analysis gives , where denotes the configurational-space volume associated with class II and denotes the total configurational-space volume (see Supplemental Material, Sec. III). To test the consistency of this two-region picture, for we further classify the successful configurations generated by uniform insertion sampling into classes I and II using a machine-learning classifier trained on MCMC samples, and compute the pressure of each class separately (see Supplemental Material, Sec. VI). The resulting class-resolved pressures, shown by the black solid lines in Fig. 2(c), agree well with the corresponding MCMC branches. Using these class-resolved pressures together with the ensemble-averaged insertion pressure at gives , in close agreement with the branch-pressure estimate above. This agreement further supports the self-consistency of the two-region picture.
This configurational-space picture also explains the nonmonotonic difference between the MCMC and uniform-insertion results in Fig. 1(b). For , the allowed configurational space is connected, and the curves obtained from the two sampling methods agree closely. At , the connecting channel has narrowed to a marginal bottleneck. Consequently, the MCMC simulations used for Fig. 1(b), which are initialized in class I, remain effectively confined to the class-I region over the finite simulation time, whereas uniform insertion samples both configurational regions. This leads to the largest discrepancy between the two curves. As increases further to , the relative configurational-space volume of class II decreases, reducing its contribution to the uniform-insertion ensemble and hence the difference between the two methods. Finally, for , the class-II region no longer exists. Thus, at , both methods sample only the class-I region, and their results again show close agreement.
To characterize the relative positions of neighboring squares, we define a local order parameter as follows. As shown in Fig. 4(a), for each reference square we consider the four adjacent regions sharing one side with it, indicated by the dashed outlines. If the center of mass of another square or one of its periodic images lies within one of these regions, it is projected perpendicularly onto the corresponding side of the reference square. The signed distance between the projection point and the midpoint of that side is defined as , with the positive direction chosen to follow the clockwise orientation around the reference square. Normalizing by the square side length , we use as the local order parameter, which lies in the range . Figure 4(b) shows two representative local arrangements with and , both of which are accessible at . For , the center of the third square is aligned with that of one of the lower squares, giving the three particle centers an approximately L-shaped arrangement. For , the third square is positioned above and between the two lower squares, forming a staggered arrangement.
Figure 4(c) shows the normalized frequency distribution at several packing fractions, using the same color scheme as in Fig. 1(b). Each distribution is normalized such that . For each configuration, the three squares are taken in turn as the reference square, and all other squares and their periodic images satisfying the construction in Fig. 4(a) contribute to the statistics. At low packing fractions, and , the distribution has a shallow minimum at and increases toward , where it reaches its maximum. This weak variation is consistent with the dilute-limit result shown by the gray dashed line in Fig. 4(c) (see Supplemental Material, Sec. VII, for the derivation). As increases, this trend reverses: configurations with become increasingly favored, whereas those near are progressively suppressed. The evolution of therefore indicates an increasing preference for the approximately L-shaped local arrangement. The same tendency is also evident in the high-density MCMC trajectory shown in Supplemental Movie S4, where approximately L-shaped arrangements with are observed much more frequently than staggered arrangements with .
In Fig. 4(d), we compare for systems with different particle numbers. The black curve for is identical to the curve at in Fig. 4(c). At this density, the box area is ; placing four particles in the same box would correspond to an effective packing fraction . This provides a natural density correspondence between the three-particle system at and larger systems at . As increases, the distribution becomes increasingly concentrated around , indicating an enhanced preference for the same local geometric arrangement. The inset shows for , , and , demonstrating that the difference from the distribution decreases with increasing . For large hard-square systems, lies in the tetratic regime [2]. Under the same density correspondence, higher packing fractions of the three-particle system map to higher packing fractions of the many-particle system, where square-lattice order emerges [2, 39]. Consistently, the preference for becomes more pronounced with increasing in the three-particle system [Fig. 4(c)]. These results indicate that the local structural preference associated with both tetratic and square-lattice ordering is already present in the three-particle system and becomes increasingly pronounced with system size and packing fraction.
Conclusion. In conclusion, we have shown that the self-assembly of even three hard squares in a periodic box exhibits rich configurational behavior governed solely by excluded-volume constraints. A marked discrepancy between MCMC and uniform insertion sampling near led us to identify a second configuration class. MCMC simulations initialized from the two classes then reveal two distinct pressure branches, while the uniform-insertion pressure lies between them, providing strong numerical evidence for configurational-space separation near . Explicit overlap-free transition pathways below this density reveal a narrow geometric bottleneck connecting the two configurational regions, and a geometric construction based on this bottleneck yields the separation density . The relative configurational-space volumes of the two regions can further be quantified from the MCMC branch pressures and the ensemble-averaged insertion pressure.
At higher packing fractions, excluded-volume constraints also produce a pronounced local structure selection, favoring an approximately L-shaped arrangement over a staggered one. The corresponding local ordering motif is characteristic of tetratic and square-lattice ordering in larger hard-square systems. Our results therefore illustrate, in a minimal three-particle setting, how excluded-volume geometry can constrain configurational connectivity and select local structures relevant to many-particle self-assembly.
Acknowledgements.
This work was supported by the National Natural Science Foundation of China: Grant No. 12274330, Grant No. 12334015, and Grant No. 12274332. This work was also supported by the Young Top-Notch Talent Cultivation Program of Hubei Province. D.W. acknowledges the “Xiaomi Young Scholar Program” at Wuhan University.References
- [1] (2011) Mesophase behaviour of polyhedral particles. Nat. Mater. 10, pp. 230–235. Cited by: Configurational-space separation and structure selection in three hard squares.
- [2] (2017) Shape and symmetry determine two-dimensional melting transitions of hard regular polygons. Phys. Rev. X 7, pp. 021001. Cited by: Configurational-space separation and structure selection in three hard squares, Configurational-space separation and structure selection in three hard squares.
- [3] (2020) HOOMD-blue: a python package for high-performance molecular dynamics and hard particle monte carlo simulations. Comput. Mater. Sci. 173, pp. 109363. Cited by: §II, Configurational-space separation and structure selection in three hard squares.
- [4] (2016) Scalable metropolis monte carlo for simulation of hard shapes. Comput. Phys. Commun. 204, pp. 21–30. Cited by: §III.
- [5] (2012) Phase behavior of rounded hard-squares. Soft Matter 8, pp. 4675–4681. Cited by: Configurational-space separation and structure selection in three hard squares.
- [6] (2011) Two-step melting in two dimensions: first-order liquid-hexatic transition. Phys. Rev. Lett. 107 (15), pp. 155704. Cited by: Configurational-space separation and structure selection in three hard squares.
- [7] (2012) Packing squares in a torus. J. Stat. Mech.: Theory Exp. 2012, pp. P01018. Cited by: Configurational-space separation and structure selection in three hard squares.
- [8] (2011) Subtleties in the calculation of the pressure and pressure tensor of anisotropic particles from volume-perturbation methods and the apparent asymmetry of the compressive and expansive contributions. Mol. Phys. 109 (1), pp. 169–189. Cited by: §III.
- [9] (2012) Predictive self-assembly of polyhedra into complex structures. Science 337, pp. 453. Cited by: Configurational-space separation and structure selection in three hard squares.
- [10] (2013) Hard-disk equation of state: first-order liquid-hexatic transition in two dimensions with three simulation methods. Phys. Rev. E 87, pp. 042134. Cited by: Configurational-space separation and structure selection in three hard squares.
- [11] (1984) Monte carlo study of the isotropic and nematic phases of infinitely thin hard platelets. Mol. Phys. 52 (6), pp. 1303–1334. Cited by: §III.
- [12] (2024) Quasicrystal of binary hard spheres on a plane stabilized by configurational entropy. Phys. Rev. Lett. 132 (4), pp. 048202. Cited by: Configurational-space separation and structure selection in three hard squares.
- [13] (1987) Computer simulation of hard-core models for liquid crystals. Mol. Phys. 60 (1), pp. 1–20. Cited by: Configurational-space separation and structure selection in three hard squares.
- [14] (2011) Shaping phases by phasing shapes. ACS Nano 5 (11), pp. 8459–8465. Cited by: Configurational-space separation and structure selection in three hard squares.
- [15] (2015) Phase behavior of a family of truncated hard cubes. J. Chem. Phys. 142 (5), pp. 054904. Cited by: Configurational-space separation and structure selection in three hard squares.
- [16] (2013) Phase diagram and structural diversity of a family of truncated cubes: degenerate close-packed structures and vacancy-rich states. Phys. Rev. Lett. 111, pp. 015501. Cited by: Configurational-space separation and structure selection in three hard squares.
- [17] (2015) Strong scaling of general-purpose molecular dynamics simulations on gpus. Comput. Phys. Commun. 192, pp. 97–107. Cited by: §II, Configurational-space separation and structure selection in three hard squares.
- [18] (2007) Anisotropy of building blocks and their assembly into complex structures. Nat. Mater. 6, pp. 557. Cited by: Configurational-space separation and structure selection in three hard squares.
- [19] (2009) Disordered, quasicrystalline and crystalline phases of densely packed tetrahedra. Nature 462, pp. 773. Cited by: Configurational-space separation and structure selection in three hard squares.
- [20] (1968) Melting transition and communal entropy for hard spheres. J. Chem. Phys. 49 (8), pp. 3609–3617. Cited by: Configurational-space separation and structure selection in three hard squares.
- [21] (2024) The cooperative migration dynamics of particles correlates to the nature of hexatic–isotropic phase transition in 2d systems of corner-rounded hexagons. Fundam. Res. 4 (2), pp. 284–290. Cited by: Configurational-space separation and structure selection in three hard squares.
- [22] (2018) Intermediate crystalline structures of colloids in shape space. Soft Matter 14, pp. 8692. Cited by: Configurational-space separation and structure selection in three hard squares.
- [23] (2018) Self-assembled chiral photonic crystals from a colloidal helix racemate. ACS Nano 12 (7), pp. 6860–6870. Cited by: Configurational-space separation and structure selection in three hard squares.
- [24] (2007) Self-diffusion of rodlike viruses through smectic layers. Phys. Rev. Lett. 99 (19), pp. 197802. Cited by: Configurational-space separation and structure selection in three hard squares.
- [25] (2025) Self-assembling clusters of particles on a shrinking liquid surface. Phys. Rev. Res. 7 (1), pp. 013293. Cited by: Configurational-space separation and structure selection in three hard squares.
- [26] (2023) Chiral photonic crystals from sphere packing. Soft Matter 19, pp. 7313–7322. Cited by: Configurational-space separation and structure selection in three hard squares.
- [27] (2010) Phase behavior and structure of colloidal bowl-shaped particles: simulations. Phys. Rev. E 82, pp. 031405. Cited by: Configurational-space separation and structure selection in three hard squares.
- [28] (2014) Hard-body models of bulk liquid crystals. J. Phys.: Condens. Matter 26 (46), pp. 463101. Cited by: Configurational-space separation and structure selection in three hard squares.
- [29] (2017) Observation of solid–solid transitions in 3d crystals of colloidal superballs. Nat. Commun. 8 (1), pp. 14352. Cited by: Configurational-space separation and structure selection in three hard squares.
- [30] (2012) Phase diagram of colloidal hard superballs: from cubes via spheres to octahedra. Soft Matter 8, pp. 8826. Cited by: Configurational-space separation and structure selection in three hard squares.
- [31] (2023) Effects of orientational and positional randomness of particles on photonic band gap. Phys. Rev. B 107 (17), pp. 174110. Cited by: Configurational-space separation and structure selection in three hard squares.
- [32] (2017) Disappearance of the hexatic phase in a binary mixture of hard disks. Phys. Rev. Lett. 119 (11), pp. 115702. Cited by: Configurational-space separation and structure selection in three hard squares.
- [33] (2012) Vacancy-stabilized crystalline order in hard cubes. Proc. Natl. Acad. Sci. USA 109, pp. 17886. Cited by: Configurational-space separation and structure selection in three hard squares.
- [34] (2009) Dense packings of the platonic and archimedean solids. Nature 460, pp. 876–879. Cited by: Configurational-space separation and structure selection in three hard squares.
- [35] (2019) FCC - bcc phase transitions in convex and concave hard particle systems. J. Phys. Chem. B 123 (42), pp. 9038–9043. Cited by: Configurational-space separation and structure selection in three hard squares.
- [36] (2018) Shapes within shapes: how particles arrange inside a cavity. Soft Matter 14, pp. 3012. Cited by: §II, Configurational-space separation and structure selection in three hard squares.
- [37] (2021) Unexpected dependence of photonic band gap size on randomness in self-assembled colloidal crystals. Phys. Rev. Lett. 126, pp. 208002. Cited by: Configurational-space separation and structure selection in three hard squares.
- [38] (2022) Configurational entropy of colloidal particles in a confined space. Phys. Rev. E 106, pp. 034609. Cited by: §II, Configurational-space separation and structure selection in three hard squares.
- [39] (2004) Tetratic phase in the planar hard square system?. Comput. Methods Sci. Technol. 10 (2), pp. 235–255. Cited by: Configurational-space separation and structure selection in three hard squares.
- [40] (1957) Preliminary results from a recalculation of the monte carlo equation of state of hard spheres. J. Chem. Phys. 27 (5), pp. 1207–1208. Cited by: Configurational-space separation and structure selection in three hard squares.
- [41] (2025) Geometry-originated universal relation for arbitrary convex hard particles. J. Chem. Phys. 163 (8), pp. 084902. External Links: ISSN 0021-9606 Cited by: §III.
Supplemental Material for “Configurational-space separation and structure selection in three hard squares”
This PDF includes:
- •
Captions for Supplemental Movies S1 to S4
- •
Simulation details
- •
Pressure calculation and configurational-space volume
- •
Monte Carlo chain-of-states construction of transition paths
- •
Geometric origin of the configurational-space separation density
- •
Classification of high-density configurations
- •
Order parameter in the dilute limit
Other supplemental materials for this manuscript include the following:
- •
Supplemental Movies S1 to S4 (.mp4)
I Captions for Supplemental Movies S1–S4
Movie S1: An MCMC transition trajectory connecting the two configuration classes at . Representative frames from this trajectory are shown in Fig. 3(a)–(d) of the main text.
Movie S2: A transition trajectory constructed using the Monte Carlo chain-of-states method at . Representative frames are shown in Fig. 3(f)–(i) of the main text.
Movie S3: A second transition trajectory constructed using the Monte Carlo chain-of-states method at . Representative frames are shown in Fig. 3(k)–(n) of the main text.
Movie S4: An MCMC trajectory at , illustrating the stronger preference for an approximately L-shaped arrangement of the particle centers over the staggered arrangement.
II Simulation details
We perform hard-particle simulations and pressure calculations using the hard-particle Monte Carlo module of HOOMD-blue [17, 3]. The system consists of three hard squares of side length confined in a square box with periodic boundary conditions. For MCMC sampling, one MC step consists of attempting a random translational and rotational move for each particle. At each packing fraction, the translational and rotational step sizes are adjusted to maintain an acceptance rate of approximately 0.3. For the calculation of the radial distribution function in Fig. 1(b) of the main text, the system is initialized from the class-I configuration shown in Fig. 2(a) of the main text and is uniformly rescaled with the box size to the target packing fraction. We perform MC steps and record one configuration every steps, yielding samples. For uniform insertion sampling, three particles are placed sequentially at random positions and orientations [36, 38]. If a trial particle overlaps with any previously placed particle or its periodic images, the entire configuration is rejected and the procedure is restarted. A configuration is accepted only when all three particles have been placed without overlap. For each packing fraction, this procedure is repeated until valid configurations are obtained. Thus, the two sampling protocols generate the same number of configurations at each packing fraction.
III Pressure calculation and configurational-space volume
We use the HPMC module in HOOMD-blue to calculate the pressure of the hard-particle system [4]. The pressure is evaluated using the volume-perturbation technique [11, 8]. Further details of the pressure calculation can be found in Ref. [41]. For the pressure calculations shown in Fig. 2 of the main text, each MCMC simulation consisted of MC steps, with one configuration sampled every five steps, yielding sampled configurations for each pressure data point. The values and quoted below were obtained from MCMC simulations initialized from classes I and II, respectively. For uniform insertion sampling, statistically independent non-overlapping configurations were generated at each packing fraction and used to evaluate .
For , the MCMC trajectories initialized from classes I and II remain confined to two distinct configurational regions, giving rise to the two pressure branches observed in Fig. 2(c) of the main text. For a hard-particle system, the potential energy is zero for all allowed configurations and infinite for forbidden configurations. The Boltzmann factor is therefore unity within the allowed region of configuration space and zero otherwise. Consequently, the configurational partition function is proportional to the volume of the allowed configuration space. The relative volumes of the two disconnected regions can thus be inferred from the pressures of the two regions and the pressure of the full configuration space.
The pressures of the two disconnected regions associated with classes I and II are
| (S1) |
and
| (S2) |
The pressure of the full configuration space is
| (S3) |
Here and are the free energies and configurational partition functions of the two disconnected regions, respectively, while and are those of the full configuration space. Substituting Eqs. (S1) and (S2) into Eq. (S3), we obtain
| (S4) |
Using , the relative weight of region II in the full configuration space is
| (S5) |
At , the dimensionless pressures of the two regions are and , while the pressure calculated from the uniform insertion method is . Let , , and denote the corresponding configurational-space volumes. We then obtain
| (S6) |
Thus, at this packing fraction, the configuration-space region associated with class II accounts for approximately of the total configuration-space volume.
IV Monte Carlo chain-of-states construction of transition paths
To construct explicit transition paths between the two configuration classes, we introduced an auxiliary chain of configurations in the full configurational space. Each element of the chain, hereafter referred to as an image, represents a complete three-particle configuration,
| (S7) |
where labels the position of the image along the chain and labels one of the three hard squares within that image. The images are auxiliary variables and do not represent additional particles or interacting physical replicas. Rather, the chain provides a discrete representation of a candidate path in configurational space connecting the two configuration classes.
The endpoint images, and , were fixed to representative maximally packed configurations of classes I and II, respectively, and were uniformly rescaled to the packing fraction at which the path was constructed. The initial chain contained images. Because direct interpolation between the endpoints generally produces overlapping intermediate configurations, the internal images were initialized by duplicating the two valid endpoint configurations. Specifically, each endpoint configuration was copied 199 additional times, so that the initial chain contained 200 identical images in each endpoint state, separated by a single interface. All images in the initial chain were therefore overlap-free.
Neighboring images were coupled through the auxiliary harmonic potential
| (S8) |
where is the distance between two complete configurations, is the spring constant, and is the target spacing between neighboring images. These springs are purely numerical restraints used to regularize the discretized path and do not represent physical interactions between the hard squares.
The configuration-space metric was defined after removing the trivial symmetries associated with periodic wrapping, global translation, particle relabeling, and the fourfold rotational symmetry of a square. Consider two configurations
| (S9) |
in a square periodic box of side length L. For a given particle permutation , we enumerated the periodic unwrapping branches
| (S10) |
and defined the corresponding unwrapped displacement of each matched particle pair as
| (S11) |
For a fixed permutation and a fixed set of unwrapping branches, the common translation that minimizes the total squared positional mismatch is
| (S12) |
The positional contribution to the configuration distance was therefore defined as
| (S13) |
where the minimum is taken over all combinations of the periodic unwrapping branches. Equation (S12) removes the global translational degree of freedom, leaving only differences in the relative particle positions.
The orientational mismatch between two matched squares was reduced modulo ,
| (S14) |
The total squared distance between configurations and was then defined as
| (S15) |
This metric is invariant under periodic wrapping, global translation, particle relabeling, and rotations of an individual square by integer multiples of .
The parameter sets the relative weighting of positional and orientational differences. We used throughout. The orientational term promotes smooth variations of the particle orientations along the chain. Increasing made the angular increments between neighboring images more uniform at the expense of less uniform positional increments, but did not alter the topology or qualitative geometry of the connecting path in our tests. Thus, although the numerical arclength of the discretized chain depends on the metric convention, the resulting overlap-free transition channel was robust to moderate variations of .
The internal images were relaxed by Metropolis Monte Carlo. In each trial move, an internal image , with , and one of its three squares were selected at random. The selected square was translated and rotated according to
| (S16) |
while all other particles and images remained unchanged. The two Cartesian components of and the angular displacement were drawn independently from symmetric uniform distributions. Their proposal amplitudes were adjusted together to maintain an acceptance rate of approximately .
A trial move that produced a hard-particle overlap under periodic boundary conditions was rejected. If the updated image remained overlap-free, only the two spring terms involving had to be recalculated. The move was then accepted with probability
| (S17) |
where is the change in the auxiliary spring energy. We used reduced units in which . During a single relaxation schedule, the spring constant was increased monotonically from to in multiplicative increments of . At each fixed value of , we performed Monte Carlo sweeps before proceeding to the next value. One sweep consisted of randomly selected single-particle trial moves, where denotes the current number of images in the chain. Thus, each particle in each internal image was selected once on average per sweep. At small , the weak spring bias allowed the internal images to explore the overlap-free configurational space. As was increased, the Metropolis acceptance criterion progressively favored moves that reduced large separations between neighboring images, thereby tightening and smoothing the chain. We initially set , so that the spring potential penalized large neighboring-image separations without imposing a finite target spacing. The value of was kept at zero for . For , it was gradually increased from to and, at each stage, was chosen to be slightly smaller than the minimum distance between neighboring images. The finite target spacing reduced clustering and fluctuations in the image distribution while preserving the resolution of the discretized path. Moderate variations of within this range affected the neighboring-image spacings but produced no discernible change in the resulting transition path. The relaxation was terminated after completion of the stage.
During the relaxation, we monitored the neighboring-image distances
| (S18) |
Because the two sides of the bottleneck generally have different configurational arclengths, assigning equal numbers of images to the two endpoint basins can produce different mean spacings on the two portions of the chain. To obtain comparable resolution along the full path, images were inserted into the portion with the larger mean spacing and removed from the portion with the smaller mean spacing. A new image was introduced by duplicating a neighboring valid configuration, thereby preserving the hard-particle constraint, whereas redundant internal images were removed from oversampled portions of the path. After each insertion or deletion, the affected neighboring distances and spring-energy terms were recomputed, and the chain was relaxed again. This procedure was repeated until the two sides of the bottleneck had comparable mean image spacings. The endpoint images remained fixed throughout. Using this Monte Carlo chain-of-states procedure, we obtained two distinct, densely discretized, overlap-free paths connecting the two configuration classes through the bottleneck, as shown in Fig. 3(f)–(i) and (k)–(n) of the main text.
V Geometric origin of the configurational-space separation density
Here we provide a geometric interpretation of the configurational-space separation density . The argument is motivated by the transition pathways shown in Fig. 3 of the main text. Along all three pathways, the system passes through a narrow bottleneck in which the three squares are nearly parallel and nearly collinear. Near this bottleneck, their rotations are strongly constrained, and the remaining configurational freedom is dominated by sliding along their common edge directions.
Let be the side length of each square and the side length of the square periodic box. The packing fraction is
| (S19) |
To identify the characteristic box size associated with the bottleneck, we approximate the limiting configuration by three parallel squares that just fit in the periodic box without overlap. The corresponding geometric construction is illustrated in Fig. S1. Let and be two orthonormal directions parallel to the square edges. For a square periodic box, the two box vectors must have equal length and be orthogonal. If they are constructed from integer steps along and , they can be written as
| (S20) |
where and are non-negative integers. These vectors satisfy and . Hence,
| (S21) |
The smallest integer constructions are listed in Table S1. Cases with correspond to axial arrangements in which the square edges are aligned with the box directions. The smaller tilted construction cannot accommodate three squares. The smallest physically allowed tilted construction is therefore , which gives
| (S22) |
For the geometry, one may choose
| (S23) |
The corresponding orientation of the squares relative to the box is
| (S24) |
which is the angle indicated in Fig. 3 of the main text.
This construction provides a geometric picture of the connecting channel near the separation density. As approaches from below, the channel becomes increasingly narrow, making direct transitions between the two configurational regions progressively more difficult to observe by MCMC. At , the tilted bottleneck becomes a marginal, just-fitting configuration: the three squares retain only translational degrees of freedom, corresponding to sliding along their common edge directions, whereas any rotation away from this limiting configuration would produce overlap. This explains why direct transitions between the two configurational regions are unlikely to be observed in MCMC simulations at this density. For , or equivalently , the corresponding nearly parallel tilted arrangement cannot fit in the periodic box without overlap.
We emphasize that this construction does not constitute a rigorous proof that all possible transition pathways are forbidden for , which would require exhausting all possible relative orientations, contact geometries, and periodic-image relations. Rather, it provides a geometric explanation of the bottleneck identified in the simulations and is consistent with both the pressure-branch separation and the transition pathways.
| Interpretation | |||
|---|---|---|---|
| Too small to contain three squares | |||
| Too small to contain three squares | |||
| Axial arrangement | |||
| Smallest tilted arrangement | |||
| Tilted arrangement at lower packing fraction | |||
| Axial arrangement at lower packing fraction | |||
| Tilted arrangement at lower packing fraction |
VI Classification of high-density configurations
At the configurational-space separation density , the connecting channel between the two configurational regions narrows to a marginal bottleneck, as discussed in Sec. V. In the MCMC trajectories used here, the two sides of this bottleneck remain dynamically separated and correspond to the two pressure branches identified in the main text. We therefore denote the configurations sampled on the two sides as classes I and II and use them to construct labeled data. Specifically, we performed MCMC simulations initialized in representative configurations of the two classes at , using the same MCMC protocol as described in Sec. II. We collected configurations for each class, yielding a total of labeled configurations.
Because a square has fourfold rotational symmetry, orientations differing by integer multiples of are physically equivalent. In configurations generated by uniform insertion sampling, the particle orientations span the full interval , whereas within a finite MCMC trajectory the particles may not explore all symmetry-equivalent orientations because their rotations are constrained by excluded-volume interactions with the other particles. We therefore reduced the orientation of each square modulo and mapped it onto . In addition, each training configuration was subjected to a random global translation, applied identically to all three particles, and to a random permutation of the particle labels. These operations reduce the dependence of the classifier on the arbitrary choice of coordinate origin and particle labeling.
We used a multilayer perceptron (MLP) to distinguish the two configurational classes. The raw particle data were converted into a nine-dimensional input vector , where is the in-plane orientation obtained from the quaternion and reduced modulo . The particle coordinates were normalized by the box half-length and wrapped into according to the periodic boundary conditions. The fully connected network contained three hidden layers with 200, 40, and 5 neurons, respectively, each using a ReLU activation function, followed by a single sigmoid output unit representing the predicted probability of belonging to class II. The network was trained for 200 epochs using the Adam optimizer and binary cross-entropy loss, with a batch size of 65536 and an 80%/20% training/test split. No misclassifications were observed among the configurations in the held-out test set. Configurations with were assigned to class II, and the remaining configurations were assigned to class I.
For packing fractions , the allowed configurational space expressed in fractional coordinates satisfies
because increasing the packing fraction can only remove configurations that develop particle overlaps. For any allowed configuration at , the same wrapped fractional coordinates therefore define an allowed configuration at . Since the box is larger at , this corresponds physically to a dilated representation of the higher-density configuration, in which the interparticle separations are increased while the fractional coordinates and particle orientations remain unchanged. We assign the class of a higher-density configuration according to which side of the bottleneck contains its dilated representation. These two sides are operationally defined by the class-I and class-II MCMC ensembles used to train the classifier. Because increasing the packing fraction can only remove allowed configurations, it cannot create a new connecting channel between the two sides. The class-I/class-II labeling at therefore provides a consistent continuation to higher packing fractions. Moreover, a higher-density configuration and its dilated representation have identical fractional coordinates and particle orientations, and hence correspond to the same input representation used by the classifier. We therefore apply the classifier trained at directly to higher-density configurations using the same coordinate and orientation preprocessing.
As a consistency check, we applied the trained classifier to the configurations generated by uniform insertion sampling at and evaluated the pressure separately for configurations assigned to classes I and II. Using the resulting class-resolved pressures, together with the ensemble-averaged pressure , in the relation derived above, we obtain
in close agreement with the value obtained from the two MCMC pressure branches. This agreement provides a consistency check on the two-region description and the configurational classification.
We further applied the trained classifier to configurations generated by uniform insertion sampling at other packing fractions and evaluated the pressure separately for configurations assigned to classes I and II. The resulting class-resolved pressures are shown by the black lines in Fig. 2(c) of the main text.
VII Order parameter in the dilute limit
In the dilute limit, correlations beyond the pair excluded-volume constraint can be neglected, so that the distribution of the local order parameter is determined by the geometry of two hard squares. We fix one square as the reference and consider a second square whose center lies in one of the four adjacent square regions shown in Fig. S2. Both coordinates of the second-square center are measured in units of the square side length . We denote its lateral displacement from the midpoint of the corresponding side of the reference square by , and its perpendicular distance from that side by .
Because a square has fourfold rotational symmetry, it is sufficient to consider one angular period of length . We take the orientation parallel to the reference square as and restrict the relative orientation to , with positive corresponding to clockwise rotation. For fixed , the statistical weight in the dilute limit is proportional to the total angular range over which the two squares remain non-overlapping. We denote this allowed angular measure by .
The geometry is symmetric under , so we introduce . The normalized dilute-limit reference curve can then be written as
| (S25) |
The normalization is chosen such that , consistent with that used in Fig. 4(c) of the main text.
The dashed construction in Fig. S2 divides the possible locations of the second-square center into regions I–IV. In region I, , the two squares overlap for all orientations. In region IV, , the two squares remain non-overlapping over the entire angular interval, giving .
We next consider region II, where . The clockwise and counterclockwise rotations are limited by different contact geometries. We define the auxiliary angle
| (S26) |
As illustrated in Fig. S2, we denote the maximum counterclockwise and clockwise rotation angles by and , corresponding to panels (a) and (b), respectively. The counterclockwise limit is
| (S27) |
whereas the clockwise limit is
| (S28) |
Since positive corresponds to clockwise rotation, the allowed orientations in region II satisfy , and the corresponding angular measure is . The boundary between regions II and III is reached when, upon clockwise rotation, the lower-right vertex of the second square just touches the upper-right vertex of the reference square. The corresponding crossover height is
| (S29) |
At , the clockwise and counterclockwise limiting angles become equal.
For , corresponding to region III, the limiting contacts in both rotational directions are geometrically equivalent: in each case, a vertex of the second square comes into contact with the upper side of the reference square. The clockwise and counterclockwise limiting angles therefore have the same magnitude , and the allowed angular measure is .
Combining the four geometric regions, the allowed angular measure is
| (S30) |
The four cases correspond to regions I–IV, respectively. Substituting Eq. (S30) into Eq. (S25), we obtain
| (S31) |
The dilute-limit reference curve shown in Fig. 4(c) of the main text is therefore
| (S32) |
Numerical evaluation of these integrals yields the gray dashed curve shown in Fig. 4(c) of the main text.
References
- [1] (2011) Mesophase behaviour of polyhedral particles. Nat. Mater. 10, pp. 230–235. Cited by: Configurational-space separation and structure selection in three hard squares.
- [2] (2017) Shape and symmetry determine two-dimensional melting transitions of hard regular polygons. Phys. Rev. X 7, pp. 021001. Cited by: Configurational-space separation and structure selection in three hard squares, Configurational-space separation and structure selection in three hard squares.
- [3] (2020) HOOMD-blue: a python package for high-performance molecular dynamics and hard particle monte carlo simulations. Comput. Mater. Sci. 173, pp. 109363. Cited by: §II, Configurational-space separation and structure selection in three hard squares.
- [4] (2016) Scalable metropolis monte carlo for simulation of hard shapes. Comput. Phys. Commun. 204, pp. 21–30. Cited by: §III.
- [5] (2012) Phase behavior of rounded hard-squares. Soft Matter 8, pp. 4675–4681. Cited by: Configurational-space separation and structure selection in three hard squares.
- [6] (2011) Two-step melting in two dimensions: first-order liquid-hexatic transition. Phys. Rev. Lett. 107 (15), pp. 155704. Cited by: Configurational-space separation and structure selection in three hard squares.
- [7] (2012) Packing squares in a torus. J. Stat. Mech.: Theory Exp. 2012, pp. P01018. Cited by: Configurational-space separation and structure selection in three hard squares.
- [8] (2011) Subtleties in the calculation of the pressure and pressure tensor of anisotropic particles from volume-perturbation methods and the apparent asymmetry of the compressive and expansive contributions. Mol. Phys. 109 (1), pp. 169–189. Cited by: §III.
- [9] (2012) Predictive self-assembly of polyhedra into complex structures. Science 337, pp. 453. Cited by: Configurational-space separation and structure selection in three hard squares.
- [10] (2013) Hard-disk equation of state: first-order liquid-hexatic transition in two dimensions with three simulation methods. Phys. Rev. E 87, pp. 042134. Cited by: Configurational-space separation and structure selection in three hard squares.
- [11] (1984) Monte carlo study of the isotropic and nematic phases of infinitely thin hard platelets. Mol. Phys. 52 (6), pp. 1303–1334. Cited by: §III.
- [12] (2024) Quasicrystal of binary hard spheres on a plane stabilized by configurational entropy. Phys. Rev. Lett. 132 (4), pp. 048202. Cited by: Configurational-space separation and structure selection in three hard squares.
- [13] (1987) Computer simulation of hard-core models for liquid crystals. Mol. Phys. 60 (1), pp. 1–20. Cited by: Configurational-space separation and structure selection in three hard squares.
- [14] (2011) Shaping phases by phasing shapes. ACS Nano 5 (11), pp. 8459–8465. Cited by: Configurational-space separation and structure selection in three hard squares.
- [15] (2015) Phase behavior of a family of truncated hard cubes. J. Chem. Phys. 142 (5), pp. 054904. Cited by: Configurational-space separation and structure selection in three hard squares.
- [16] (2013) Phase diagram and structural diversity of a family of truncated cubes: degenerate close-packed structures and vacancy-rich states. Phys. Rev. Lett. 111, pp. 015501. Cited by: Configurational-space separation and structure selection in three hard squares.
- [17] (2015) Strong scaling of general-purpose molecular dynamics simulations on gpus. Comput. Phys. Commun. 192, pp. 97–107. Cited by: §II, Configurational-space separation and structure selection in three hard squares.
- [18] (2007) Anisotropy of building blocks and their assembly into complex structures. Nat. Mater. 6, pp. 557. Cited by: Configurational-space separation and structure selection in three hard squares.
- [19] (2009) Disordered, quasicrystalline and crystalline phases of densely packed tetrahedra. Nature 462, pp. 773. Cited by: Configurational-space separation and structure selection in three hard squares.
- [20] (1968) Melting transition and communal entropy for hard spheres. J. Chem. Phys. 49 (8), pp. 3609–3617. Cited by: Configurational-space separation and structure selection in three hard squares.
- [21] (2024) The cooperative migration dynamics of particles correlates to the nature of hexatic–isotropic phase transition in 2d systems of corner-rounded hexagons. Fundam. Res. 4 (2), pp. 284–290. Cited by: Configurational-space separation and structure selection in three hard squares.
- [22] (2018) Intermediate crystalline structures of colloids in shape space. Soft Matter 14, pp. 8692. Cited by: Configurational-space separation and structure selection in three hard squares.
- [23] (2018) Self-assembled chiral photonic crystals from a colloidal helix racemate. ACS Nano 12 (7), pp. 6860–6870. Cited by: Configurational-space separation and structure selection in three hard squares.
- [24] (2007) Self-diffusion of rodlike viruses through smectic layers. Phys. Rev. Lett. 99 (19), pp. 197802. Cited by: Configurational-space separation and structure selection in three hard squares.
- [25] (2025) Self-assembling clusters of particles on a shrinking liquid surface. Phys. Rev. Res. 7 (1), pp. 013293. Cited by: Configurational-space separation and structure selection in three hard squares.
- [26] (2023) Chiral photonic crystals from sphere packing. Soft Matter 19, pp. 7313–7322. Cited by: Configurational-space separation and structure selection in three hard squares.
- [27] (2010) Phase behavior and structure of colloidal bowl-shaped particles: simulations. Phys. Rev. E 82, pp. 031405. Cited by: Configurational-space separation and structure selection in three hard squares.
- [28] (2014) Hard-body models of bulk liquid crystals. J. Phys.: Condens. Matter 26 (46), pp. 463101. Cited by: Configurational-space separation and structure selection in three hard squares.
- [29] (2017) Observation of solid–solid transitions in 3d crystals of colloidal superballs. Nat. Commun. 8 (1), pp. 14352. Cited by: Configurational-space separation and structure selection in three hard squares.
- [30] (2012) Phase diagram of colloidal hard superballs: from cubes via spheres to octahedra. Soft Matter 8, pp. 8826. Cited by: Configurational-space separation and structure selection in three hard squares.
- [31] (2023) Effects of orientational and positional randomness of particles on photonic band gap. Phys. Rev. B 107 (17), pp. 174110. Cited by: Configurational-space separation and structure selection in three hard squares.
- [32] (2017) Disappearance of the hexatic phase in a binary mixture of hard disks. Phys. Rev. Lett. 119 (11), pp. 115702. Cited by: Configurational-space separation and structure selection in three hard squares.
- [33] (2012) Vacancy-stabilized crystalline order in hard cubes. Proc. Natl. Acad. Sci. USA 109, pp. 17886. Cited by: Configurational-space separation and structure selection in three hard squares.
- [34] (2009) Dense packings of the platonic and archimedean solids. Nature 460, pp. 876–879. Cited by: Configurational-space separation and structure selection in three hard squares.
- [35] (2019) FCC - bcc phase transitions in convex and concave hard particle systems. J. Phys. Chem. B 123 (42), pp. 9038–9043. Cited by: Configurational-space separation and structure selection in three hard squares.
- [36] (2018) Shapes within shapes: how particles arrange inside a cavity. Soft Matter 14, pp. 3012. Cited by: §II, Configurational-space separation and structure selection in three hard squares.
- [37] (2021) Unexpected dependence of photonic band gap size on randomness in self-assembled colloidal crystals. Phys. Rev. Lett. 126, pp. 208002. Cited by: Configurational-space separation and structure selection in three hard squares.
- [38] (2022) Configurational entropy of colloidal particles in a confined space. Phys. Rev. E 106, pp. 034609. Cited by: §II, Configurational-space separation and structure selection in three hard squares.
- [39] (2004) Tetratic phase in the planar hard square system?. Comput. Methods Sci. Technol. 10 (2), pp. 235–255. Cited by: Configurational-space separation and structure selection in three hard squares.
- [40] (1957) Preliminary results from a recalculation of the monte carlo equation of state of hard spheres. J. Chem. Phys. 27 (5), pp. 1207–1208. Cited by: Configurational-space separation and structure selection in three hard squares.
- [41] (2025) Geometry-originated universal relation for arbitrary convex hard particles. J. Chem. Phys. 163 (8), pp. 084902. External Links: ISSN 0021-9606 Cited by: §III.