Given a coordinate, a unit cell width, and a unit cell depth, calculates the linear offset of the (potentially re-mapped) site in the unit cell.
Order of sites is:
(with A ~ 10
and B ~ 11
).
Referenced by syten::Pyten::init_ipeps_lattice(), syten::Pyten::init_ipeps_state(), and syten::Pyten::init_ipeps_util().