Introduction

Quantum-gas microscopes1,2,3 offer a unique tool for quantum simulation of many-body quantum systems4,5,6,7 in optical lattices with single-atom imaging resolution and control. The addition of tailored static light potentials has made it possible to create box-like traps and cancel the harmonic confinement, enabling the study of homogeneous systems8,9 and topological and magnetic phases in restricted dimensions10,11,12. It is experimentally challenging to control the number of particles13 and the filling, which can dramatically change the properties of the quantum system. The addition or removal of a particle is analogous to doping in semiconductors, and it is relevant to the physics of doped antiferromagnet high-Tc superconductors14. Recent experimental studies using quantum-gas microscopes have shed light on the role of doping in Fermi-Hubbard systems15, by observing bulk transport properties16,17,18, string patterns19, incommensurate magnetism20, magnetic polarons21,22,23, and hole pairing via magnetic coupling12.

The lattice filling is equally relevant for bosonic many-body quantum systems. In the case of a commensurate particle number, i.e., an integer filling fraction, a homogeneous system can attain a Mott-insulating phase24,25, while for systems with incommensurate fillings interesting quantum phases have been predicted, such as supersolid and crystalline phases26,27 and the Bose-glass phase in the presence of a disordered potential24,28,29,30, or defect-induced superfluidity31. Dynamic control over the shape of the light potential using a digital micromirror device (DMD) has recently been used to stir quantum gases to generate vortices32,33,34 and to switch between two optical potentials12,23.

In this work, we use a DMD to create dynamic light potentials at a microscopic level to control the commensurability of bosonic quantum systems. We initially prepare commensurate 1D bosonic quantum systems at unit filling between repulsive potential barriers, before the confining potential is dynamically changed to reduce the number of available lattice sites while retaining the atom number. With this incommensurate filling, the system is no longer a Mott insulator, which we probe by studying the mobility of particles when subjected to a bias potential. The incommensurate systems with delocalised atoms on a localised background also feature nontrivial site occupation probabilities in the ground state35. Our technique to use a dynamic light potential to deterministically prepare a low-entropy incommensurate quantum state can also be applied to study many-body quantum systems in different confining potentials or lattice geometries36,37.

Results

Preparation of (in)commensurate systems

To prepare and detect our 1D commensurate and incommensurate quantum systems with up to 6 atoms, we employ a quantum-gas microscope which allows for single-atom-resolved detection of bosonic 87Rb atoms, using a setup similar to earlier studies2,38. Initially, we create a degenerate 2D quantum gas of around 400 atoms in a single antinode of a vertical optical lattice in the z-direction overlapped with two horizontal optical lattice beams (wavelength λ = 1064 nm) in the x- and y-directions (Methods). Using a DMD and light at 666 nm wavelength, we produce two repulsive potential barriers of rectangular shape covering 3 × 10 lattice sites each (Fig. 1a) that are projected onto the optical lattice by a high-resolution microscope objective. We create ten independent commensurate one-dimensional systems with unit filling by initially preparing a 2D Mott-insulating state. This is done by changing the lattice potential of both horizontal beams from 0 to Vx = Vy = 50(2) Er within 500 ms. Here, Er = 2/2mλ2 is the recoil energy, with m being the atomic mass of 87 Rb. During the quantum phase transition from a superfluid to the Mott insulator, the open geometry in the y-direction of the repulsive potential allows for the redistribution of residual entropy towards the outer regions thus enhancing the preparation fidelity in the centre.

Fig. 1: 1D system preparation, experimental scenario and phase diagram.
figure 1

a Left: fluorescence image of a Mott insulator of 87Rb atoms in the presence of two repulsive potential barriers, visible as hollow rectangles in the centre, Middle: corresponding atom distribution. Right: Magnification of the central region, highlighting the individual 1D systems with five atoms and the location of the repulsive potential (grey shaded areas). b Sketch of the procedure to generate an incommensurate (doped) 1D quantum system: (i) Initial preparation of a Mott insulating state, (ii) transition to the superfluid regime, and reduction of the number of lattice sites by moving the potential barrier, (iii) transition into the strongly interacting regime. c Illustration of the phase diagram for the 1D Bose-Hubbard model for finite particle number indicating the path followed through stages (i)-(iii).

