Code and data of the numerical simulations for "Universality in Quantum Many-Body Spin Ratchets" (arXiv:2611.08590)

## Code

The main script to run is `run_simulation.jl`, in the `code` folder. It should be launched from command line, with the arguments specified in the comment at the beginning of the script. The required Julia packages are listed in `code/Project.toml`.

## Data

The outputs of the numerical simulations are JSON files in the `data` folder, which may be read using Julia with the function `read_json` in `code/io.jl`.

This function returns a dictionary whose keys are the operators used to compute the correlation functions with Z_{1,2}(t). To obtain the plots in the figures, choose "Sum", corresponding to S^z_1 + S^z_2. This will yield a dictionary with iteration numbers as keys and site-resolved correlation functions as values; the iteration numbers are stored as strings. For example, the correlation functions after 10 iterations are obtained as `data["Sum"]["10"]`. At each time, only values inside the lightcone are provided.

Files are named as follows:
- The filename ends, for example, with `mu_0.3_chi_128.json` for the data at \mu = 0.3 and bond dimension \chi = 128.
- Files starting with `random_u1` refer to simulations in which each gate was independently sampled from the Haar distribution with the constraint of charge conservation.
- The file starting with `homogeneous_u1` refers to the homogeneous circuit obtained by application of gate A (see Supplemental Material).
- The file starting with `alternating_pattern_mod2` refers to the pattern alternating between the identity and G unitaries, with m = 2.
