I disagree (somewhat).
The Leica R series lenses have their own character and are therefore not equal to Pentax. They produce images that look different. Some have a microcontrast, dynamic range and colour fidelity that are superior to Pentax greats like FA77 and FA31, I would say, though the differences to my eyes, are not very big. I am thinking in particular of Leica 19/2.8, 35/1.4, 50/1.4 E60 and APO Macro 100/2.8.
Of course, the light makes more difference than the lens, I agree, but the lenses are not the same, although Pentax lenses are excellent, no doubt.
These were just recently taken with the 100/2.8 macro and no postprocessing that I recall:
Here's a quick comparison I did with my sleepy daughter and 77ltd vs Leica 50/1.4 E60 (both wide open):
The second image (Leica) is slightly front-focused but to my eyes is still punchier, more 3-d. Maybe it's a matter of taste?
I also remember comparing Leica 35/1.4 and 31ltd shooting a patch of weeds stopped down to maybe f8. No matter how I tried I could not expose to get both the highlights on yellow flowers and the grass not overexposed and the background not underexposed with the 31ltd, but with the Leica I got this (unfortunately I didn't keep my 31ltd attempts):