The experimental procedure is illustrated in Fig. 1b together with a phase diagram in Fig. 1c. Initially, our commensurate 1D system in a Mott-insulating state (Fig. 1b, panel i) is brought into the superfluid regime (Fig. 1b, panel ii). The position of the repulsive potential barrier is then moved to reduce the number of available lattice sites while retaining the atom number (Fig. 1b, panel iii). As a result, when the 1D system is brought back into the strongly interacting regime, it can no longer form a Mott insulator with unit filling, as shown in the phase diagram (Fig. 1c).

To characterise the commensurate and incommensurate 1D systems at each stage of the experimental sequence (Fig. 2a), we record the parity of the atom number (Fig. 2b-e) on each lattice site (Methods), as due to light-assisted collisions during the fluorescence imaging we measure the atom number modulus two2. From this, we calculate the probability of finding empty sites as a function of the lattice site (Fig. 2f-i) and a histogram of the number of empty sites (Fig. 2j-m) per 1D system. We post-select the datasets by excluding 1D systems (white dashed lines Fig. 2b-e) in which the wrong parity is measured or in which an atom is detected at the position of the potential barrier (Supplementary Methods). After this post-selection we retain on average 70% of the 1D systems, creating effectively a low-temperature subset of the measured datasets38. We initially measure the preparation fidelity of five atoms on five lattice sites in the strongly interacting regime. In this scenario with commensurate filling, each atom is localised on a single lattice site. We measure 96(2)% of the systems with the expected atom number (Fig. 2j), and in 4(2)% of the cases we find two empty sites equally distributed across the system (Fig. 2f). We attribute these to our non-zero initial temperature and to excitations arising from technical noise. To enter the superfluid regime, the x-lattice potential is decreased from Vi = 50(2) Er to Vc = 2.8(4) Er within 150 ms, thereby increasing J/U. Here, J is the tunnelling rate, and U is the onsite interaction in the Bose-Hubbard model (Methods). We keep the y-lattice at Vy = 50(2)Er to prevent tunneling between the 1D systems. The atoms within the superfluid 1D system become delocalised and due to the atom number fluctuations, we observe an increased number of empty sites which have a uniform spatial distribution (Fig. 2g). We now move the position of one of the potential barriers in 18 discrete steps (Methods), within 200 ms. The system size is reduced to four sites while retaining the five initial atoms, creating a doped system with incommensurate filling. As a consequence, we observe an odd number of empty sites (Fig. 2l). Then, the x-lattice potential is increased to Vf = 16(1) Er within 200 ms to bring the incommensurate systems back into the strongly interacting regime, leading to the suppression of holes (Fig. 2m). The distribution of empty sites, which now correspond to sites occupied by two atoms, shows a higher probability on the central two sites (Fig. 2i). The occupation of the central sites is energetically favourable due to the boundary, as predicted by our simulations of the single-band Bose-Hubbard model (Methods).

Fig. 2: Experimental procedure for doping a Mott insulator.
figure 2

a Time-dependent variation of the x-lattice potential, Vx. Numbers in circles indicate the stages at which measurements are performed: (1) after preparation of a commensurate system in a Mott-insulating state at Vi = 50(2) Er; (2) after preparation of a superfluid state in a shallow lattice, Vc = 2.8(4) Er; (3) after creating an incommensurate system by dynamically compressing the superfluid, (4) after increasing the lattice depth to reach the strongly interacting regime again, Vf = 16(1) Er. be Reconstructed lattice occupation of one experimental realisation, showing the repulsive potential (grey), atoms (dark red) and observed empty sites (light red) that result from both holes and doublons. White dashed lines indicate rows excluded from the statistics by post-selection. fi Observed probabilities of detecting an empty site. jm Probability vs number of empty sites for the same system. Each histogram is obtained by averaging over 260–380 independent 1D systems, and all error bars are the 95% Clopper-Pearson confidence intervals.

Strongly and weakly interacting systems

