-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add Wigner plotting via CairoMakie * CairoMakie default lib * docs * formatting * Fix typo * Add error handling for unavailable plotting libraries in plot_wigner function * Docs * Update CairoMakie dependency and add CairoMakie extension tests * Update documentation to reflect changes in Wigner function plotting and computation * formatting * Update changelog * Improve docs * Update CairoMakie imports and change axis labels * fix CHANGELOG * setup CI pipeline config for `CairoMakie` extension * rebase accidently removed lines * fix typo * add `CairoMakie` extension doc page * fix typo * minor change in docs * minor change in docs --------- Co-authored-by: Lorenzo Fioroni <[email protected]> Co-authored-by: Alberto Mercurio <[email protected]>
- Loading branch information
1 parent
e754148
commit 38a473c
Showing
12 changed files
with
385 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# [Extension for CairoMakie.jl](@id doc:CairoMakie) | ||
|
||
This is an extension to support visualization (plotting functions) using [`CairoMakie.jl`](https://github.com/MakieOrg/Makie.jl/tree/master/CairoMakie) library. | ||
|
||
This extension will be automatically loaded if user imports both `QuantumToolbox.jl` and [`CairoMakie.jl`](https://github.com/MakieOrg/Makie.jl/tree/master/CairoMakie): | ||
|
||
```julia | ||
using QuantumToolbox | ||
using CairoMakie | ||
``` | ||
|
||
To plot with [`CairoMakie.jl`](https://github.com/MakieOrg/Makie.jl/tree/master/CairoMakie) library, specify the keyword argument `library = Val(:CairoMakie)` for the plotting functions. | ||
|
||
!!! warning "Beware of type-stability!" | ||
If you want to keep type stability, it is recommended to use `Val(:CairoMakie)` instead of `:CairoMakie`. See [this link](https://docs.julialang.org/en/v1/manual/performance-tips/#man-performance-value-type) and the [related Section](@ref doc:Type-Stability) about type stability for more details. | ||
|
||
The supported plotting functions are listed as follows: | ||
|
||
| **Plotting Function** | **Description** | | ||
|:----------------------|:----------------| | ||
| [`plot_wigner`](@ref) | [Wigner quasipropability distribution](https://en.wikipedia.org/wiki/Wigner_quasiprobability_distribution) | |
Oops, something went wrong.