MrMustard Documentation¶
- Release:
1.0.0a1
MrMustard: Your Universal Differentiable Toolkit for Quantum Optics
Features¶
🔄 Universal Representation Compatibility
Initialize any component from any representation:
Ket.from_quadrature(...),Channel.from_bargmann(...)
Convert between representations seamlessly:
my_component.to_fock(...),my_component.to_quadrature(...)
Supported representations: Bargmann, Phase space, Characteristic functions, Quadrature, Fock
⚡ Fast & Exact
State-of-the-art algorithms for Fock amplitudes of Gaussian components
Exact computation up to arbitrary cutoff
Batch processing support
🎯 Built-in Optimization
Differentiable with respect to all parameters
Riemannian optimization on symplectic/unitary/orthogonal groups
Cost functions can mix different representations
🧩 Flexible Circuit Construction
Contract components in any order
Linear superpositions of compatible objects
Plug-and-play backends (
numpy,jax)