We study the difference between an incommensurate and commensurate 1D system when transitioning from the weakly to the strongly interacting regime. Specifically, we prepare an incommensurate system with five atoms on four lattice sites, and compare it to one with commensurate fillings of five and four atoms on five and four sites, respectively (Fig. 3a). We use the same experimental procedure to prepare the commensurate and incommensurate systems, the only difference being that repulsive barriers are not moved for the commensurate ones. The number of observed empty sites is compared to our numerical simulations (Fig. 3), taking into account the time-varying potential during the entire experimental procedure (Methods), for both T = 0 and T = 0.15 U. The latter is the measured temperature of the initial 2D Mott insulator, which is an upper bound because the effective temperature for the 1D systems is lower as a result of the reduced entropy in the centre region (Fig. 1c) and the post-selection.

Fig. 3: Strongly and weakly interacting commensurate and incommensurate 1D systems.
figure 3

a Number of empty sites per 1D system vs J/U for 5 atoms on 5 lattice sites (black circles), 4 atoms on 4 sites (red squares), 5 atoms on 4 sites (blue diamonds). Observed empty sites result from both holes and doublons. Error bars show the standard error. Our numerical simulations show the number of empty sites for T = 0 (dashed lines) and for T = 0.15 U (dotted lines). b Probabilities of zero (red), two (orange) and four empty sites (brown) per 1D system vs J/U in a commensurate system with 4 atoms on 4 sites. c same for an incommensurate system with 5 atoms on 4 sites, showing the probabilities of finding one (blue) and three (cyan) empty sites. Each data point is obtained by averaging over 110−190 independent 1D quantum systems, and error bars in (b, c) are the Clopper-Pearson 95% confidence intervals.

In the strongly interacting regime, J/U 1, we observe on average <0.2 empty sites in the commensurate system, as it attains a Mott-insulating state. In contrast, in the incommensurate system, we observe close to one empty site (Fig. 3a), due to the appearance of a doubly occupied site resulting from one delocalised atom on a localised background. As we increase J/U to enter the weakly interacting or superfluid regime, the number of observed empty sites increases in all three cases, in good agreement with the numerical simulation (Methods). Using the same data sets, we evaluated the probabilities of detecting empty sites in each 1D system (Fig. 3b and c). As J/U is increased, we observe that for the commensurate system with 4 atoms on 4 sites, the probability of observing zero empty sites decreases below 0.5 while the occurrence of two empty sites increases accordingly. This is well captured by the numerical simulation that take into account the intensity ramps used to change the lattice depths. In the case of incommensurate filling, the increase in the observed number of empty sites is less pronounced, as the expected number of empty sites per 1D system in the superfluid is only ≈ 1.6 at zero temperature. In the strongly interacting regime, we observe more empty sites in the commensurate system than predicted by the finite temperature simulations (Fig. 3a), which is attributed to loss of two atoms and particle-hole pair excitations39 due to heating from intensity noise on the trapping lasers. In the incommensurate system, these effects are more prominent due to the non-gapped excitation spectrum. Assuming that in 30% of 1D systems we lose one atom, a loss of two atoms is expected 10% of the time, and these two-atom losses are not accounted for in the post-selection as the parity is conserved.

Atom number, variance and site occupations vs density

The specific number of atoms and sites available in an incommensurate system can lead to non-trivial ground-state occupations that depend on the system size. We have so far considered 5 atoms on 4 sites, and we now compare different incommensurate states with 4, 5 and 6 particles to a Mott insulator with unit or double site occupancy in the strongly interacting regime. For each 1D system, we evaluate as a function of the average particle density, n, the detected atom number normalised by the number of sites before dynamic compression, \(\tilde{N}\), (Fig. 4a). We also calculate the variance, σ, from the mean atom number parity (Methods) (Fig. 4b). As expected, we observe Mott-insulating states with n = 1 (4 atoms on 4 sites), where \(\tilde{N}\, \approx \, 1\) and n = 2 (4 atoms on 2 sites), where \(\tilde{N}\, \approx \, 0\), as doubly occupied sites are detected as empty sites due to light-assisted collisions. The observed atom number decreases with increasing density, in agreement with our numerical calculations for the ground states at T = 0 (Methods) indicating adiabatic state preparation. The variance, σ, which is a measure for the compressibility for short-range density fluctuations40, is lowest at integer densities in the Mott-insulating state. It attains its maximum value of σ = 0.25 for non-integer densities2, again in agreement with the numerical calculations at zero temperature (Fig. 4b).

