arXiv is now an independent nonprofit! Learn more
License: arXiv.org perpetual non-exclusive license
arXiv:2609.09936v1 [cond-mat.soft] 09 Sep 2026

Configurational-space separation and structure selection in three hard squares

Yuheng Yang Affiliation: Key Laboratory of Artificial Micro- and Nano-structures of Ministry of Education and School of Physics and Technology, Wuhan University, Wuhan 430072, China    Meng Xiao Affiliation: Key Laboratory of Artificial Micro- and Nano-structures of Ministry of Education and School of Physics and Technology, Wuhan University, Wuhan 430072, China Affiliation: Wuhan Institute of Quantum Technology, Wuhan 430206, China    Duanduan Wan E-mail: ddwan@whu.edu.cn Affiliation: Key Laboratory of Artificial Micro- and Nano-structures of Ministry of Education and School of Physics and Technology, Wuhan University, Wuhan 430072, China
September 9, 2026
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 ϕsep=3/5\phi_{\rm sep}=3/5, 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 ϕ≃0.6\phi\simeq 0.6. Analysis of the pressure provides strong numerical evidence that the allowed configurational space separates into two disconnected regions above a separation density ϕsep\phi_{\rm sep}. Explicit overlap-free transition pathways below this density reveal a narrow geometric bottleneck, and a geometric construction yields ϕsep=3/5\phi_{\rm sep}=3/5. 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.

Figure 1: (a) Schematic illustration of three hard squares in a two-dimensional periodic box. The variable rr denotes the center-to-center distance between two squares. (b) Radial distribution function g⁡(r)g(r) for packing fractions ϕ=0.1,0.3,0.55,0.6,0.65,\phi=0.1,0.3,0.55,0.6,0.65, and 0.70.7 (increasing from bottom to top). Gray dashed lines show the results from uniform insertion sampling, while solid lines correspond to MCMC results. Inset: the difference Δ​g​(r)\Delta g(r) between the two methods; curves are vertically offset by 0.2 for clarity.

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 g⁡(r)g(r) 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 β​P​a2\beta Pa^{2}, where β=(kB​T)−1\beta=(k_{\rm B}T)^{-1} and aa is the square side length; β=1\beta=1 and a=1a=1 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 g⁡(r)g(r) obtained from MCMC and uniform insertion sampling at selected packing fractions, where rr 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 ϕ≤0.55\phi\leq 0.55, as indicated by the small Δ​g​(r)\Delta g(r) values shown in the inset. At ϕ=0.6\phi=0.6, however, a clear discrepancy emerges, with Δ​g​(r)\Delta g(r) becoming significantly larger. At higher packing fractions, ϕ=0.65\phi=0.65 and 0.70.7, 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 ϕ\phi, while any anomalous behavior near ϕ≃0.6\phi\simeq 0.6 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 ϕ≃0.595\phi\simeq 0.595 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-ϕ\phi 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 45∘45^{\circ} with respect to the box sides [Fig. 2(a), II]. The maximum packing fraction of class II is ϕmaxII=2/3\phi_{\max}^{\rm II}=2/3, lower than ϕmaxI=0.75\phi_{\max}^{\rm I}=0.75 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 ϕ\phi approaches 2/32/3. A closer examination of the region near ϕ≃0.6\phi\simeq 0.6 shows that two distinct pressure branches emerge for ϕ≳0.6\phi\gtrsim 0.6 [Fig. 2(c)]. The class-II branch lies above the class-I branch, while the uniform insertion results lie between the two. For ϕ≲0.595\phi\lesssim 0.595, 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 ϕ≃0.6\phi\simeq 0.6 and becomes connected below this density. The irregular MCMC pressures around ϕ≃0.595\phi\simeq 0.595 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.

