mqt.qmap.ph

MQT QMAP photonics subcircuit compiler.

Compiles a target unitary onto a physical MZI-mesh chip by finding the optimal photon routing and optimizing phase-shifter parameters via gradient descent.

Typical usage:

from mqt.qmap.ph.subcircuit_compilation import OptimizationConfig, compile_subcircuit

Optional dependencies: the photonics extra installs torch. Install it via pip install mqt.qmap[photonics]. The Perceval-based paper evaluation lives under eval/ph and is not part of the installed package.

Submodules