It's rare for theory and practice to match perfectly.

Literal

Theory [and-と] practice [subject-が] perfectly match [nominalizer-こと] [topic-は] rare is.

ぴったり一致する (to match perfectly) uses the onomatopoeia ぴったり (exactly/perfectly fitting). まれである (is rare) uses the formal copula. A measured academic observation.