Figure 2: (a) Maximally packed configurations for two distinct configuration classes, I and II, with ϕmax=0.75\phi_{\max}=0.75 and 2/32/3, respectively. (b) Pressure β​P​a2\beta Pa^{2} as a function of packing fraction ϕ\phi, obtained from MCMC simulations initialized from configuration classes I and II, respectively. (c) Zoomed-in view of the region highlighted by the orange dashed box in (b), with additional simulation points. The green line shows the results obtained from the uniform insertion method. The black lines indicate the two branches classified by machine learning. The vertical dashed black line marks ϕ=0.6\phi=0.6.
Refer to caption
Figure 3: Transition pathways between the two configuration classes. (a)–(d) Representative configurations along an MCMC transition from the larger configuration-space region associated with class I to the smaller region associated with class II at ϕ=0.59\phi=0.59. In (a) and (b), the red arrows indicate the subsequent rotation of square 3. In (c), the three squares have nearly the same orientation, as highlighted by the dashed red rectangle; the red arrow indicates their subsequent collective rotation. (e) Area-normalized probability density f⁡(θ)f(\theta) of the square orientation angle θ\theta at ϕ=0.59\phi=0.59, obtained from uniform insertion sampling and normalized such that ∫0π/2f⁡(θ)​𝑑θ=1\int_{0}^{\pi/2}f(\theta)\,d\theta=1. Here, θ\theta is defined as the smallest clockwise rotation of a fixed laboratory axis required to align it with an edge of the square, as illustrated in the inset. Circles, triangles, and squares denote particles 1, 2, and 3, respectively. The symbol colors correspond to the configurations in (a)–(d) and match the colors of the corresponding particle labels. The vertical red dashed lines mark the separation angle θsep=tan−1⁡(1/2)\theta_{\rm sep}=\tan^{-1}(1/2) (see Supplemental Material, Sec. V). (f)–(i) and (k)–(n) Two transition pathways constructed using the Monte Carlo chain-of-states method at ϕ=0.599\phi=0.599. In (f) and (g), the red arrows indicate the subsequent rotation of square 3. In (h), the three squares have nearly the same orientation, as highlighted by the dashed red rectangle; the red arrow indicates their subsequent collective rotation along the chain. In (k) and (l), the red arrows indicate the subsequent collective rotation of the three squares. (j) and (o) Same as (e), but at ϕ=0.599\phi=0.599, with symbols indicating the particle orientations corresponding to configurations (f)–(i) and (k)–(n), respectively.

We next examine how the two configuration classes become connected near ϕ≃0.6\phi\simeq 0.6. Representative snapshots along a transition pathway observed directly by MCMC at ϕ=0.59\phi=0.59 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 ϕ\phi approaches 0.60.6, 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 ϕ=0.599\phi=0.599, 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 ϕ=0.59\phi=0.59 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 ϕ≃0.6\phi\simeq 0.6. As shown in the Supplemental Material, Sec. V, a geometric construction based on this bottleneck yields ϕsep=3/5=0.6\phi_{\rm sep}=3/5=0.6 and θsep=tan−1⁡(1/2)\theta_{\rm sep}=\tan^{-1}(1/2), 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 ϕsep=0.6\phi_{\rm sep}=0.6, this analysis gives V2/Vtot≈0.0508V_{2}/V_{\mathrm{tot}}\approx 0.0508, where V2V_{2} denotes the configurational-space volume associated with class II and VtotV_{\mathrm{tot}} denotes the total configurational-space volume (see Supplemental Material, Sec. III). To test the consistency of this two-region picture, for ϕ≥0.6\phi\geq 0.6 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 ϕsep=0.6\phi_{\rm sep}=0.6 gives V2/Vtot≈0.0503V_{2}/V_{\mathrm{tot}}\approx 0.0503, 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 ϕ≤0.55\phi\leq 0.55, the allowed configurational space is connected, and the g⁡(r)g(r) curves obtained from the two sampling methods agree closely. At ϕ=0.6\phi=0.6, 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 g⁡(r)g(r) curves. As ϕ\phi increases further to 0.650.65, 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 ϕ>ϕmaxII=2/3\phi>\phi_{\max}^{\rm II}=2/3, the class-II region no longer exists. Thus, at ϕ=0.7\phi=0.7, both methods sample only the class-I region, and their g⁡(r)g(r) results again show close agreement.

