usnistgov/mqns ? reverse-engineered prompt

Reverse engineered prompt

Build me a Python quantum network simulator for comparing how entanglement gets routed across a network.

I want it to let me set up a few nodes, define links with different success rates and delays, then run simulations for things like single path routing and multiple path routing. It should support entanglement generation, swapping, and basic purification, plus track qubit memory use and when qubits get reserved, entangled, or released. I also want a few different forwarding styles, like doing swaps in sequence, in a balanced tree, or as soon as possible.

Please include a simple example with a three node line network that shows how memory coherence affects throughput, and make it save or print results so I can plot them. Keep the code easy to extend because this is for research and I may want to try new routing or memory policies later. Look up current docs online if you need to.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab