Closed a-corni closed 6 months ago
Check out this pull request on
See visual diffs & provide feedback on Jupyter Notebooks.
Powered by ReviewNB
* [ ] Rename variables refering to probabilities to rates. Could we keep probabilities and define the rate as gamma = proba / (duration of the sequence) @dehond ?
I'd suggest that ideally everything is relabeled as a rate so that nothing depends on the sequence length. If the decay rate of some excited state is 0.1/μs, the probability of decay during 1 μs is (approximately) 0.1, but how do we define the probability of decay during a 10 μs sequence, or longer?
If you'd like to turn it around we face similar issues: we know that the probability of decay during a 10 μs sequence is $1-e^{-1} = 0.63$, but it's not accurate to say that this means that the probability of decay during a 1 μs sequence is $0.63/10 = 0.063$.
* [ ] Rename variables refering to probabilities to rates. Could we keep probabilities and define the rate as gamma = proba / (duration of the sequence) @dehond ?
I'd suggest that ideally everything is relabeled as a rate so that nothing depends on the sequence length. If the decay rate of some excited state is 0.1/μs, the probability of decay during 1 μs is (approximately) 0.1, but how do we define the probability of decay during a 10 μs sequence, or longer?
If you'd like to turn it around we face similar issues: we know that the probability of decay during a 10 μs sequence is 1−e−1=0.63, but it's not accurate to say that this means that the probability of decay during a 1 μs sequence is 0.63/10=0.063.
Thanks Julius, I was also puzzled by these issues. I will implement the replacement of variables with _proba
into _rate
. I will put a DeprecationWarning
signaling their deprecation.
I think the notebook needs to be executed again
It should be good now :)
View / edit / reply to this conversation on ReviewNB
HGSilveri commented on 2023-12-14T10:57:44Z ----------------------------------------------------------------
The list does not seem to be rendering correctly on RTD
View / edit / reply to this conversation on ReviewNB
HGSilveri commented on 2023-12-14T10:57:45Z ----------------------------------------------------------------
I can see you cleared the outputs. Isn't this notebook taking a bit too long to run for it to be rerun on every docs build?
a-corni commented on 2023-12-15T10:57:01Z ----------------------------------------------------------------
It takes 28sec to run the whole notebook, that's eventually a bit too long indeed
It takes 28sec to run the whole notebook, that's eventually a bit too long indeed
View entire conversation on ReviewNB
@dehond Do you have any suggestion about the notebook ? You can preview it here😄
@dehond Do you have any suggestion about the notebook ? You can preview it here😄
On first sight it looks pretty good to me. Unfortunately I don't have time to review the code now and use it a bit myself. I can do it after Christmas if you'd like, but I can imagine you don't want to wait with the merge until then.
One question that comes up: is it possible to set $\gamma > 1$ now? I don't think this was possible before since it was interpreted as a probability. If it's a rate this limitation shouldn't exist, and it may be interesting to show it as an example case in one of the plots in the notebook.
@dehond Do you have any suggestion about the notebook ? You can preview it here😄
On first sight it looks pretty good to me. Unfortunately I don't have time to review the code now and use it a bit myself. I can do it after Christmas if you'd like, but I can imagine you don't want to wait with the merge until then.
One question that comes up: is it possible to set γ>1 now? I don't think this was possible before since it was interpreted as a probability. If it's a rate this limitation shouldn't exist, and it may be interesting to show it as an example case in one of the plots in the notebook.
Hey Julius, it's now possible to define $\gamma>1
$ ! I have just updated the rates in the notebook (+ shorten a bit the duration of the sequence, change the color of the theoretical curve and fixed a typo) such that the notebook shows the outcome for the rates 0, 0.5, 1.0 and 1.5.
Other than that, I think it's okay to merge the PR now, we can always improve it after Christmas :)
Given that qutip.mesolve uses collapse operators and not kraus operators, I propose to delete the trace of kraus operators in our code and documentation.
kraus_ops
tolocal_collapse_ops
inset_config
.L_i = p/4 \sigma_i
$ in depolarizing noise.Closes #608