质量 (zhìliàng): Almost exclusively refers to the quality of a
physical object, product, or a defined task. It's often measurable against a standard (e.g., defect rate, durability). It's the word you use for “quality control” (`质量管理`, zhìliàng guǎnlǐ).
You can never use `质量` to describe a person's character.