Fig. 4: Atom number, variance, and site occupation of commensurate and incommensurate systems.
figure 4

a Observed atom number normalised by the initial number of atoms, \(\tilde{N}\), vs density, n, for systems of 6 atoms prepared on 6 sites dynamically compressed to 5 and 4 sites (black), 5 atoms on 5 sites compressed to 4 and 3 sites (blue), and 4 atoms on 4 sites compressed to 3 and 2 sites (red). Experimental values are shown as squares, theoretical ones as circles. The statistical errors of the experimental values are smaller than the size of the datapoints. b Atom number variance, using the same densities as in (a). cf Site-resolved probability to detect an empty lattice site with increasing density, for 4 atoms on 3 sites, 6 atoms on 4 sites, 5 atoms on 3 sites and 4 atoms on 2 sites, respectively. Error bars in (bf) are the 95% Clopper-Pearson confidence intervals.

In the case of two additional atoms on a localised background, the symmetry of the system plays an important role. For 5 atoms on 3 sites (n = 5/3), it is energetically unfavourable for both additional atoms to be on the same lattice site. We observed that doubly occupied sites have a higher probability to be found on the outer sites compared to the central site (Fig. 4e). The state \(\left|2,1,2\right\rangle\) is favourable (Supplementary Fig. 1b), as it couples to both \(\left|1,2,2\right\rangle\) and \(\left|2,2,1\right\rangle\), reducing the kinetic energy of the ground state, which is analytically given by \(\frac{1}{\sqrt{2}}\left|2,1,2\right\rangle+\frac{1}{2}\left|1,2,2\right\rangle+\frac{1}{2}\left|2,2,1\right\rangle\) in the limit of U/J →  (Supplementary Methods). This state is robust against the presence of a weak harmonic confining potential and the small offsets from the adjacent potential walls (Supplementary Methods). This is in contrast to the state with 6 atoms on 4 sites (n = 6/4), for which we observe the additional atoms mostly on the inner two sites (Fig. 4d). Specifically, out of the systems post-selected to have two empty sites, we observe the empty sites (corresponding to sites with two atoms) next to each other in 76(7)% of the cases. In 55(7)% of the cases the two empty sites are in the centre, corresponding to the observation of state \(\left|1,2,2,1\right\rangle\) (Supplementary Fig. 1a). Unlike the n = 5/3 system, the n = 6/4 system is very sensitive to additional potential offsets, such that the inclusion of the harmonic confinement and wall potentials leads to a favoured occupation of the central sites, while in a perfect box potential the predicted density profile is flat. All our observations are well explained by the single-band Bose-Hubbard model, while being consistent with previous numerical calculations beyond the single-band model35. The inclusion of higher bands was shown to result in repulsion effects and fragmentation of the on-site density. While such effects will be present here, their observation would require the ability to probe the atomic wave function with sub-lattice-site resolution.

Particle mobility in a bias potential

It is expected that doped insulators will behave differently from undoped ones when subject to external probes, e.g., when measuring their compressibility and particle mobility. To show this we investigate how the commensurate and incommensurate systems change when subject to a gradient potential of the form \({\hat{H}}_{g}={{\Delta }}E\,\mathop{\sum }\nolimits_{i=1}^{N}i\,{\hat{n}}_{i}\), where ΔE denotes the energy shift per lattice site and \({\hat{n}}_{i}\) the local number operator. We use a deep lattice, Vx = 16(1) Er, J/h = 9(1) Hz, and a magnetic bias field that is slowly increased within 500 ms to maintain adiabaticity. When the bias field is applied to a commensurate system of four atoms on four sites, the distribution of the the empty sites remains almost unchanged (Fig. 5a–c)41. In the incommensurate system of five atoms on four lattice sites, the probability of finding the additional atom (detected as an empty site), is skewed in the direction of the force produced by the gradient (Fig. 5d–f), showing that the doped insulator has a different and nonzero compressibility compared to the undoped state. We quantify this effect by computing the centre of mass, \(\bar{x}\), of the histograms in Fig. 5a–f as a function of ΔE. While there is no change of the centre of mass for the commensurate system (Fig. 5g, red squares), for the incommensurate system (Fig. 5g, blue diamonds), \(\bar{x}\) increases with ΔE, showing that the incommensurate (doped) system is compressible42,43. The centre-of-mass shift is sensitive to the specific shape of the potential barriers and the harmonic confinement (Supplementary Methods), which is accounted for by the numerical simulation of the system dynamics.