Figure 4: Definition and distributions of the local order parameter d/ad/a. (a) Definition of dd. For a reference square, we consider its four adjacent square regions, indicated by 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 dd (red segment), with the positive direction chosen to follow the clockwise orientation around the reference square. (b) Representative configurations with d=0d=0 and d=a/2d=a/2. (c) Normalized frequency f⁡(d/a)f(d/a) as a function of d/ad/a, with f⁡(0)f(0) normalized to unity. Away from the common normalized point at d/a=0d/a=0, the curves from top to bottom correspond to packing fractions ϕ=0.1\phi=0.1, 0.30.3, 0.550.55, 0.60.6, 0.650.65, and 0.70.7, respectively, using the same color scheme as in Fig. 1(b). The gray dashed line shows the dilute-limit theoretical prediction (see Supplemental Material, Sec. VII). (d) f⁡(d/a)f(d/a) for systems with different particle numbers. For N≥4N\geq 4, the packing fraction is ϕ=0.8\phi=0.8; for N=3N=3, the black curve is identical to the green curve at ϕ=0.6\phi=0.6 in (c), corresponding to an effective four-particle packing fraction ϕeff=0.8\phi_{\mathrm{eff}}=0.8. Away from the common normalized point at d/a=0d/a=0, the curves from top to bottom correspond to N=3N=3, 44, 99, 3636, 100100, 400400, 900900, and 25002500. The inset shows Δ​f=fN​(d/a)−f2500​(d/a)\Delta f=f_{N}(d/a)-f_{2500}(d/a) for N=100N=100, 400400, and 900900.

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 dd, with the positive direction chosen to follow the clockwise orientation around the reference square. Normalizing by the square side length aa, we use d/ad/a as the local order parameter, which lies in the range [−1/2,1/2][-1/2,1/2]. Figure 4(b) shows two representative local arrangements with d=0d=0 and d=a/2d=a/2, both of which are accessible at ϕmaxI=0.75\phi_{\max}^{\rm I}=0.75. For d=0d=0, 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 d=a/2d=a/2, the third square is positioned above and between the two lower squares, forming a staggered arrangement.

Figure 4(c) shows the normalized frequency distribution f⁡(d/a)f(d/a) at several packing fractions, using the same color scheme as in Fig. 1(b). Each distribution is normalized such that f⁡(0)=1f(0)=1. 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, ϕ=0.1\phi=0.1 and 0.30.3, the distribution has a shallow minimum at d/a=0d/a=0 and increases toward d/a=±1/2d/a=\pm 1/2, 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 ϕ\phi increases, this trend reverses: configurations with d/a=0d/a=0 become increasingly favored, whereas those near d/a=±1/2d/a=\pm 1/2 are progressively suppressed. The evolution of f⁡(d/a)f(d/a) 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 d=0d=0 are observed much more frequently than staggered arrangements with d=a/2d=a/2.

In Fig. 4(d), we compare f⁡(d/a)f(d/a) for systems with different particle numbers. The black curve for N=3N=3 is identical to the curve at ϕ=0.6\phi=0.6 in Fig. 4(c). At this density, the box area is L2=5​a2L^{2}=5a^{2}; placing four particles in the same box would correspond to an effective packing fraction ϕeff=4​a2/L2=0.8\phi_{\rm eff}=4a^{2}/L^{2}=0.8. This provides a natural density correspondence between the three-particle system at ϕ=0.6\phi=0.6 and larger systems at ϕ=0.8\phi=0.8. As NN increases, the distribution becomes increasingly concentrated around d/a=0d/a=0, indicating an enhanced preference for the same local geometric arrangement. The inset shows Δ​f=fN​(d/a)−f2500​(d/a)\Delta f=f_{N}(d/a)-f_{2500}(d/a) for N=100N=100, 400400, and 900900, demonstrating that the difference from the N=2500N=2500 distribution decreases with increasing NN. For large hard-square systems, ϕ=0.8\phi=0.8 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 d/a=0d/a=0 becomes more pronounced with increasing ϕ\phi 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 ϕ≃0.6\phi\simeq 0.6 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 ϕ≃0.6\phi\simeq 0.6. 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 ϕsep=3/5\phi_{\rm sep}=3/5. 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

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 ϕ=0.59\phi=0.59. 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 ϕ=0.599\phi=0.599. 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 ϕ=0.599\phi=0.599. Representative frames are shown in Fig. 3(k)–(n) of the main text.

Movie S4: An MCMC trajectory at ϕ=0.74\phi=0.74, 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 aa 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 g⁡(r)g(r) 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 101010^{10} MC steps and record one configuration every 10410^{4} steps, yielding 10610^{6} 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 10610^{6} 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 5×1095\times 10^{9} MC steps, with one configuration sampled every five steps, yielding 10910^{9} sampled configurations for each pressure data point. The values β​P1​a2\beta P_{1}a^{2} and β​P2​a2\beta P_{2}a^{2} quoted below were obtained from MCMC simulations initialized from classes I and II, respectively. For uniform insertion sampling, 10710^{7} statistically independent non-overlapping configurations were generated at each packing fraction and used to evaluate PtotP_{\mathrm{tot}}.

For ϕ≳0.6\phi\gtrsim 0.6, 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

P1=−∂F1∂Abox=kB​T​∂ln⁡Q1∂Abox=kB​TQ1​∂Q1∂Abox,P_{1}=-\frac{\partial F_{1}}{\partial A_{\mathrm{box}}}=k_{B}T\frac{\partial\ln Q_{1}}{\partial A_{\mathrm{box}}}=\frac{k_{B}T}{Q_{1}}\frac{\partial Q_{1}}{\partial A_{\mathrm{box}}}, (S1)

