Quality system certification refers to a comprehensive analysis of the factory, such as your environment, pollution status, personnel health, institutional management and so on.
These two have no direct relationship, in the first to get the QS certificate and then slowly improve the quality system, the quality system is a step by step, is a collection of documents.