MATLAB scripts to calculate and plot Wigner quasiprobability and Q-Husimi distributions for any quantum state in Coherent or Fock basis.
https://github.com/Filippos-Dakis/Wigner-Function-Quantum-Optics
You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
- CoherentBasis.m
- FockBasis.m
- CoherentBasis_Example_1.m
- FockBasis_Example_1.m
- Q_function_CoherentBasis_Example.m
- Q_function_FockBasis_Example.m
- Example_Squeezed_states.m
- density matrix
- quantum Zeno gate for Cat-qubits
- switch between the two bases (connect the two classes somehow)
- Exploring the Quantum Atoms, Cavities and Photons. Serge Haroche Jean-Michel Raimond
- Introductory Quantum Optics. Christopher Gerry Peter Knight
Cite As
Filippos Dakis (2026). Wigner Function in Quantum Optics (https://www.mathworks.com/matlabcentral/fileexchange/155617-wigner-function-in-quantum-optics), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.2.4.1 (3 MB)
MATLAB Release Compatibility
- Compatible with R2022b to R2024a
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.2.4.1 | Found and corrected a mistake in the Squeeze operator |
||
| 1.2.4.0 | Found and corrected a mistake in the Squeeze operator |
||
| 1.2.3.0 | Reorganized the folders, added some features in the classes and extended the examples. |
||
| 1.2.2.1 | Tested the scripts in MATLAB 2022b and they run smoothly. |
||
| 1.2.2 | - Annihilation and Creation operators were added as methods in the two classes, along with applications in the respective examples.
|
||
| 1.2.1 | Calculation of Q-Husimi function was added in the two classes. |
||
| 1.2 | -FockBasis.m : I have changed the way I compute the Displacement operator in the Fock basis. The Displacment matrix is calculated much faster.
|
||
| 1.1 | I have added more comments in the scripts and fixed a small bug in FockBasis.m |
||
| 1.0.0 | See release notes for this release on GitHub: https://github.com/Filippos-Dakis/Wigner-Function-Quantum-Optics/releases/tag/v1.0.0
|
