WaveguideQED.jl: An Efficient Framework for Simulating Non-Markovian Waveguide Quantum Electrodynamics

Matias Bundgaard-Nielsen1,2, Dirk Englund3, Mikkel Heuck1,2, and Stefan Krastanov4

1Department of Electrical and Photonics Engineering, Technical University of Denmark, Building 343, Lyngby, Denmark
2NanoPhoton-Center for Nanophotonics, Technical University of Denmark, Building 343, Lyngby, Denmark
3Department of Electrical Engineering and Computer Science, Massachusetts Institute of Technology, Cambridge, MA 02139, USA
4Manning College of Information and Computer Sciences, University of Massachusetts Amherst, 140 Governors Drive Amherst, Massachusetts 01003, USA

Find this paper interesting or want to discuss? Scite or leave a comment on SciRate.

Abstract

In this paper, we introduce a numerical framework designed to solve problems within the emerging field of Waveguide Quantum Electrodynamics (WQED). The framework is based on collision quantum optics, where a localized quantum system interacts sequentially with individual time-bin modes. This approach provides a physically intuitive model that allows researchers familiar with tools such as QuTiP in Python, Quantum Optics Toolbox for Matlab, or
in Julia to efficiently set up and execute WQED simulations. Despite its conceptual simplicity, we demonstrate the framework's robust ability to handle complex WQED scenarios. These applications include the scattering of single- or two-photon pulses by quantum emitters or cavities, as well as the exploration of non-Markovian dynamics, where emitted photons are reflected back, thereby introducing feedback mechanisms.

Waveguide Quantum Electrodynamics (WQED) is the study of traveling few-photon quantum states interacting with localized quantum systems—like atoms, quantum dots, or superconducting qubits.

Modeling WQED accurately requires keeping track of the full quantum state of the traveling light field, including its temporal structure. Standard tools often treat photons as inputs and outputs without describing their full quantum state, and most methods struggle to handle non-Markovian effects—where emitted photons loop back and influence the system later in time. Simulating such memory effects usually involves significant complexity or computational cost.

WaveguideQED.jl is a new open-source Julia package that offers an efficient, user-friendly framework for simulating WQED. It uses the collision model of quantum optics, where photons are represented as time-bins that sequentially interact with a quantum system. This gives a clear, intuitive picture of light-matter interactions and naturally accommodates feedback and entanglement effects.

A key ingredient in WaveguideQED.jl’s efficiency is its matrix-free implementation of time-dependent operators. Instead of constructing large sparse matrices for each interaction with a time-bin, the framework uses LazyOperators—a feature from QuantumOptics.jl that applies operator actions as efficient kernel functions. This design greatly reduces memory use and computation time, making simulations with fine time resolution feasible and fast.

► BibTeX data

► References

[1] Jeffrey H. Shapiro. ``Single-photon Kerr nonlinearities do not help quantum computation''. Physical Review A 73, 062305 (2006).
https:/​/​doi.org/​10.1103/​PhysRevA.73.062305

[2] Mikkel Heuck, Kurt Jacobs, and Dirk R. Englund. ``Controlled-Phase Gate Using Dynamically Coupled Cavities and Optical Nonlinearities''. Physical Review Letters 124 (2020).
https:/​/​doi.org/​10.1103/​PhysRevLett.124.160501

[3] Alexandra S. Sheremet, Mihail I. Petrov, Ivan V. Iorsh, Alexander V. Poshakinskiy, and Alexander N. Poddubny. ``Waveguide quantum electrodynamics: Collective radiance and photon-photon correlations''. Reviews of Modern Physics 95, 015002 (2023).
https:/​/​doi.org/​10.1103/​RevModPhys.95.015002

[4] Peter Lodahl, Sahand Mahmoodian, and Søren Stobbe. ``Interfacing single photons and single quantum dots with photonic nanostructures''. Rev. Mod. Phys. 87, 347–400 (2015).
https:/​/​doi.org/​10.1103/​RevModPhys.87.347

