Zero-temperature equation of state of quasi-one-dimensional H2