Efficient simulation of large-scale quantum algorithms is pivotal yet challenging due to the exponential growth of the state space inherent
Efficient simulation of large-scale quantum algorithms is pivotal yet challenging due to the exponential growth of the state space inherent in both Sch\"odinger-based and Feynman-based methods. While Feynman-based simulators can be highly efficient when the quantum state is sparse, these simulators often do not fully support the simulation of large-scale, complex quantum algorithms which rely on QRAM and other oracle-based operations. In this work, we present SparQSim, a quantum simulator implemented in C++ and inspired by the Feynman-based method. SparQSim operates at the register level by storing only the nonzero components of the quantum state, enabling flexible and resource-efficient simulation of basic quantum operations and integrated QRAM for advanced applications such as quantum linear system solvers. In particular, numerical experiments on benchmarks from QASMBench and MQTBench demonstrate that SparQSim outperforms conventional Schr\"odinger-based simulators in both execution time and memory usage for circuits with high sparsity. Moreover, full-process simulations of quantum linear system solvers based on a discrete adiabatic method yield results that are consistent with theoretical predictions. This work establishes SparQSim as a promising platform for the efficient simulation of scalable quantum algorithms. Comment: Revised version (title updated to avoid acronym conflict with a previously submitted paper: arXiv:2408.02631). The original acronym "SparQ" conflicted with one previously submitted by Prof. Leonardo Guidoni et al. We thank Prof. Guidoni for the kind reminder and have adopted the new term "SparQSim" to avoid confusion. The content remains otherwise unchanged