[5] Darrick E. Chang, Vladan Vuletić, and Mikhail D. Lukin. ``Quantum nonlinear optics - Photon by photon''. Nature Photonics 8, 685–694 (2014).
https:/​/​doi.org/​10.1038/​nphoton.2014.192

[6] Hanna Le Jeannic, Alexey Tiranov, Jacques Carolan, Tomás Ramos, Ying Wang, Martin Hayhurst Appel, Sven Scholz, Andreas D. Wieck, Arne Ludwig, Nir Rotenberg, Leonardo Midolo, Juan José García-Ripoll, Anders S. Sørensen, and Peter Lodahl. ``Dynamical photon-photon interaction mediated by a quantum emitter''. Nature Physics 18, 1191–1195 (2022).
https:/​/​doi.org/​10.1038/​s41567-022-01720-x

[7] Joel Grebel, Haoxiong Yan, Ming Han Chou, Gustav Andersson, Christopher R. Conner, Yash J. Joshi, Jacob M. Miller, Rhys G. Povey, Hong Qiao, Xuntao Wu, and Andrew N. Cleland. ``Bidirectional Multiphoton Communication between Remote Superconducting Nodes''. Physical Review Letters 132 (2024).
https:/​/​doi.org/​10.1103/​PhysRevLett.132.047001

[8] Amir H. Safavi-Naeini and Oskar Painter. ``Proposal for an optomechanical traveling wave phonon-photon translator''. New Journal of Physics 13 (2011).
https:/​/​doi.org/​10.1088/​1367-2630/​13/​1/​013017

[9] E. T. Jaynes and F. W. Cummings. ``Comparison of Quantum and Semiclassical Radiation Theories with Application to the Beam Maser''. Proceedings of the IEEE 51, 89–109 (1963).
https:/​/​doi.org/​10.1109/​PROC.1963.1664

[10] Alexander Holm Kiilerich and Klaus Mølmer. ``Input-Output Theory with Quantum Pulses''. Physical Review Letters 123, 123604 (2019).
https:/​/​doi.org/​10.1103/​PhysRevLett.123.123604

[11] Alexander Holm Kiilerich and Klaus Mølmer. ``Quantum interactions with pulses of radiation''. Physical Review A 102, 1–14 (2020).
https:/​/​doi.org/​10.1103/​PhysRevA.102.023717

[12] Hannes Pichler and Peter Zoller. ``Photonic Circuits with Time Delays and Quantum Feedback''. Physical Review Letters 116 (2016).
https:/​/​doi.org/​10.1103/​PhysRevLett.116.093601

[13] P-O Guimond, M Pletyukhov, H Pichler, and P Zoller. ``Delayed coherent quantum feedback from a scattering theory and a matrix product state perspective''. Quantum Science and Technology 2, 044012 (2017).
https:/​/​doi.org/​10.1088/​2058-9565/​aa7f03

[14] Sofia Arranz Regidor, Gavin Crowder, Howard Carmichael, and Stephen Hughes. ``Modeling quantum light-matter interactions in waveguide QED with retardation, nonlinear interactions, and a time-delayed feedback: Matrix product states versus a space-discretized waveguide model''. Physical Review Research 3, 023030 (2021).
https:/​/​doi.org/​10.1103/​PhysRevResearch.3.023030

[15] Ben Q. Baragiola, Robert L. Cook, Agata M. Branczyk, and Joshua Combes. ``N-Photon wave packets interacting with an arbitrary quantum system''. Physical Review A 86, 013811 (2012).
https:/​/​doi.org/​10.1103/​PhysRevA.86.013811

[16] Ben Q. Baragiola and Joshua Combes. ``Quantum trajectories for propagating Fock states''. Physical Review A 96 (2017).
https:/​/​doi.org/​10.1103/​PhysRevA.96.023819

[17] Kevin A. Fischer, Rahul Trivedi, Vinay Ramasesh, Irfan Siddiqi, and Jelena Vučković. ``Scattering into one-dimensional waveguides from a coherently-driven quantum-optical system''. Quantum 2, 69 (2018).
https:/​/​doi.org/​10.22331/​q-2018-05-28-69