Fig. 5: Mott insulator and doped insulator in a bias potential.
figure 5

ac Probability distributions of detecting an empty site in a commensurate system (four atoms on four sites) for maximum energy shifts per lattice site ΔE/J = 0(1), 5(1), 9(1) resulting from the bias potential. df same distributions of an incommensurate system for the same potential (five atoms on four sites), where the empty site can result from the detection of a doublon. g Centre-of-mass shift, \(\bar{x}\), measured in lattice sites, relative to the original distribution as a function the energy shift ΔE, for a commensurate (red squares) and incommensurate (blue diamonds) system, together with the corresponding numerical simulations of the ground state (dashed lines) and the ensemble average (dotted lines). Errors of ΔE/J and \(\bar{x}\) are calculated via error propagation from the gradient calibration and from the counting statistics, respectively. Each histogram is obtained by averaging over 100 − 300 1D systems.

Discussion

We have studied the effects of commensurability in one-dimensional bosonic quantum systems. Key to this is our ability to produce engineered dynamical light potentials at the scale of single lattice sites. Starting from a commensurate filling with a known atom number between static potential barriers, we moved the barriers to change the number of available lattice sites, producing incommensurate systems. To characterise our degree of control of the state preparation, we characterised these systems by measuring the occurrence of holes and doublons from strong to weak interactions. For incommensurate systems, featuring delocalised atoms on a localised background, we observed non-trivial site occupation probabilities, in agreement with our numerical calculations. Studying the spatial distribution of our systems in a potential gradient, we observed particle mobility and compressibility of the incommensurate systems, while the commensurate ones remain in an incompressible Mott-insulating state. To enable the study of larger systems, a weaker external confinement would be required, which can be achieved by programming a deconfining potential using the DMD. This would also allow us to study systems doped with holes instead of particles. Introducing disorder to incommensurate systems leads to a way to further explore the transitions between superfluid and Bose glass for few-boson systems and the effect on compressibility24,28,30. For ladder systems, control over the atom number can lead to further interesting effects including the realisation of a ‘rung Mott insulator’, predicted in a two-leg ladder with half filling44,45. Our methods for generating dynamically controlled potentials can also be used to adiabatically prepare low entropy states with controlled incommensurability or doping in both bosonic and fermionic systems.

Methods

Experimental procedure

The experiment starts with a cloud of 2 × 10987Rb atoms in a magneto-optical trap (MOT) loaded from a 2D+ MOT. The cloud is compressed by increasing the MOT’s magnetic quadrupole field and cooled to 2 μK using Raman grey molasses cooling on the D2 line46. We load about 1 × 108 atoms into a crossed optical dipole trap (CODT), formed by two laser beams at 1070 nm wavelength and 200 W power, intersecting at a 17(1) angle. The waist of the two laser beams are 425(5)μm. After this, the atoms are loaded into the focus of a dimple trap with a waist of 47(5)μm. The beam is moved using a translation stage, transporting the atoms into the ‘science’ chamber equipped with a high-resolution microscope objective (NA = 0.69). About 3 × 106 atoms are transferred into another CODT that is formed by the optical lattice beams with the retro-reflected beams blocked, before they are cooled further using evaporative cooling and loaded into the vertical optical lattice. We use a position-dependent microwave transfer in a magnetic field gradient to create a two-dimensional cloud of thermal atoms in a single anti-node of the vertical optical lattice2.

