Is the patent department equivalent to quality management system certification?

Completely two different things!

Patent rights belong to the category of intellectual property protection; they are designed to protect commercial interests in product innovation and protect the interests of inventors.

Quality management system certification is a form of providing quality trust. It is a certification for the process, not for the product.

Quality management system certification is to facilitate product sales, and can also be said to protect the interests of customers.