and

P2=−∂F2∂Abox=kB​T​∂ln⁡Q2∂Abox=kB​TQ2​∂Q2∂Abox.P_{2}=-\frac{\partial F_{2}}{\partial A_{\mathrm{box}}}=k_{B}T\frac{\partial\ln Q_{2}}{\partial A_{\mathrm{box}}}=\frac{k_{B}T}{Q_{2}}\frac{\partial Q_{2}}{\partial A_{\mathrm{box}}}. (S2)

The pressure of the full configuration space is

Ptot=−∂Ftot∂Abox=kB​T​∂ln⁡Qtot∂Abox=kB​TQtot​∂Qtot∂Abox.P_{\mathrm{tot}}=-\frac{\partial F_{\mathrm{tot}}}{\partial A_{\mathrm{box}}}=k_{B}T\frac{\partial\ln Q_{\mathrm{tot}}}{\partial A_{\mathrm{box}}}=\frac{k_{B}T}{Q_{\mathrm{tot}}}\frac{\partial Q_{\mathrm{tot}}}{\partial A_{\mathrm{box}}}. (S3)

Here F1,2F_{1,2} and Q1,2Q_{1,2} are the free energies and configurational partition functions of the two disconnected regions, respectively, while FtotF_{\mathrm{tot}} and QtotQ_{\mathrm{tot}} are those of the full configuration space. Substituting Eqs. (S1) and (S2) into Eq. (S3), we obtain

P1​Q1+P2​Q2=Ptot​Qtot.P_{1}Q_{1}+P_{2}Q_{2}=P_{\mathrm{tot}}Q_{\mathrm{tot}}. (S4)

Using Qtot=Q1+Q2Q_{\mathrm{tot}}=Q_{1}+Q_{2}, the relative weight of region II in the full configuration space is

Q2Qtot=Ptot−P1P2−P1.\frac{Q_{2}}{Q_{\mathrm{tot}}}=\frac{P_{\mathrm{tot}}-P_{1}}{P_{2}-P_{1}}. (S5)

At ϕ=0.6\phi=0.6, the dimensionless pressures of the two regions are β​P1​a2=5.936\beta P_{1}a^{2}=5.936 and β​P2​a2=9.577\beta P_{2}a^{2}=9.577, while the pressure calculated from the uniform insertion method is β​Ptot​a2=6.121\beta P_{\mathrm{tot}}a^{2}=6.121. Let V1V_{1}, V2V_{2}, and VtotV_{\mathrm{tot}} denote the corresponding configurational-space volumes. We then obtain

V2Vtot=Q2Qtot=6.121−5.9369.577−5.936≈0.0508.\frac{V_{2}}{V_{\mathrm{tot}}}=\frac{Q_{2}}{Q_{\mathrm{tot}}}=\frac{6.121-5.936}{9.577-5.936}\approx 0.0508. (S6)

Thus, at this packing fraction, the configuration-space region associated with class II accounts for approximately 5.1%5.1\% 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,

Xm={(𝐫m,i,θm,i)}i=13,m=0,…,M−1,X_{m}=\left\{\left(\mathbf{r}_{m,i},\theta_{m,i}\right)\right\}_{i=1}^{3},\qquad m=0,\ldots,M-1, (S7)

where mm labels the position of the image along the chain and ii 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, X0X_{0} and XM−1X_{M-1}, 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 M=400M=400 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

Uspr=kspr2​∑m=0M−2[d⁡(Xm,Xm+1)−ℓ0]2,U_{\rm spr}=\frac{k_{\rm spr}}{2}\sum_{m=0}^{M-2}\left[d(X_{m},X_{m+1})-\ell_{0}\right]^{2}, (S8)

where d⁡(Xm,Xm+1)d(X_{m},X_{m+1}) is the distance between two complete configurations, ksprk_{\rm spr} is the spring constant, and ℓ0\ell_{0} 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

A={(𝐫iA,θiA)}i=13,B={(𝐫iB,θiB)}i=13,A=\left\{\left(\mathbf{r}_{i}^{A},\theta_{i}^{A}\right)\right\}_{i=1}^{3},\qquad B=\left\{\left(\mathbf{r}_{i}^{B},\theta_{i}^{B}\right)\right\}_{i=1}^{3}, (S9)

in a square periodic box of side length L. For a given particle permutation π∈S3\pi\in S_{3}, we enumerated the periodic unwrapping branches