Then, a dimple trap at 850 nm wavelength is shone in through the microscope objective, while keeping the vertical lattice depth at Vz = 20(1)Er. We use a magnetic quadrupole field to tilt the trap, such that we evaporatively cool the atoms to create a Bose-Einstein condensate. We now shine in the blue-detuned light shaped by the DMD to create the repulsive potential barriers, before the two horizontal optical lattice beams are turned on. We detect the individual atoms via fluorescence imaging using the microscope objective, similar to previous works2. To freeze the atom distribution prior to detection, the optical lattice depth is first increased to 50(2)Er in 500 μs in all three axes, and then to 3000Er in 2 ms. The Lucy-Richardson algorithm is used to deconvolve the fluorescence images and reconstruct the lattice occupation with high fidelity47. We estimate the overall detection fidelity to be ≈ 99%, limited by atom hopping and losses during imaging, and by the image reconstruction fidelity.

Programmable dynamic light potentials

We use a DMD (ViALUX V-9001) to create the repulsive potential barriers using blue-detuned light at 666 nm wavelength from an amplified diode laser. The DMD image is projected onto the atoms by the high-resolution objective such that we can use 18 × 18 DMD pixels per lattice site to control our custom potentials. A dedicated software allows us to specify initial and final positions of the potential barriers in the reference frame of the optical lattice. We can also set the number of different patterns (frames) to be displayed on the DMD. An initial frame is displayed during the system preparation, and after a trigger pulse, a sequence of frames are displayed moving the barrier to reduce the system size by a discrete number of lattice sites. We program the DMD in ‘uninterrupted’ mode to suppress the dark time between successive frames. The transition time between frames is 8 μs during which the mirrors are released and the next configuration of mirrors is switched on.

We observe a phase drift of the optical lattices48, from one realisation of the experiment with respect to the next one, resulting in position shift of ~0.05 al on average, where al = λ/2 is the lattice spacing. This position shift is measured by fitting the position of single atoms in the fluorescence image. We use this information to shift the position of the DMD pattern for the next measurement to follow the phase drift. In this way the repulsive potential stays in the same place with respect to the optical lattice, with an estimated deviation of <0.05 times the lattice spacing.

To calibrate the intensity of the 666 nm light, a repulsive potential is projected onto the centre 5 × 4 sites of an n = 2 shell in a Mott insulating state (Supplementary Fig. 2a). The number of atoms observed in the region as a function of the set voltage for the laser intensity regulation shows a peak (Supplementary Fig. 2b) when the light shift caused by the repulsive light potential is equal to U. In this case, all sites covered by the repulsive potential have single occupancy and form an n = 1 Mott insulating shell12. When increasing the light intensity of the repulsive potential further such that the light shift equals 2U, we eventually see no atoms in the region once again.

We verified that compressing the quantum gas in the superfluid regime using the dynamic DMD potential does not result in significant atom loss when using a ‘frame duration’ of 10 ms. To quantify the atom losses, we have reversed the position of the repulsive potential barriers to its original position over the same timescale as for the compression, then transferred the system back into the Mott-insulating state. We found that with static barriers we detected on average 4.81(5) atoms on five sites, while when moving and reversing the potential barriers we detected on average 4.64(7) atoms.

Numerical simulation of system dynamics

For strongly interacting systems towards the Tonks-Girardeau limit with filling above unity, it is known that higher bands need to be accounted for as the on-site repulsion results in a fragmentation of the density of the particles in the ground state within individual sites35. However, for the case considered here, the quantum gas microscope can resolve between single sites and not for the particle density within a site. Therefore, we consider the single-band (lowest energy) Bose-Hubbard model to model the atoms in the one-dimensional optical lattices. The Hamiltonian is24,25

$$\hat{H}=-J\mathop{\sum }\limits_{i=1}^{N}\left({\hat{a}}_{i}^{{{{\dagger}}} }{\hat{a}}_{i+1}+h.c.\right)+\frac{U}{2}\mathop{\sum }\limits_{i=1}^{N}{\hat{n}}_{i}({\hat{n}}_{i}-1)+\mathop{\sum }\limits_{i=1}^{N}{\epsilon }_{i}{\hat{n}}_{i},$$
(1)