[18] Mikhail Pletyukhov and Vladimir Gritsev. ``Quantum theory of light scattering in a one-dimensional channel: Interaction effect on photon statistics and entanglement entropy''. Physical Review A 91, 063841 (2015).
https:/​/​doi.org/​10.1103/​PhysRevA.91.063841

[19] R. Fuchs and M. Richter. ``Hierarchical equations of motion analog for systems with delay: Application to intercavity photon propagation''. Physical Review B 107, 205301 (2023).
https:/​/​doi.org/​10.1103/​PhysRevB.107.205301

[20] P. Liang, N. Lambert, S. Luo, L. Guo, and M. Cirio. ``A purified input-output pseudomode model for structured open quantum systems''. arXiv:2412.04264 (2024).
arXiv:2412.04264

[21] M. Cirio, P. Liang, and N. Lambert. ``Input-Output Hierarchical Equations Of Motion''. arXiv:2408.12221 (2025).
arXiv:2408.12221

[22] Hannes Pichler, Soonwon Choi, Peter Zoller, and Mikhail D. Lukin. ``Universal photonic quantum computation via time-delayed feedback''. Proceedings of the National Academy of Sciences of the United States of America 114, 11362–11367 (2017).
https:/​/​doi.org/​10.1073/​pnas.1711003114

[23] Hanna Le Jeannic, Tomás Ramos, Signe F. Simonsen, Tommaso Pregnolato, Zhe Liu, Rüdiger Schott, Andreas D. Wieck, Arne Ludwig, Nir Rotenberg, Juan José García-Ripoll, and Peter Lodahl. ``Experimental Reconstruction of the Few-Photon Nonlinear Scattering Matrix from a Single Quantum Dot in a Nanophotonic Waveguide''. Physical Review Letters 126, 023603 (2021).
https:/​/​doi.org/​10.1103/​PhysRevLett.126.023603

[24] Shanshan Xu and Shanhui Fan. ``Fano interference in two-photon transport''. Physical Review A 94 (2016).
https:/​/​doi.org/​10.1103/​PhysRevA.94.043826

[25] Kristoffer B. Joanesarson, Jake Iles-Smith, Mikkel Heuck, and Jesper Mørk. ``Few-photon transport in Fano-resonance waveguide geometries''. Physical Review A 101 (2020).
https:/​/​doi.org/​10.1103/​PhysRevA.101.063809

[26] S J Whalen, A L Grimsmo, and H J Carmichael. ``Open quantum systems with delayed coherent feedback''. Quantum Science and Technology 2, 044008 (2017).
https:/​/​doi.org/​10.1088/​2058-9565/​aa8331

[27] Kisa Barkemeyer, Andreas Knorr, and Alexander Carmele. ``Strongly entangled system-reservoir dynamics with multiphoton pulses beyond the two-excitation limit: Exciting the atom-photon bound state''. Physical Review A 103 (2021).
https:/​/​doi.org/​10.1103/​PhysRevA.103.033704

[28] Tao Shi, Darrick E. Chang, and J. Ignacio Cirac. ``Multiphoton-scattering theory and generalized master equations''. Physical Review A 92, 053834 (2015).
https:/​/​doi.org/​10.1103/​PhysRevA.92.053834

[29] Tommaso Caneva, Marco T Manzoni, Tao Shi, James S Douglas, J Ignacio Cirac, and Darrick E Chang. ``Quantum dynamics of propagating photons with strong interactions: a generalized input–output formalism''. New Journal of Physics 17, 113001 (2015).
https:/​/​doi.org/​10.1088/​1367-2630/​17/​11/​113001

[30] Rahul Trivedi, Kevin Fischer, Shanshan Xu, Shanhui Fan, and Jelena Vuckovic. ``Few-photon scattering and emission from low-dimensional quantum systems''. Physical Review B 98 (2018).
https:/​/​doi.org/​10.1103/​PhysRevB.98.144112

