Skip to content

QuantumToolbox Settings

In this section, we introduce the default global settings used throughout the package and show how to modify them.

All settings are stored in QuantumToolbox.settings.

Differences from QuTiP

Due to the differences in programming languages, solving algorithms, and many other reasons, these global settings (including their default values and usage) may be very different from those in Python QuTiP.

List of settings

Here, we list out each setting along with the specific functions that will use it.

  • tidyup_tol::Float64 = 1e-14 : tolerance for tidyup and tidyup!.

  • auto_tidyup::Bool = true : Automatically tidyup during the following situations:

  • (to be announced)

Change default settings

First, we can check the current QuantumToolbox.settings:

julia
using QuantumToolbox

QuantumToolbox.settings
QuantumToolbox.jl Settings
--------------------------
tidyup_tol = 1.0e-14
auto_tidyup = true

Next, one can overwrite the default settings by

julia
QuantumToolbox.settings.tidyup_tol = 1e-10
QuantumToolbox.settings.auto_tidyup = false

QuantumToolbox.settings
QuantumToolbox.jl Settings
--------------------------
tidyup_tol = 1.0e-10
auto_tidyup = false