where N is the number of sites, \({\hat{a}}_{i}^{{{{\dagger}}} }\) and \({\hat{a}}_{i}\) are the bosonic creation and annihilation operators respectively, \({\hat{n}}_{i}={\hat{a}}_{i}^{{{{\dagger}}} }{\hat{a}}_{i}\) is the number operator, J is the tunneling strength between neighbouring lattice sites, U is the on-site interaction energy, and ϵi is the local energy shift due to an external potential. We calculate J and U from the Wannier functions, while ϵi accounts for the weak harmonic confinement and the impact of the wall potential, taking into account the calibrated height of the potential barriers and the point-spread function of the microscope.

We emulate the dynamics of the experiment numerically, accounting for the full Hilbert space of the finite lattice with fixed particle number in all cases. The state is initialised in the Mott insulator of the lattice with commensurate filling and we numerically implement the same protocol for higher filling factors. For the ramps between deep and shallow lattice potentials, we evolve the system through the implementation of the unitary evolution operator for discrete time steps, with a maximum error for individual steps of 10−6. We simulate the discrete steps of the potentials caused by the discrete frames of the DMD pattern when moving the barriers. To account for an initial thermal distribution of the state, we evolve each initial eigenstate individually and calculate the final non-zero temperature state as the sum of the evolved states weighted by the Boltzmann distribution. Overall, we find good agreement between the zero temperature numerical results and the experiment. The imaging quench to a deep lattice was simulated across a range of starting J/U values for both commensurate and incommensurate densities to ensure that it does not introduce non-adiabatic effects and results in a frozen density profile. As the same imaging quench is used in each of the experimental realisations, we exclude it from the simulation.

There is a small probability that the initial one-dimensional system of the experiment has one more or one less atom than the number of lattice sites. We have simulated the impact of this non-perfect state preparation to confirm that the observation of additional empty sites is not due to excitations from non-adiabatic effects, as these would not be captured by our numerical protocol with fixed atom number. We emulate the imperfect preparation by simulating the case of one additional atom and one less atom. We then combine the results with those assuming a perfect initial state preparation, to mimic what we observe experimentally using the post-selection process.

Definition and calculation of observables

The numerical simulations compute the full wave function, and for comparison with the experimental results we calculate the local parity operator, \({\hat{s}}_{i}\), of the ith site,

$${\hat{s}}_{i}=\frac{1}{2}\left[{\left(-1\right)}^{{\hat{n}}_{i}-1}+1\right],$$
(2)

with the local number operator \({\hat{n}}_{i}\). We use the lattice occupation to measure the parity of the atom number a single lattice site, \({s}_{i}=\langle {\hat{s}}_{i}\rangle\), and the mean atom number parity on M lattice sites, \(\bar{n}=\mathop{\sum }\nolimits_{i=1}^{M}{s}_{i}/M\), where M is given by the size of the 1D systems multiplied by the number of realisations. From this, we calculate the variance of the atom number \(\sigma=\bar{n}(1-\bar{n})\), shown in Fig. 4b.

For the datasets in Fig. 5g, we compute the centre of mass in the case of the incommensurate system (5 atoms on 4 sites) using \(\bar{x}=\mathop{\sum }\nolimits_{i=1}^{4}i\,{w}_{i}/\mathop{\sum }\nolimits_{i=1}^{4}{w}_{i}\), where wi is the probability to find an empty site (i.e., the extra atom on a doubly occupied site) on lattice site i. To match this for the commensurate system, we use \({\bar{w}}_{i}=1-{w}_{i}\) instead of wi, such that for the histograms of both commensurate and incommensurate systems the centre of mass shift of the atoms is calculated.

Calibration of bias potential

To calibrate the magnetic field used for the bias potential, we follow a method used in previous studies49,50. Starting with an n = 1 Mott Insulator, we modulate the power of the x-lattice beams by 20 % for 30 ms. When the frequency of the modulation matches the interaction energy, U, the atoms tunnel to already occupied sites which leads to an increase in holes and doubly-occupied sites. When a magnetic field gradient is applied, causing an energy offset per site of ΔE, the atoms tunnel when the frequency of the modulation matches U ± ΔE. The number of atoms counted in a central region as a function of ΔE shows two inverted peaks (Supplementary Fig. 3), the position which we identify by fitting a double Lorentzian, yielding U ± ΔE. We repeated this measurement for different field gradients, and fit a linear regression model from which we obtain the error bars for ΔE/J shown in Fig. 5g.