[31] Kevin A. Fischer, Rahul Trivedi, and Daniil Lukin. ``Particle emission from open quantum systems''. Physical Review A 98 (2018).
https:/​/​doi.org/​10.1103/​PhysRevA.98.023853

[32] Alexandre Roulet and Valerio Scarani. ``Solving the scattering of <i>N</​i> photons on a two-level atom without computation''. New Journal of Physics 18, 093035 (2016).
https:/​/​doi.org/​10.1088/​1367-2630/​18/​9/​093035

[33] Anders Nysteen, Philip Trøst Kristensen, Dara P S McCutcheon, Per Kaer, and Jesper Mørk. ``Scattering of two photons on a quantum emitter in a one-dimensional waveguide: exact dynamics and induced correlations''. New Journal of Physics 17, 023030 (2015).
https:/​/​doi.org/​10.1088/​1367-2630/​17/​2/​023030

[34] William Konyk and Julio Gea-Banacloche. ``Quantum multimode treatment of light scattering by an atom in a waveguide''. Physical Review A 93, 063807 (2016).
https:/​/​doi.org/​10.1103/​PhysRevA.93.063807

[35] Mads M. Lund, Fan Yang, and Klaus Mølmer. ``Perfect splitting of a two-photon pulse''. Physical Review A 107, 023715 (2023).
https:/​/​doi.org/​10.1103/​PhysRevA.107.023715

[36] Fan Yang, Mads M. Lund, Thomas Pohl, Peter Lodahl, and Klaus Mølmer. ``Deterministic Photon Sorting in Waveguide QED Systems''. Physical Review Letters 128, 213603 (2022).
https:/​/​doi.org/​10.1103/​PhysRevLett.128.213603

[37] Marten Richter and Stephen Hughes. ``Enhanced TEMPO Algorithm for Quantum Path Integrals with Off-Diagonal System-Bath Coupling: Applications to Photonic Quantum Networks''. Physical Review Letters 128 (2022).
https:/​/​doi.org/​10.1103/​PhysRevLett.128.167403

[38] Gavin Crowder, Howard Carmichael, and Stephen Hughes. ``Quantum trajectory theory of few-photon cavity-QED systems with a time-delayed coherent feedback''. Physical Review A 101 (2020).
https:/​/​doi.org/​10.1103/​PhysRevA.101.023807

[39] Gavin Crowder, Lora Ramunno, and Stephen Hughes. ``Quantum trajectory theory and simulations of nonlinear spectra and multiphoton effects in waveguide-QED systems with a time-delayed coherent feedback''. Physical Review A 106 (2022).
https:/​/​doi.org/​10.1103/​PhysRevA.106.013714

[40] Francesco Ciccarello. ``Collision models in quantum optics''. Quantum Measurements and Quantum Metrology 4 (2018).
https:/​/​doi.org/​10.1515/​qmetro-2017-0007

[41] Mikkel Heuck, Kurt Jacobs, and Dirk R. Englund. ``Photon-photon interactions in dynamically coupled cavities''. Physical Review A 101 (2020).
https:/​/​doi.org/​10.1103/​PhysRevA.101.042322

[42] Stefan Krastanov, Kurt Jacobs, Gerald Gilbert, Dirk R. Englund, and Mikkel Heuck. ``Controlled-phase gate by dynamic coupling of photons to a two-level emitter''. npj Quantum Information 8, 103 (2022).
https:/​/​doi.org/​10.1038/​s41534-022-00604-5

[43] J. R. Johansson, P. D. Nation, and Franco Nori. ``QuTiP: An open-source Python framework for the dynamics of open quantum systems''. Computer Physics Communications 183, 1760–1772 (2012).
https:/​/​doi.org/​10.1016/​j.cpc.2012.02.021

[44] J. R. Johansson, P. D. Nation, and Franco Nori. ``QuTiP 2: A Python framework for the dynamics of open quantum systems''. Computer Physics Communications 184, 1234–1240 (2013).
https:/​/​doi.org/​10.1016/​j.cpc.2012.11.019