𝐧i=(ni,x,ni,y)∈{−1,0,1}2,\mathbf{n}_{i}=(n_{i,x},n_{i,y})\in\{-1,0,1\}^{2}, (S10)

and defined the corresponding unwrapped displacement of each matched particle pair as

Δ​𝐫i=𝐫iA−𝐫π⁡(i)B+L​𝐧i.\Delta\mathbf{r}_{i}=\mathbf{r}_{i}^{A}-\mathbf{r}_{\pi(i)}^{B}+L\mathbf{n}_{i}. (S11)

For a fixed permutation and a fixed set of unwrapping branches, the common translation that minimizes the total squared positional mismatch is

𝝉opt=13​∑i=13Δ​𝐫i.\bm{\tau}_{\rm opt}=\frac{1}{3}\sum_{i=1}^{3}\Delta\mathbf{r}_{i}. (S12)

The positional contribution to the configuration distance was therefore defined as

Dpos2​(A,B,π)=13​L2​min⁡∑i=13{𝐧i}⁡|Δ​𝐫i−𝝉opt|2,D_{\rm pos}^{2}(A,B;\pi)=\frac{1}{3L^{2}}\min_{\{\mathbf{n}_{i}\}}\sum_{i=1}^{3}\left|\Delta\mathbf{r}_{i}-\bm{\tau}_{\rm opt}\right|^{2}, (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 π/2\pi/2,

Δ​θi,π⁡(i)=θiA−θπ⁡(i)B−π2​round⁡[θiA−θπ⁡(i)Bπ/2].\Delta\theta_{i,\pi(i)}=\theta_{i}^{A}-\theta_{\pi(i)}^{B}-\frac{\pi}{2}\operatorname{round}\left[\frac{\theta_{i}^{A}-\theta_{\pi(i)}^{B}}{\pi/2}\right]. (S14)

The total squared distance between configurations AA and BB was then defined as

d2​(A,B)=minπ∈S3⁡[Dpos2​(A,B,π)+wθ3​∑i=13Δ​θi,π⁡(i)2].d^{2}(A,B)=\min_{\pi\in S_{3}}\left[D_{\rm pos}^{2}(A,B;\pi)+\frac{w_{\theta}}{3}\sum_{i=1}^{3}\Delta\theta_{i,\pi(i)}^{2}\right]. (S15)

This metric is invariant under periodic wrapping, global translation, particle relabeling, and rotations of an individual square by integer multiples of π/2\pi/2.

The parameter wθw_{\theta} sets the relative weighting of positional and orientational differences. We used wθ=0.01w_{\theta}=0.01 throughout. The orientational term promotes smooth variations of the particle orientations along the chain. Increasing wθw_{\theta} 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 wθw_{\theta}.

The internal images were relaxed by Metropolis Monte Carlo. In each trial move, an internal image XmX_{m}, with 1≤m≤M−21\leq m\leq M-2, and one of its three squares were selected at random. The selected square was translated and rotated according to

𝐫m,i→𝐫m,i+δ​𝐫,θm,i→θm,i+δ​θ,\mathbf{r}_{m,i}\rightarrow\mathbf{r}_{m,i}+\delta\mathbf{r},\qquad\theta_{m,i}\rightarrow\theta_{m,i}+\delta\theta, (S16)

while all other particles and images remained unchanged. The two Cartesian components of δ​𝐫\delta\mathbf{r} and the angular displacement δ​θ\delta\theta were drawn independently from symmetric uniform distributions. Their proposal amplitudes were adjusted together to maintain an acceptance rate of approximately 0.30.3.

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 XmX_{m} had to be recalculated. The move was then accepted with probability

αacc=min⁡[1,exp⁡(−β​Δ​Uspr)],\alpha_{\rm acc}=\min\left[1,\exp\left(-\beta\Delta U_{\rm spr}\right)\right], (S17)

where Δ​Uspr\Delta U_{\rm spr} is the change in the auxiliary spring energy. We used reduced units in which β=(kB​T)−1=1\beta=(k_{\rm B}T)^{-1}=1. During a single relaxation schedule, the spring constant was increased monotonically from 10410^{4} to 101310^{13} in multiplicative increments of 100.510^{0.5}. At each fixed value of ksprk_{\rm spr}, we performed 10510^{5} Monte Carlo sweeps before proceeding to the next value. One sweep consisted of 3​(M−2)3(M-2) randomly selected single-particle trial moves, where MM 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 ksprk_{\rm spr}, the weak spring bias allowed the internal images to explore the overlap-free configurational space. As ksprk_{\rm spr} 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 ℓ0=0\ell_{0}=0, so that the spring potential penalized large neighboring-image separations without imposing a finite target spacing. The value of ℓ0\ell_{0} was kept at zero for kspr<1010k_{\rm spr}<10^{10}. For kspr≥1010k_{\rm spr}\geq 10^{10}, it was gradually increased from 3.0×10−43.0\times 10^{-4} to 5.6×10−45.6\times 10^{-4} 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 ℓ0\ell_{0} 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 kspr=1013k_{\rm spr}=10^{13} stage.

During the relaxation, we monitored the neighboring-image distances

dm=d(Xm,Xm+1),m=0,…,M−2.d_{m}=d(X_{m},X_{m+1}),\qquad m=0,\ldots,M-2. (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

Figure S1: Geometric construction of the tilted bottleneck configuration at ϕ=0.6\phi=0.6. The box vectors 𝐩\mathbf{p} and 𝐪\mathbf{q} are constructed from the square-edge directions 𝐮\mathbf{u} and 𝐯\mathbf{v} according to Eq. (S20), with (m,n)=(2,1)(m,n)=(2,1).

Here we provide a geometric interpretation of the configurational-space separation density ϕsep=0.6\phi_{\rm sep}=0.6. 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 aa be the side length of each square and LL the side length of the square periodic box. The packing fraction is

ϕ=3​a2L2.\phi=\frac{3a^{2}}{L^{2}}. (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 𝐮\mathbf{u} and 𝐯\mathbf{v} 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 𝐮\mathbf{u} and 𝐯\mathbf{v}, they can be written as

𝐩=a⁡(m​𝐮−n​𝐯),𝐪=a⁡(n​𝐮+m​𝐯),\mathbf{p}=a(m\mathbf{u}-n\mathbf{v}),\qquad\mathbf{q}=a(n\mathbf{u}+m\mathbf{v}), (S20)

where mm and nn are non-negative integers. These vectors satisfy |𝐩|=|𝐪|=a​m2+n2|\mathbf{p}|=|\mathbf{q}|=a\sqrt{m^{2}+n^{2}} and 𝐩⋅𝐪=0\mathbf{p}\cdot\mathbf{q}=0. Hence,

L=a​m2+n2,ϕ=3m2+n2.L=a\sqrt{m^{2}+n^{2}},\qquad\phi=\frac{3}{m^{2}+n^{2}}. (S21)

The smallest integer constructions are listed in Table S1. Cases with n=0n=0 correspond to axial arrangements in which the square edges are aligned with the box directions. The smaller tilted construction (m,n)=(1,1)(m,n)=(1,1) cannot accommodate three squares. The smallest physically allowed tilted construction is therefore (m,n)=(2,1)(m,n)=(2,1), which gives

Lsep=5​a,ϕsep=35=0.6.L_{\rm sep}=\sqrt{5}a,\qquad\phi_{\rm sep}=\frac{3}{5}=0.6. (S22)

For the (m,n)=(2,1)(m,n)=(2,1) geometry, one may choose

𝐮=15​(2,1),𝐯=15​(−1,2).\mathbf{u}=\frac{1}{\sqrt{5}}(2,1),\qquad\mathbf{v}=\frac{1}{\sqrt{5}}(-1,2). (S23)

The corresponding orientation of the squares relative to the box is

θsep=tan−1⁡(12)≈26.6∘,\theta_{\rm sep}=\tan^{-1}\left(\frac{1}{2}\right)\approx 26.6^{\circ}, (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 ϕ\phi approaches ϕsep\phi_{\rm sep} from below, the channel becomes increasingly narrow, making direct transitions between the two configurational regions progressively more difficult to observe by MCMC. At ϕ=ϕsep\phi=\phi_{\rm sep}, 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 ϕ>ϕsep\phi>\phi_{\rm sep}, or equivalently L<5​aL<\sqrt{5}a, 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 ϕ>ϕsep\phi>\phi_{\rm sep}, 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.

Table S1: Smallest integer constructions of parallel squares compatible with a square periodic box. The box side length is L=a​m2+n2L=a\sqrt{m^{2}+n^{2}}, and the corresponding packing fraction for three squares is ϕ=3/(m2+n2)\phi=3/(m^{2}+n^{2}).
(m,n)(m,n) L2/a2L^{2}/a^{2} ϕ\phi Interpretation
(1,0)(1,0) 11 33 Too small to contain three squares
(1,1)(1,1) 22 3/23/2 Too small to contain three squares
(2,0)(2,0) 44 3/43/4 Axial arrangement
(2,1)(2,1) 55 3/53/5 Smallest tilted arrangement
(2,2)(2,2) 88 3/83/8 Tilted arrangement at lower packing fraction
(3,0)(3,0) 99 1/31/3 Axial arrangement at lower packing fraction
(3,1)(3,1) 1010 3/103/10 Tilted arrangement at lower packing fraction

VI Classification of high-density configurations

At the configurational-space separation density ϕsep=0.6\phi_{\rm sep}=0.6, 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 ϕ=0.6\phi=0.6, using the same MCMC protocol as described in Sec. II. We collected 10710^{7} configurations for each class, yielding a total of 2×1072\times 10^{7} labeled configurations.

Because a square has fourfold rotational symmetry, orientations differing by integer multiples of π/2\pi/2 are physically equivalent. In configurations generated by uniform insertion sampling, the particle orientations span the full interval [0,2​π)[0,2\pi), 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 π/2\pi/2 and mapped it onto [0,π/2)[0,\pi/2). 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 (x,y,z,qw,qx,qy,qz)(x,y,z,q_{w},q_{x},q_{y},q_{z}) were converted into a nine-dimensional input vector (xi,yi,θi)i=13(x_{i},y_{i},\theta_{i})_{i=1}^{3}, where θi\theta_{i} is the in-plane orientation obtained from the quaternion and reduced modulo π/2\pi/2. The particle coordinates were normalized by the box half-length and wrapped into [−1,1)[-1,1) 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 pIIp_{\mathrm{II}} 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 4.0×1064.0\times 10^{6} configurations in the held-out test set. Configurations with pII≥0.5p_{\mathrm{II}}\geq 0.5 were assigned to class II, and the remaining configurations were assigned to class I.

For packing fractions ϕ′>0.6\phi^{\prime}>0.6, the allowed configurational space expressed in fractional coordinates satisfies

Ω⁡(ϕ′)⊆Ω⁡(0.6),\Omega(\phi^{\prime})\subseteq\Omega(0.6),

because increasing the packing fraction can only remove configurations that develop particle overlaps. For any allowed configuration at ϕ′>0.6\phi^{\prime}>0.6, the same wrapped fractional coordinates therefore define an allowed configuration at ϕ=0.6\phi=0.6. Since the box is larger at ϕ=0.6\phi=0.6, 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 ϕ=0.6\phi=0.6 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 ϕ=0.6\phi=0.6 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 ϕ=0.6\phi=0.6 directly to higher-density configurations using the same coordinate and orientation preprocessing.

As a consistency check, we applied the trained classifier to the 10710^{7} configurations generated by uniform insertion sampling at ϕ=0.6\phi=0.6 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 PtotP_{\mathrm{tot}}, in the relation derived above, we obtain

Q2Qtot≈0.0503,\frac{Q_{2}}{Q_{\mathrm{tot}}}\approx 0.0503,

in close agreement with the value 0.05080.0508 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

Figure S2: Geometric construction of the limiting rotations of the second square when its center lies in region II. The lower square is the reference square, and the upper square is the second square. Panels (a) and (b) illustrate the counterclockwise and clockwise limiting rotations, θ−\theta_{-} and θ+\theta_{+}, respectively, at which the two squares first come into contact. The dashed lines partition the possible locations of the center OO of the second square into regions I–IV. The auxiliary angle δ\delta is indicated.

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 aa. We denote its lateral displacement from the midpoint of the corresponding side of the reference square by s=d/a∈[−1/2,1/2]s=d/a\in[-1/2,1/2], and its perpendicular distance from that side by h∈[0,1]h\in[0,1].

Because a square has fourfold rotational symmetry, it is sufficient to consider one angular period of length π/2\pi/2. We take the orientation parallel to the reference square as α=0\alpha=0 and restrict the relative orientation to α∈[−π/4,π/4]\alpha\in[-\pi/4,\pi/4], with positive α\alpha corresponding to clockwise rotation. For fixed (s,h)(s,h), 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 𝒜⁡(s,h)\mathcal{A}(s,h).

The geometry is symmetric under s→−ss\rightarrow-s, so we introduce ξ=|s|\xi=|s|. The normalized dilute-limit reference curve can then be written as

fid​(s)=F⁡(|s|)F⁡(0),F⁡(ξ)=∫01𝒜⁡(ξ,h)​𝑑h.f_{\rm id}(s)=\frac{F(|s|)}{F(0)},\qquad F(\xi)=\int_{0}^{1}\mathcal{A}(\xi,h)\,\mathrm{d}h. (S25)

The normalization is chosen such that fid​(0)=1f_{\rm id}(0)=1, 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, 0≤h<1/20\leq h<1/2, the two squares overlap for all orientations. In region IV, 1/2≤h≤11/\sqrt{2}\leq h\leq 1, the two squares remain non-overlapping over the entire angular interval, giving 𝒜⁡(ξ,h)=π/2\mathcal{A}(\xi,h)=\pi/2.

We next consider region II, where 1/2≤h<hc​(ξ)1/2\leq h<h_{c}(\xi). The clockwise and counterclockwise rotations are limited by different contact geometries. We define the auxiliary angle

δ⁡(h)=arccos⁡(h2/2).\delta(h)=\arccos\left(\frac{h}{\sqrt{2}/2}\right). (S26)

As illustrated in Fig. S2, we denote the maximum counterclockwise and clockwise rotation angles by θ−\theta_{-} and θ+\theta_{+}, corresponding to panels (a) and (b), respectively. The counterclockwise limit is

θ−​(h)=π4−δ⁡(h),\theta_{-}(h)=\frac{\pi}{4}-\delta(h), (S27)

whereas the clockwise limit is

θ+​(ξ,h)=π2−arctan⁡(1−2​ξ2​h)−arcsin⁡[14​h2+(1−2​ξ)2].\begin{split}\theta_{+}(\xi,h)&=\frac{\pi}{2}-\arctan\left(\frac{1-2\xi}{2h}\right)-\arcsin\left[\frac{1}{\sqrt{4h^{2}+(1-2\xi)^{2}}}\right].\end{split} (S28)

Since positive α\alpha corresponds to clockwise rotation, the allowed orientations in region II satisfy −θ−​(h)≤α≤θ+​(ξ,h)-\theta_{-}(h)\leq\alpha\leq\theta_{+}(\xi,h), and the corresponding angular measure is θ+​(ξ,h)+θ−​(h)\theta_{+}(\xi,h)+\theta_{-}(h). 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

hc​(ξ)=(22)2−(ξ−12)2.h_{c}(\xi)=\sqrt{\left(\frac{\sqrt{2}}{2}\right)^{2}-\left(\xi-\frac{1}{2}\right)^{2}}. (S29)

At h=hc​(ξ)h=h_{c}(\xi), the clockwise and counterclockwise limiting angles become equal.

For hc​(ξ)≤h<1/2h_{c}(\xi)\leq h<1/\sqrt{2}, 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 θ−​(h)\theta_{-}(h), and the allowed angular measure is 2​θ−​(h)2\theta_{-}(h).

Combining the four geometric regions, the allowed angular measure is

𝒜⁡(ξ,h)={0,0≤h<12,θ+​(ξ,h)+θ−​(h),12≤h<hc​(ξ),2​θ−​(h),hc​(ξ)≤h<12,π2,12≤h≤1.\mathcal{A}(\xi,h)=\begin{cases}0,&0\leq h<\dfrac{1}{2},\\ \theta_{+}(\xi,h)+\theta_{-}(h),&\dfrac{1}{2}\leq h<h_{c}(\xi),\\ 2\theta_{-}(h),&h_{c}(\xi)\leq h<\dfrac{1}{\sqrt{2}},\\ \dfrac{\pi}{2},&\dfrac{1}{\sqrt{2}}\leq h\leq 1.\end{cases} (S30)

The four cases correspond to regions I–IV, respectively. Substituting Eq. (S30) into Eq. (S25), we obtain

F⁡(ξ)=∫1/2hc​(ξ)[θ+​(ξ,h)+θ−​(h)]​dh+∫hc​(ξ)1/22​θ−​(h)​dh+∫1/21π2​dh.\begin{split}F(\xi)&=\int_{1/2}^{h_{c}(\xi)}\left[\theta_{+}(\xi,h)+\theta_{-}(h)\right]\mathrm{d}h+\int_{h_{c}(\xi)}^{1/\sqrt{2}}2\theta_{-}(h)\,\mathrm{d}h+\int_{1/\sqrt{2}}^{1}\frac{\pi}{2}\,\mathrm{d}h.\end{split} (S31)

The dilute-limit reference curve shown in Fig. 4(c) of the main text is therefore

fid​(da)=F⁡(|d/a|)F⁡(0).f_{\rm id}\left(\frac{d}{a}\right)=\frac{F\!\left(\left|d/a\right|\right)}{F(0)}. (S32)

Numerical evaluation of these integrals yields the gray dashed curve shown in Fig. 4(c) of the main text.

References