From Betti Numbers to Persistence Diagrams: A Hybrid Quantum Algorithm for Topological Data Analysis