[45] Sebastian Krämer, David Plankensteiner, Laurin Ostermann, and Helmut Ritsch. ``QuantumOptics.jl: A Julia framework for simulating open quantum systems''. Computer Physics Communications 227, 109–116 (2018).
https:/​/​doi.org/​10.1016/​j.cpc.2018.02.004

[46] F. Ciccarello, S. Lorenzo, V. Giovannetti, and G. M. Palma. ``Quantum collision models: Open system dynamics from repeated interactions''. Physics Reports 954, 1–70 (2022).
https:/​/​doi.org/​10.1016/​j.physrep.2022.01.001

[47] ``Documentation of WaveguideQED.jl''. https:/​/​qojulia.github.io/​WaveguideQED.jl/​dev/​.
https:/​/​qojulia.github.io/​WaveguideQED.jl/​dev/​

[48] ``Github repository of WaveguideQED.jl''. https:/​/​github.com/​qojulia/​WaveguideQED.jl.
https:/​/​github.com/​qojulia/​WaveguideQED.jl

[49] ``LazyOperators in QuantumOptics.jl''. https:/​/​docs.qojulia.org/​quantumobjects/​operators/​.
https:/​/​docs.qojulia.org/​quantumobjects/​operators/​

[50] S. J. Whalen. ``Collision model for non-Markovian quantum trajectories''. Physical Review A 100, 052113 (2019).
https:/​/​doi.org/​10.1103/​PhysRevA.100.052113

[51] N. Lambert, E. Giguère, P. Menczel, B. Li, P. Hopf, G. Suárez, M. Gali, J. Lishman, R. Gadhvi, R. Agarwal, A. Galicia, N. Shammah, P. Nation, J. R. Johansson, S. Ahmed, S. Cross, A. Pitchford, and F. Nori, ``QuTiP 5: The Quantum Toolbox in Python'', arXiv:2412.04705 (2024).
arXiv:2412.04705

[52] J. Román-Roche, E. Sánchez-Burillo, and D. Zueco, ``Bound states in ultrastrong waveguide QED'', Phys. Rev. A 102, 023702 (2020).
https:/​/​doi.org/​10.1103/​PhysRevA.102.023702

[53] D. Cilluffo, A. Carollo, S. Lorenzo, J. A. Gross, G. M. Palma, and F. Ciccarello, ``Collisional picture of quantum optics with giant emitters'', Phys. Rev. Res. 2, 043070 (2020).
https:/​/​doi.org/​10.1103/​PhysRevResearch.2.043070

Cited by

[1] Alberto Mercurio, Yi-Te Huang, Li-Xun Cai, Yueh-Nan Chen, Vincenzo Savona, and Franco Nori, "QuantumToolbox.jl: An efficient Julia framework for simulating open quantum systems", Quantum 9, 1866 (2025).

[2] Victor Rueskov Christiansen and Klaus Mølmer, "Interactions in quantum networks with pulse propagation delays", Physical Review A 113 1, 013730 (2026).

[3] Nicholas J. Martin, Dominic Hallett, Mateusz Duda, Luke Hallacy, Elena Callus, Luke Brunswick, René Dost, Edmund Clarke, Pallavi K. Patil, Pieter Kok, Maurice S. Skolnick, and Luke R. Wilson, "Purcell-enhanced, directional light–matter interaction in a waveguide-coupled nanocavity", Optica 12 7, 1100 (2025).

[4] Matias Bundgaard-Nielsen, Matthew Kozma, Sofia Arranz Regidor, and Stephen Hughes, "Decoherence in waveguide quantum electrodynamics using matrix product states", Physical Review Research 8 3, 033109 (2026).

The above citations are from Crossref's cited-by service (last updated successfully 2026-08-17 20:18:17) and SAO/NASA ADS (last updated successfully 2026-08-17 20:18:18). The list may be incomplete as not all publishers provide suitable and complete citation data.