Resumen: In this paper, we analyze the circuit complexity for preparing ground states of quantum many-body systems. In particular, how this complexity grows as the ground state approaches a quantum phase transition. We discuss different definitions of complexity, namely the one following the Fubini-Study metric or the Nielsen complexity. We also explore different models: Ising, ZZXZ or Dicke. In addition, different forms of state preparation are investigated: analytic or exact diagonalization techniques, adiabatic algorithms (with and without shortcuts), and Quantum Variational Eigensolvers. We find that the divergence (or lack thereof) of the complexity near a phase transition depends on the non-local character of the operations used to reach the ground state. For Fubini-Study based complexity, we extract the universal properties and their critical exponents. In practical algorithms, we find that the complexity depends crucially on whether or not the system passes close to a quantum critical point when preparing the state. For both VQE and Adiabatic algorithms, we provide explicit expressions and bound the growth of complexity with respect to the system size and the execution time, respectively. Idioma: Inglés DOI: 10.21468/SciPostPhys.15.5.186 Año: 2023 Publicado en: SciPost physics 15, 5 (2023), [30 pp.] ISSN: 2542-4653 Factor impacto JCR: 4.6 (2023) Categ. JCR: PHYSICS, MULTIDISCIPLINARY rank: 21 / 112 = 0.188 (2023) - Q1 - T1 Factor impacto CITESCORE: 8.2 - Physics and Astronomy (all) (Q1)