Quantum geometry of dirac fermions