From quantum matter to high-temperature superconductivity in copper oxides