Quantum Thermodynamics Toy Models
This notebook guide specifies a reproducible finite-dimensional calculation for quantum thermodynamics toy models. The baseline notebook should build the two-point measurement work distribution for a driven two-level system, compute exact branch probabilities, sample synthetic experimental records, and verify a simple quantum Jarzynski equality and Crooks relation numerically.
As of this review, no executable notebook under notebooks/density-open-systems/quantum-thermodynamics-toy-models/ is promoted as a reproduced artifact. This page is the admission contract for that notebook: it states the model, work convention, fluctuation-relation checks, Monte Carlo diagnostics, and accepted outputs required before thermodynamic numerical claims should be cited.
Purpose
Section titled “Purpose”The notebook should demonstrate how to:
- construct thermal populations for a finite two-level Hamiltonian;
- implement the Two-Point Measurement Scheme;
- compute a discrete Work Distribution from branch probabilities;
- drive the system with a simple unitary transition matrix;
- verify normalization, positivity, and detailed branch bookkeeping;
- compute and compare it with ;
- verify a Crooks branch-ratio check for the matching reverse protocol;
- compare exact sums with finite-sample Monte Carlo estimates;
- record conventions clearly enough that signs of work and free energy are not ambiguous.
The first version should be a closed-system TPM notebook. Lindblad heat exchange, quantum-jump thermodynamics, feedback, and continuously monitored work definitions should be added only after the closed finite-dimensional baseline is reproducible.
Directory Plan
Section titled “Directory Plan”Use a dedicated directory:
notebooks/density-open-systems/quantum-thermodynamics-toy-models/ quantum-thermodynamics-toy-models.ipynb README.mdThe opening notebook cell or README.md should state:
- Python and package versions;
- basis ordering;
- energy convention and units;
- inverse temperature ;
- forward and reverse Hamiltonians;
- transition-unitary convention;
- sign convention for work;
- number of Monte Carlo samples and random seed;
- numerical tolerances for fluctuation-relation residuals;
- date and commit identifier when the notebook is promoted.
Baseline Two-Level Hamiltonians
Section titled “Baseline Two-Level Hamiltonians”Use two Hamiltonians with the same energy basis:
The ground energy is set to zero in both Hamiltonians. This convention is simple but not mandatory; if another zero of energy is used, the notebook should show that the work differences are unchanged by a common energy shift applied consistently.
The partition functions are
The initial Gibbs probabilities for the forward process are
The equilibrium free-energy difference is encoded by
for . The notebook should use the partition-function ratio directly when testing the Jarzynski equality, especially if it includes high-temperature limits.
Drive Model
Section titled “Drive Model”Use a unitary drive that produces transition probability between the two energy states:
A concrete implementation is the rotation
The transition matrix is doubly stochastic:
The second condition is the unitarity ingredient needed in the closed-system Jarzynski proof. The notebook should check both sums numerically rather than assuming that a matrix of numbers called probabilities is physically valid.
Forward TPM Work Distribution
Section titled “Forward TPM Work Distribution”Use the work sign convention from Energy, Heat, and Work:
where is the first measured energy outcome and is the final measured energy outcome. The four forward branches are:
| Branch | Probability | Work |
|---|---|---|
Thus
The exact mean work is
The notebook should compute the distribution from arrays of branch data, not from hard-coded symbolic formulas only. The symbolic formulas are validation targets.
Jarzynski Check
Section titled “Jarzynski Check”For the exact branch table,
The notebook should compare this number with
Report the residual
For the exact finite table, should be near floating-point roundoff. If the residual is large, common causes are:
- the transition matrix is not doubly stochastic;
- the sign of work is reversed;
- and are swapped;
- thermal probabilities were assigned to the wrong Hamiltonian;
- the notebook sampled records but compared one noisy Monte Carlo estimate as though it were exact.
Reverse Protocol and Crooks Check
Section titled “Reverse Protocol and Crooks Check”The reverse protocol starts in the thermal state of and drives back to with the reverse unitary. For this toy model, use the same transition probability for matched reverse branches:
The reverse branch probability is
and the reverse work is
For each branch with nonzero matched transition probability,
The distribution-level Crooks relation is
when the work value identifies matching probability weight. If different branches share the same work value, the notebook should aggregate probabilities at equal work before forming the distribution ratio.
Report a branch-ratio residual such as
over branches whose forward and reverse probabilities are both nonzero.
Monte Carlo Records
Section titled “Monte Carlo Records”After the exact branch table works, sample synthetic TPM records:
- draw the initial energy from the Gibbs probabilities for ;
- draw the final energy from ;
- store , , , and the branch label;
- estimate the empirical distribution of ;
- estimate and with standard errors.
For independent records, the sample mean
has standard error estimated by
where is the sample standard deviation of the values .
The notebook should compare the Monte Carlo estimate with the exact sum. It should not declare the fluctuation relation failed merely because rare work values are undersampled. Exponential averages are often dominated by rare branches, especially at large .
Suggested Parameter Sweep
Section titled “Suggested Parameter Sweep”Use dimensionless parameters such as
For each point, save:
- , , and ;
- the branch-probability table;
- exact ;
- exact ;
- and ;
- Monte Carlo estimates and standard errors for selected sample sizes.
The sweep should include both gentle and strongly nonequilibrium cases. For , the state follows the same energy label. For , the population branches swap. Intermediate gives a simple model of nonadiabatic transitions.
Validation Tests
Section titled “Validation Tests”The promoted notebook should pass these checks.
Probability normalization
Section titled “Probability normalization”Verify
within numerical tolerance. Do the same for the reverse process.
Transition-matrix unitarity
Section titled “Transition-matrix unitarity”Check both column and row sums:
Column sums alone make conditional probabilities valid. Row sums are what make the transition matrix compatible with a closed finite-dimensional unitary in this simple nondegenerate setting.
Work-distribution aggregation
Section titled “Work-distribution aggregation”If two branches produce the same work value, aggregate their probabilities before plotting a histogram or comparing and . Floating-point work values should be grouped by a declared tolerance.
Jarzynski residual
Section titled “Jarzynski residual”The exact table should satisfy
in ordinary double precision for moderate parameter values. A larger residual can be acceptable only if the notebook explains the numerical source, such as intentionally low precision.
Sampling convergence
Section titled “Sampling convergence”For Monte Carlo estimates, show convergence with sample size. The exact result should fall within a few estimated standard errors once is large enough for the chosen parameters.
Sign-convention reversal
Section titled “Sign-convention reversal”As a deliberate negative test, compute the Jarzynski residual with replaced by . The result should generally fail unless the protocol is specially symmetric. This test catches accidental sign conventions.
Interpreting the Toy Model
Section titled “Interpreting the Toy Model”This notebook is intentionally small. Its value is not that a driven two-level system exhausts quantum thermodynamics, but that every branch, probability, work value, and fluctuation-relation residual can be inspected directly.
Several limitations should be stated clearly:
- the baseline model is closed during the drive, so there is work but no heat exchange with a bath during the protocol;
- the initial Gibbs state is an assumption, not the result of simulated thermalization;
- projective energy measurements are part of the TPM definition and can disturb coherent initial states;
- the Jarzynski equality checks the whole distribution, not just the mean work;
- Monte Carlo failure at small sample size is not a physical violation;
- adding a Lindblad bath requires a trajectory-level heat and entropy convention, not just the same closed-system formula.
For open trajectory formulations, use Quantum-Jump Trajectories and Fluctuation Theorems as the conceptual entry points. The present notebook should first make the closed TPM bookkeeping airtight.
Accepted Outputs
Section titled “Accepted Outputs”A promoted version should save:
- a branch table for each parameter point;
- an exact work-distribution table with aggregated work values;
- a plot of for selected parameters;
- exact Jarzynski and Crooks residual tables;
- Monte Carlo convergence plots for ;
- a warning or diagnostic for undersampled rare branches;
- a summary file recording all conventions and tolerances.
Accepted outputs should be regenerated from a clean run. Scratch plots and exploratory parameter scans may remain in the notebook, but they should not be cited as reproduced results.
Common Mistakes
Section titled “Common Mistakes”- Replacing the final nonequilibrium state by a final thermal state in the forward process.
- Treating work as an ordinary Hermitian observable independent of the measurement protocol.
- Forgetting that is a signed energy difference.
- Swapping and in .
- Verifying the Jarzynski equality with exact sums, then claiming that a small Monte Carlo sample should match equally well.
- Using a conditional probability matrix that is column-stochastic but not compatible with a unitary transition matrix.
- Comparing Crooks ratios before aggregating branches with the same work value.
- Adding an open-system dissipator and expecting the closed-system TPM relation to apply without additional heat and bath entropy terms.
Exercises
Section titled “Exercises”Normalization
Section titled “Normalization”Show that the four forward branch probabilities sum to one.
Solution
The branch probabilities are
Their sum is
Jarzynski Equality
Section titled “Jarzynski Equality”Using the branch table, verify
Solution
The exponential average is
Substitute
Then
Crooks Branch Ratio
Section titled “Crooks Branch Ratio”Derive
for a matched branch.
Solution
For a matched branch,
and
Microscopic reversibility in this toy model gives
Therefore
Since
the ratio is
Rare Branches
Section titled “Rare Branches”Why can converge slowly in Monte Carlo sampling even when the exact branch table is tiny?
Solution
The exponential average weights negative-work branches strongly when is large. Those branches may have small probability, so a finite sample can miss them or sample them poorly. The exact sum includes their contribution automatically, but Monte Carlo estimates need enough records to resolve the rare weighted events. This is a sampling problem, not a violation of the fluctuation relation.
Cross-Links
Section titled “Cross-Links”- Energy, Heat, and Work
- Two-Point Measurement Scheme
- Work Distributions
- Jarzynski Equality and Crooks Relation
- Fluctuation Theorems
- Entropy Production
- Quantum-Jump Trajectories
- Solving Lindblad Equations
- Formula Sheet
- Approximation Checklist
References
Section titled “References”- C. Jarzynski, “Nonequilibrium equality for free energy differences,” Physical Review Letters 78, 2690-2693 (1997).
- G. E. Crooks, “Entropy production fluctuation theorem and the nonequilibrium work relation for free energy differences,” Physical Review E 60, 2721-2726 (1999).
- H. Tasaki, “Jarzynski relations for quantum systems and some applications,” arXiv:cond-mat/0009244 (2000).
- P. Talkner, E. Lutz, and P. Hänggi, “Fluctuation theorems: Work is not an observable,” Physical Review E 75, 050102(R) (2007).
- M. Campisi, P. Hänggi, and P. Talkner, “Colloquium: Quantum fluctuation relations: Foundations and applications,” Reviews of Modern Physics 83, 771-791 (2011).
- U. Seifert, “Stochastic thermodynamics, fluctuation theorems and molecular machines,” Reports on Progress in Physics 75, 126001 (2012).