  Recent advances in quantum information science enabled the development of
quantum communication network prototypes and created an opportunity to study
full-stack quantum network architectures. This work develops SeQUeNCe, a
comprehensive, customizable quantum network simulator. Our simulator consists
of five modules: Hardware models, Entanglement Management protocols, Resource
Management, Network Management, and Application. This framework is suitable for
simulation of quantum network prototypes that capture the breadth of current
and future hardware technologies and protocols. We implement a comprehensive
suite of network protocols and demonstrate the use of SeQUeNCe by simulating a
photonic quantum network with nine routers equipped with quantum memories. The
simulation capabilities are illustrated in three use cases. We show the
dependence of quantum network throughput on several key hardware parameters and
study the impact of classical control message latency. We also investigate
quantum memory usage efficiency in routers and demonstrate that redistributing
memory according to anticipated load increases network capacity by 69.1% and
throughput by 6.8%. We design SeQUeNCe to enable comparisons of alternative
quantum network technologies, experiment planning, and validation and to aid
with new protocol design. We are releasing SeQUeNCe as an open source tool and
aim to generate community interest in extending it.
