<?xml version="1.0" encoding="UTF-8" standalone="yes"?><oembed><version><![CDATA[1.0]]></version><provider_name><![CDATA[Azimuth]]></provider_name><provider_url><![CDATA[https://johncarlosbaez.wordpress.com]]></provider_url><author_name><![CDATA[John Baez]]></author_name><author_url><![CDATA[https://johncarlosbaez.wordpress.com/author/johncarlosbaez/]]></author_url><title><![CDATA[Network Theory (Part&nbsp;6)]]></title><type><![CDATA[link]]></type><html><![CDATA[<p>Now for the fun part.   Let&#8217;s see how tricks from quantum theory can be used to describe random processes.  I&#8217;ll try to make this post self-contained.  So, even if you skipped a bunch of the previous ones, this should make sense.</p>
<p>You&#8217;ll need to know a bit of math: calculus, a tiny bit probability theory, and linear operators on vector spaces.  You don&#8217;t need to know quantum theory, though you&#8217;ll have more fun if you do.  What we&#8217;re doing here is very similar&#8230; but also strangely different&mdash;for reasons I explained <a href="http://math.ucr.edu/home/baez/networks/networks_5.html">last time</a>.</p>
<h4>Rabbits and quantum mechanics</h4>
<p>Suppose we have a population of rabbits in a cage and we&#8217;d like to describe its growth in a stochastic way, using probability theory.  Let <img src='https://s0.wp.com/latex.php?latex=%5Cpsi_n&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;psi_n' title='&#92;psi_n' class='latex' /> be the probability of having <img src='https://s0.wp.com/latex.php?latex=n&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='n' title='n' class='latex' /> rabbits.  We can borrow a trick from quantum theory, and summarize all these probabilities in a  <a href="http://en.wikipedia.org/wiki/Formal_power_series">formal power series</a> like this:</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5CPsi+%3D+%5Csum_%7Bn+%3D+0%7D%5E%5Cinfty+%5Cpsi_n+z%5En&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;Psi = &#92;sum_{n = 0}^&#92;infty &#92;psi_n z^n' title='&#92;Psi = &#92;sum_{n = 0}^&#92;infty &#92;psi_n z^n' class='latex' /></p>
<p>The variable <img src='https://s0.wp.com/latex.php?latex=z&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='z' title='z' class='latex' /> doesn&#8217;t mean anything in particular, and we don&#8217;t care if the power series converges.  See, in math &#8216;formal&#8217; means &#8220;it&#8217;s only symbols on the page, just follow the rules&#8221;.  It&#8217;s like if someone says a party is &#8216;formal&#8217;, so need to wear a white tie: you&#8217;re not supposed to ask what the tie <i>means</i>.</p>
<p>However, there&#8217;s a good reason for this trick.  We can define two operators on formal power series, called the <b>annihilation operator</b>:</p>
<p><img src='https://s0.wp.com/latex.php?latex=a+%5CPsi+%3D+%5Cfrac%7Bd%7D%7Bd+z%7D+%5CPsi&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='a &#92;Psi = &#92;frac{d}{d z} &#92;Psi' title='a &#92;Psi = &#92;frac{d}{d z} &#92;Psi' class='latex' /></p>
<p>and the <b>creation operator</b>:</p>
<p><img src='https://s0.wp.com/latex.php?latex=a%5E%5Cdagger+%5CPsi+%3D+z+%5CPsi&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='a^&#92;dagger &#92;Psi = z &#92;Psi' title='a^&#92;dagger &#92;Psi = z &#92;Psi' class='latex' /></p>
<p>They&#8217;re just differentiation and multiplication by <img src='https://s0.wp.com/latex.php?latex=z&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='z' title='z' class='latex' />, respectively.   So, for example, suppose we start out being 100% sure we have <img src='https://s0.wp.com/latex.php?latex=n&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='n' title='n' class='latex' /> rabbits for some particular number <img src='https://s0.wp.com/latex.php?latex=n&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='n' title='n' class='latex' />.  Then <img src='https://s0.wp.com/latex.php?latex=%5Cpsi_n+%3D+1&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;psi_n = 1' title='&#92;psi_n = 1' class='latex' />, while all the other probabilities are 0, so: </p>
<p><img src='https://s0.wp.com/latex.php?latex=%5CPsi+%3D+z%5En&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;Psi = z^n' title='&#92;Psi = z^n' class='latex' /></p>
<p>If we then apply the creation operator, we obtain</p>
<p><img src='https://s0.wp.com/latex.php?latex=a%5E%5Cdagger+%5CPsi+%3D+z%5E%7Bn%2B1%7D&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='a^&#92;dagger &#92;Psi = z^{n+1}' title='a^&#92;dagger &#92;Psi = z^{n+1}' class='latex' /></p>
<p>Voil&agrave;!  One more rabbit!    </p>
<div align="center">
<img border="2" src="https://i2.wp.com/math.ucr.edu/home/baez/networks/rabbit-in-hat.jpg" alt="" />
</div>
<p>The annihilation operator is more subtle.  If we start out with <img src='https://s0.wp.com/latex.php?latex=n&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='n' title='n' class='latex' /> rabbits:</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5CPsi+%3D+z%5En&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;Psi = z^n' title='&#92;Psi = z^n' class='latex' /></p>
<p>and then apply the annihilation operator, we obtain</p>
<p><img src='https://s0.wp.com/latex.php?latex=a+%5CPsi+%3D+n+z%5E%7Bn-1%7D&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='a &#92;Psi = n z^{n-1}' title='a &#92;Psi = n z^{n-1}' class='latex' /></p>
<p>What does this mean?  The <img src='https://s0.wp.com/latex.php?latex=z%5E%7Bn-1%7D&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='z^{n-1}' title='z^{n-1}' class='latex' /> means we have one fewer rabbit than before.  But what about the factor of <img src='https://s0.wp.com/latex.php?latex=n&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='n' title='n' class='latex' />?  It means there were <img src='https://s0.wp.com/latex.php?latex=n&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='n' title='n' class='latex' /> different ways we could pick a rabbit and make it disappear!   This should seem a bit mysterious, for various reasons&#8230; but we&#8217;ll see how it works soon enough.</p>
<p>The creation and annihilation operators don&#8217;t commute:</p>
<p><img src='https://s0.wp.com/latex.php?latex=%28a+a%5E%5Cdagger+-+a%5E%5Cdagger+a%29+%5CPsi+%3D+%5Cfrac%7Bd%7D%7Bd+z%7D+%28z+%5CPsi%29+-+z+%5Cfrac%7Bd%7D%7Bd+z%7D+%5CPsi+%3D+%5CPsi+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='(a a^&#92;dagger - a^&#92;dagger a) &#92;Psi = &#92;frac{d}{d z} (z &#92;Psi) - z &#92;frac{d}{d z} &#92;Psi = &#92;Psi ' title='(a a^&#92;dagger - a^&#92;dagger a) &#92;Psi = &#92;frac{d}{d z} (z &#92;Psi) - z &#92;frac{d}{d z} &#92;Psi = &#92;Psi ' class='latex' /></p>
<p>so for short we say:</p>
<p><img src='https://s0.wp.com/latex.php?latex=a+a%5E%5Cdagger+-+a%5E%5Cdagger+a+%3D+1&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='a a^&#92;dagger - a^&#92;dagger a = 1' title='a a^&#92;dagger - a^&#92;dagger a = 1' class='latex' /></p>
<p>or even shorter:</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Ba%2C+a%5E%5Cdagger%5D+%3D+1&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='[a, a^&#92;dagger] = 1' title='[a, a^&#92;dagger] = 1' class='latex' /></p>
<p>where the <a href="http://en.wikipedia.org/wiki/Commutator#Ring_theory"><b>commutator</b></a> of two operators is </p>
<p><img src='https://s0.wp.com/latex.php?latex=%5BS%2CT%5D+%3D+S+T+-+T+S+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='[S,T] = S T - T S ' title='[S,T] = S T - T S ' class='latex' /></p>
<p>The noncommutativity of operators is often claimed to be a special feature of <i>quantum</i> physics, and the <a href="http://en.wikipedia.org/wiki/Creation_and_annihilation_operators">creation and annihilation operators</a> are fundamental to understanding the <a href="http://en.wikipedia.org/wiki/Quantum_harmonic_oscillator">quantum harmonic oscillator</a>.  There, instead of rabbits, we&#8217;re studying <a href="http://en.wikipedia.org/wiki/Quantum">quanta of energy</a>, which are peculiarly abstract entities obeying rather counterintuitive laws.  So, it&#8217;s cool that the same math applies to purely classical entities, like rabbits! </p>
<p>In particular, the equation <img src='https://s0.wp.com/latex.php?latex=%5Ba%2C+a%5E%5Cdagger%5D+%3D+1&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='[a, a^&#92;dagger] = 1' title='[a, a^&#92;dagger] = 1' class='latex' /> just says that there&#8217;s one more way to put a rabbit in a cage of rabbits, and then take one out, than to take one out and then put one in.</p>
<p>But how do we actually <i>use</i> this setup?  We want to describe how the probabilities <img src='https://s0.wp.com/latex.php?latex=%5Cpsi_n&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;psi_n' title='&#92;psi_n' class='latex' /> change with time, so we write</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5CPsi%28t%29+%3D+%5Csum_%7Bn+%3D+0%7D%5E%5Cinfty+%5Cpsi_n%28t%29+z%5En&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;Psi(t) = &#92;sum_{n = 0}^&#92;infty &#92;psi_n(t) z^n' title='&#92;Psi(t) = &#92;sum_{n = 0}^&#92;infty &#92;psi_n(t) z^n' class='latex' /></p>
<p>Then, we write down an equation describing the rate of change of <img src='https://s0.wp.com/latex.php?latex=%5CPsi&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;Psi' title='&#92;Psi' class='latex' />:</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Cfrac%7Bd%7D%7Bd+t%7D+%5CPsi%28t%29+%3D+H+%5CPsi%28t%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;frac{d}{d t} &#92;Psi(t) = H &#92;Psi(t)' title='&#92;frac{d}{d t} &#92;Psi(t) = H &#92;Psi(t)' class='latex' /></p>
<p>Here <img src='https://s0.wp.com/latex.php?latex=H&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='H' title='H' class='latex' /> is an operator called the <b>Hamiltonian</b>, and the equation is called the <b>master equation</b>.  The details of the Hamiltonian depend on our problem!  But we can often write it down using creation and annihilation operators.  Let&#8217;s do some examples, and then I&#8217;ll tell you the general rule.</p>
<h4> Catching rabbits </h4>
<div align="center">
<img src="https://i0.wp.com/math.ucr.edu/home/baez/networks/0-in-1-out.png" alt="" />
</div>
<p><a href="https://johncarlosbaez.wordpress.com/2011/04/11/network-theory-part-5/">Last</a> time I told you what happens when we stand in a river and catch fish as they randomly swim past.  Let me remind you of how that works.  But today let&#8217;s use rabbits.</p>
<p>So, suppose an inexhaustible supply of rabbits are randomly roaming around a huge field, and each time a rabbit enters a certain area, we catch it and add it to our population of caged rabbits.   Suppose that on average we catch one rabbit per unit time.  Suppose the chance of catching a rabbit during any interval of time is independent of what happened before.   What is the Hamiltonian describing the probability distribution of caged rabbits, as a function of time?</p>
<p>There&#8217;s an obvious dumb guess: the creation operator!  However, we saw last time that this doesn&#8217;t work, and we saw how to fix it.  The right answer is</p>
<p><img src='https://s0.wp.com/latex.php?latex=H+%3D+a%5E%5Cdagger+-+1&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='H = a^&#92;dagger - 1' title='H = a^&#92;dagger - 1' class='latex' /></p>
<p>To see why, suppose for example that at some time <img src='https://s0.wp.com/latex.php?latex=t&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='t' title='t' class='latex' /> we have <img src='https://s0.wp.com/latex.php?latex=n&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='n' title='n' class='latex' /> rabbits, so:</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5CPsi%28t%29+%3D+z%5En&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;Psi(t) = z^n' title='&#92;Psi(t) = z^n' class='latex' /></p>
<p>Then the master equation says that at this moment,</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Cfrac%7Bd%7D%7Bd+t%7D+%5CPsi%28t%29+%3D+%28a%5E%5Cdagger+-+1%29+%5CPsi%28t%29+%3D++z%5E%7Bn%2B1%7D+-+z%5En+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;frac{d}{d t} &#92;Psi(t) = (a^&#92;dagger - 1) &#92;Psi(t) =  z^{n+1} - z^n ' title='&#92;frac{d}{d t} &#92;Psi(t) = (a^&#92;dagger - 1) &#92;Psi(t) =  z^{n+1} - z^n ' class='latex' /></p>
<p>Since <img src='https://s0.wp.com/latex.php?latex=%5CPsi+%3D+%5Csum_%7Bn+%3D+0%7D%5E%5Cinfty+%5Cpsi_n%28t%29+z%5En&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;Psi = &#92;sum_{n = 0}^&#92;infty &#92;psi_n(t) z^n' title='&#92;Psi = &#92;sum_{n = 0}^&#92;infty &#92;psi_n(t) z^n' class='latex' />, this implies that the coefficients of our formal power series are changing like this:</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Cfrac%7Bd%7D%7Bd+t%7D+%5Cpsi_%7Bn%2B1%7D%28t%29+%3D+1&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;frac{d}{d t} &#92;psi_{n+1}(t) = 1' title='&#92;frac{d}{d t} &#92;psi_{n+1}(t) = 1' class='latex' /><br />
<img src='https://s0.wp.com/latex.php?latex=%5Cfrac%7Bd%7D%7Bd+t%7D+%5Cpsi_%7Bn%7D%28t%29+%3D+-1&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;frac{d}{d t} &#92;psi_{n}(t) = -1' title='&#92;frac{d}{d t} &#92;psi_{n}(t) = -1' class='latex' /></p>
<p>while all the rest have zero derivative at this moment.  And that&#8217;s exactly right!   See, <img src='https://s0.wp.com/latex.php?latex=%5Cpsi_%7Bn%2B1%7D%28t%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;psi_{n+1}(t)' title='&#92;psi_{n+1}(t)' class='latex' /> is the probability of having one more rabbit, and this is going up at rate 1.  Meanwhile, <img src='https://s0.wp.com/latex.php?latex=%5Cpsi_n%28t%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;psi_n(t)' title='&#92;psi_n(t)' class='latex' /> is the probability of having <img src='https://s0.wp.com/latex.php?latex=n&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='n' title='n' class='latex' /> rabbits,  and this is going down at the same rate.</p>
<p><b>Puzzle 1.</b>  Show that with this Hamiltonian and any initial conditions, the master equation predicts that the expected number of rabbits grows linearly.</p>
<h4>Dying rabbits</h4>
<div align="center">
<img src="https://i0.wp.com/math.ucr.edu/home/baez/networks/1-in-0-out.png" alt="" />
</div>
<p>Don&#8217;t worry: no rabbits are actually injured in the research that Jacob Biamonte is doing here at the Centre for Quantum Technologies.   He&#8217;s keeping them well cared for in a big room on the 6th floor.   This is just a thought experiment.</p>
<p>Suppose a mean nasty guy had a population of rabbits in a cage and didn&#8217;t feed them at all.  Suppose that each rabbit has a unit probability of dying per unit time.   And as always, suppose the probability of this happening in any interval of time is independent of what happens before that time.  </p>
<p>What is the Hamiltonian?   Again there&#8217;s a dumb guess: the annihilation operator!  And again this guess is wrong, but it&#8217;s not far off.   As before, the right answer includes a &#8216;correction term&#8217;:</p>
<p><img src='https://s0.wp.com/latex.php?latex=H+%3D+a+-+N&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='H = a - N' title='H = a - N' class='latex' /></p>
<p>This time the correction term is famous in its own right.  It&#8217;s called the <a href="http://en.wikipedia.org/wiki/Particle_number_operator"><b>number operator</b></a>:</p>
<p><img src='https://s0.wp.com/latex.php?latex=N+%3D+a%5E%5Cdagger+a&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='N = a^&#92;dagger a' title='N = a^&#92;dagger a' class='latex' /></p>
<p>The reason is that if we start with <img src='https://s0.wp.com/latex.php?latex=n&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='n' title='n' class='latex' /> rabbits, and apply this operator, it amounts to multiplication by <img src='https://s0.wp.com/latex.php?latex=n&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='n' title='n' class='latex' />:</p>
<p><img src='https://s0.wp.com/latex.php?latex=N+z%5En+%3D+z+%5Cfrac%7Bd%7D%7Bd+z%7D+z%5En+%3D+n+z%5En&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='N z^n = z &#92;frac{d}{d z} z^n = n z^n' title='N z^n = z &#92;frac{d}{d z} z^n = n z^n' class='latex' /></p>
<p>Let&#8217;s see why this guess is right.    Again, suppose that at some particular time <img src='https://s0.wp.com/latex.php?latex=t&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='t' title='t' class='latex' /> we have <img src='https://s0.wp.com/latex.php?latex=n&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='n' title='n' class='latex' /> rabbits, so</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5CPsi%28t%29+%3D+z%5En&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;Psi(t) = z^n' title='&#92;Psi(t) = z^n' class='latex' /></p>
<p>Then the master equation says that at this time</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Cfrac%7Bd%7D%7Bd+t%7D+%5CPsi%28t%29+%3D+%28a+-+N%29+%5CPsi%28t%29+%3D+n+z%5E%7Bn-1%7D+-+n+z%5En&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;frac{d}{d t} &#92;Psi(t) = (a - N) &#92;Psi(t) = n z^{n-1} - n z^n' title='&#92;frac{d}{d t} &#92;Psi(t) = (a - N) &#92;Psi(t) = n z^{n-1} - n z^n' class='latex' /></p>
<p>So, our probabilities are changing like this:</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Cfrac%7Bd%7D%7Bd+t%7D+%5Cpsi_%7Bn-1%7D%28t%29+%3D+n&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;frac{d}{d t} &#92;psi_{n-1}(t) = n' title='&#92;frac{d}{d t} &#92;psi_{n-1}(t) = n' class='latex' /><br />
<img src='https://s0.wp.com/latex.php?latex=%5Cfrac%7Bd%7D%7Bd+t%7D+%5Cpsi_n%28t%29+%3D+-n&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;frac{d}{d t} &#92;psi_n(t) = -n' title='&#92;frac{d}{d t} &#92;psi_n(t) = -n' class='latex' /></p>
<p>while the rest have zero derivative.   And this is good!   We&#8217;re starting with <img src='https://s0.wp.com/latex.php?latex=n&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='n' title='n' class='latex' /> rabbits, and each has a unit probability per unit time of dying. So, the chance of having one less should be going up at rate <img src='https://s0.wp.com/latex.php?latex=n&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='n' title='n' class='latex' />.   And the chance of having the same number we started with should be going <i>down</i> at the same rate.</p>
<p><b>Puzzle 2.</b>  Show that with this Hamiltonian and any initial conditions, the master equation predicts that the expected number of rabbits decays exponentially.</p>
<h4>Breeding rabbits</h4>
<div align="center">
<img src="https://i0.wp.com/math.ucr.edu/home/baez/networks/1-in-2-out.png" alt="" />
</div>
<p>Suppose we have a strange breed of rabbits that reproduce asexually.  Suppose that each rabbit has a unit probability per unit time of having a baby rabbit, thus effectively duplicating itself.</p>
<p>As you can see from the cryptic picture above, this &#8216;duplication&#8217; process takes one rabbit as input and has two rabbits as output.  So, if you&#8217;ve been paying attention, you should be ready with a dumb guess for the Hamiltonian: <img src='https://s0.wp.com/latex.php?latex=a%5E%5Cdagger+a%5E%5Cdagger+a&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='a^&#92;dagger a^&#92;dagger a' title='a^&#92;dagger a^&#92;dagger a' class='latex' />.  This operator annihilates one rabbit and then creates two!  </p>
<p>But you should also suspect that this dumb guess will need a &#8216;correction term&#8217;.   And you&#8217;re right!  As always, the correction terms makes the probability of things staying the same <i>go down</i> at exactly the rate that the probability of things changing <i>goes up</i>.  </p>
<p>You should guess the correction term&#8230; but I&#8217;ll just tell you:</p>
<p><img src='https://s0.wp.com/latex.php?latex=H+%3D+a%5E%5Cdagger+a%5E%5Cdagger+a+-+N&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='H = a^&#92;dagger a^&#92;dagger a - N' title='H = a^&#92;dagger a^&#92;dagger a - N' class='latex' /></p>
<p>We can check this in the usual way, by seeing what it does when we have <img src='https://s0.wp.com/latex.php?latex=n&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='n' title='n' class='latex' /> rabbits:</p>
<p><img src='https://s0.wp.com/latex.php?latex=H+z%5En+%3D++z%5E2+%5Cfrac%7Bd%7D%7Bd+z%7D+z%5En+-+n+z%5En+%3D+n+z%5E%7Bn%2B1%7D+-+n+z%5En&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='H z^n =  z^2 &#92;frac{d}{d z} z^n - n z^n = n z^{n+1} - n z^n' title='H z^n =  z^2 &#92;frac{d}{d z} z^n - n z^n = n z^{n+1} - n z^n' class='latex' /></p>
<p>That&#8217;s good: since there are <img src='https://s0.wp.com/latex.php?latex=n&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='n' title='n' class='latex' /> rabbits, the rate of rabbit duplication is <img src='https://s0.wp.com/latex.php?latex=n&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='n' title='n' class='latex' />.  This is the rate at which the probability of having one more rabbit goes up&#8230; and also the rate at which the probability of having <img src='https://s0.wp.com/latex.php?latex=n&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='n' title='n' class='latex' /> rabbits goes down.</p>
<p><b>Puzzle 3.</b>  Show that with this Hamiltonian and any initial conditions, the master equation predicts that the expected number of rabbits grows exponentially.</p>
<h4> Dueling rabbits </h4>
<p>Let&#8217;s do some stranger examples, just so you can see the general pattern.</p>
<div align="center">
<img src="https://i2.wp.com/math.ucr.edu/home/baez/networks/2-in-1-out.png" alt="" />
</div>
<p>Here each pair of rabbits has a unit probability per unit time of fighting a duel with only one survivor.  You might guess the Hamiltonian <img src='https://s0.wp.com/latex.php?latex=a%5E%5Cdagger+a+a%2C+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='a^&#92;dagger a a, ' title='a^&#92;dagger a a, ' class='latex' /> but in fact:</p>
<p><img src='https://s0.wp.com/latex.php?latex=H+%3D+a%5E%5Cdagger+a+a+-+N%28N-1%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='H = a^&#92;dagger a a - N(N-1)' title='H = a^&#92;dagger a a - N(N-1)' class='latex' /></p>
<p>Let&#8217;s see why this is right!  Let&#8217;s see what it does when we have <img src='https://s0.wp.com/latex.php?latex=n&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='n' title='n' class='latex' /> rabbits:</p>
<p><img src='https://s0.wp.com/latex.php?latex=H+z%5En+%3D+z+%5Cfrac%7Bd%5E2%7D%7Bd+z%5E2%7D+z%5En+-+n%28n-1%29z%5En+%3D+n%28n-1%29+z%5E%7Bn-1%7D+-+n%28n-1%29z%5En&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='H z^n = z &#92;frac{d^2}{d z^2} z^n - n(n-1)z^n = n(n-1) z^{n-1} - n(n-1)z^n' title='H z^n = z &#92;frac{d^2}{d z^2} z^n - n(n-1)z^n = n(n-1) z^{n-1} - n(n-1)z^n' class='latex' /></p>
<p>That&#8217;s good: since there are <img src='https://s0.wp.com/latex.php?latex=n%28n-1%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='n(n-1)' title='n(n-1)' class='latex' /> ordered pairs of rabbits, the rate at which duels take place is <img src='https://s0.wp.com/latex.php?latex=n%28n-1%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='n(n-1)' title='n(n-1)' class='latex' />.   This is the rate at which the probability of having one less rabbit goes up&#8230; and also the rate at which the probability of having <img src='https://s0.wp.com/latex.php?latex=n&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='n' title='n' class='latex' /> rabbits goes down.</p>
<p>(If you prefer <i>unordered</i> pairs of rabbits, just divide the Hamiltonian by 2.  We should talk about this more, but not now.)</p>
<h4>Brawling rabbits</h4>
<div align="center">
<img src="https://i2.wp.com/math.ucr.edu/home/baez/networks/3-in-1-out.png" alt="" />
</div>
<p>Now each <i>triple</i> of rabbits has a unit probability per unit time of getting into a fight with only one survivor!  I don&#8217;t know the technical term for a three-way fight, but perhaps it counts as a small &#8216;brawl&#8217; or &#8216;melee&#8217;.  In fact the Wikipedia article for <a href="http://en.wikipedia.org/wiki/Melee">&#8216;melee&#8217;</a> shows three rabbits in suits of armor, fighting it out:</p>
<div align="center">
<img src="https://i2.wp.com/upload.wikimedia.org/wikipedia/commons/thumb/1/1d/Codex_Manesse_%28Herzog%29_von_Anhalt.jpg/220px-Codex_Manesse_%28Herzog%29_von_Anhalt.jpg" />
</div>
<p>Now the Hamiltonian is:</p>
<p><img src='https://s0.wp.com/latex.php?latex=H+%3D+a%5E%5Cdagger+a%5E3+-+N%28N-1%29%28N-2%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='H = a^&#92;dagger a^3 - N(N-1)(N-2)' title='H = a^&#92;dagger a^3 - N(N-1)(N-2)' class='latex' /></p>
<p>You can check that:</p>
<p><img src='https://s0.wp.com/latex.php?latex=H+z%5En+%3D+n%28n-1%29%28n-2%29+z%5E%7Bn-2%7D+-+n%28n-1%29%28n-2%29+z%5En&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='H z^n = n(n-1)(n-2) z^{n-2} - n(n-1)(n-2) z^n' title='H z^n = n(n-1)(n-2) z^{n-2} - n(n-1)(n-2) z^n' class='latex' /></p>
<p>and this is good, because <img src='https://s0.wp.com/latex.php?latex=n%28n-1%29%28n-2%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='n(n-1)(n-2)' title='n(n-1)(n-2)' class='latex' /> is the number of ordered triples of rabbits.  You can see how this number shows up from the math, too:</p>
<p><img src='https://s0.wp.com/latex.php?latex=a%5E3+z%5En+%3D+%5Cfrac%7Bd%5E3%7D%7Bd+z%5E3%7D+z%5En+%3D+n%28n-1%29%28n-2%29+z%5E%7Bn-3%7D&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='a^3 z^n = &#92;frac{d^3}{d z^3} z^n = n(n-1)(n-2) z^{n-3}' title='a^3 z^n = &#92;frac{d^3}{d z^3} z^n = n(n-1)(n-2) z^{n-3}' class='latex' /></p>
<h4> The general rule </h4>
<p>Suppose we have a process taking <img src='https://s0.wp.com/latex.php?latex=k&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='k' title='k' class='latex' /> rabbits as input and having <img src='https://s0.wp.com/latex.php?latex=j&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='j' title='j' class='latex' /> rabbits as output:</p>
<div align="center">
<img src="https://i2.wp.com/math.ucr.edu/home/baez/networks/k-in-j-out-labels.png" alt="" />
</div>
<p>I hope you can guess the Hamiltonian I&#8217;ll use for this:</p>
<p><img src='https://s0.wp.com/latex.php?latex=H+%3D+%7Ba%5E%7B%5Cdagger%7D%7D%5Ej+a%5Ek+-+N%28N-1%29+%5Ccdots+%28N-k%2B1%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='H = {a^{&#92;dagger}}^j a^k - N(N-1) &#92;cdots (N-k+1)' title='H = {a^{&#92;dagger}}^j a^k - N(N-1) &#92;cdots (N-k+1)' class='latex' /></p>
<p>This works because</p>
<p><img src='https://s0.wp.com/latex.php?latex=a%5Ek+z%5En+%3D+%5Cfrac%7Bd%5Ek%7D%7Bd+z%5Ek%7D+z%5En+%3D+n%28n-1%29+%5Ccdots+%28n-k%2B1%29+z%5E%7Bn-k%7D&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='a^k z^n = &#92;frac{d^k}{d z^k} z^n = n(n-1) &#92;cdots (n-k+1) z^{n-k}' title='a^k z^n = &#92;frac{d^k}{d z^k} z^n = n(n-1) &#92;cdots (n-k+1) z^{n-k}' class='latex' /></p>
<p>so that if we apply our Hamiltonian to <img src='https://s0.wp.com/latex.php?latex=n&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='n' title='n' class='latex' /> rabbits, we get</p>
<p><img src='https://s0.wp.com/latex.php?latex=H+z%5En+%3D++n%28n-1%29+%5Ccdots+%28n-k%2B1%29+%28z%5E%7Bn%2Bj-k%7D+-+z%5En%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='H z^n =  n(n-1) &#92;cdots (n-k+1) (z^{n+j-k} - z^n)' title='H z^n =  n(n-1) &#92;cdots (n-k+1) (z^{n+j-k} - z^n)' class='latex' /></p>
<p>See?  As the probability of having <img src='https://s0.wp.com/latex.php?latex=n%2Bj-k&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='n+j-k' title='n+j-k' class='latex' /> rabbits goes up, the probability of having <img src='https://s0.wp.com/latex.php?latex=n&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='n' title='n' class='latex' /> rabbits goes down, at an equal rate.  This sort of balance is necessary for <img src='https://s0.wp.com/latex.php?latex=H&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='H' title='H' class='latex' /> to be a sensible Hamiltonian in this sort of stochastic theory (an <a href="https://johncarlosbaez.wordpress.com/2011/04/11/network-theory-part-5/">&#8216;infinitesimal stochastic operator&#8217;</a>, to be precise).  And the rate is exactly the number of ordered <img src='https://s0.wp.com/latex.php?latex=k&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='k' title='k' class='latex' />-tuples taken from a collection of <img src='https://s0.wp.com/latex.php?latex=n&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='n' title='n' class='latex' /> rabbits.  This is called the <img src='https://s0.wp.com/latex.php?latex=k&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='k' title='k' class='latex' />th <a href="http://www.stanford.edu/~dgleich/publications/finite-calculus.pdf#page=6"><b>falling power</b></a> of <img src='https://s0.wp.com/latex.php?latex=n&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='n' title='n' class='latex' />, and written as follows:</p>
<p><img src='https://s0.wp.com/latex.php?latex=n%5E%7B%5Cunderline%7Bk%7D%7D+%3D+n%28n-1%29+%5Ccdots+%28n-k%2B1%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='n^{&#92;underline{k}} = n(n-1) &#92;cdots (n-k+1)' title='n^{&#92;underline{k}} = n(n-1) &#92;cdots (n-k+1)' class='latex' /></p>
<p>Since we can apply functions to operators as well as numbers, we can write our Hamiltonian as: </p>
<p><img src='https://s0.wp.com/latex.php?latex=H+%3D+%7Ba%5E%7B%5Cdagger%7D%7D%5Ej+a%5Ek+-+N%5E%7B%5Cunderline%7Bk%7D%7D&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='H = {a^{&#92;dagger}}^j a^k - N^{&#92;underline{k}}' title='H = {a^{&#92;dagger}}^j a^k - N^{&#92;underline{k}}' class='latex' /></p>
<h4>Kissing rabbits</h4>
<div align="center">
<img src="https://i0.wp.com/math.ucr.edu/home/baez/networks/2-in-2-out.png" alt="" />
</div>
<p>Let&#8217;s do one more example just to test our understanding.  This time each pair of rabbits has a unit probability per unit time of bumping into one another, exchanging a friendly kiss and walking off.  This shouldn&#8217;t affect the rabbit population at all!  But let&#8217;s follow the rules and see what they say.</p>
<p>According to our rules, the Hamiltonian should be:</p>
<p><img src='https://s0.wp.com/latex.php?latex=H+%3D+%7Ba%5E%7B%5Cdagger%7D%7D%5E2+a%5E2+-+N%28N-1%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='H = {a^{&#92;dagger}}^2 a^2 - N(N-1)' title='H = {a^{&#92;dagger}}^2 a^2 - N(N-1)' class='latex' /></p>
<p>However, </p>
<p><img src='https://s0.wp.com/latex.php?latex=%7Ba%5E%7B%5Cdagger%7D%7D%5E2+a%5E2+z%5En+%3D+z%5E2+%5Cfrac%7Bd%5E2%7D%7Bdz%5E2%7D+z%5En+%3D+n%28n-1%29+z%5En+%3D+N%28N-1%29+z%5En&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='{a^{&#92;dagger}}^2 a^2 z^n = z^2 &#92;frac{d^2}{dz^2} z^n = n(n-1) z^n = N(N-1) z^n' title='{a^{&#92;dagger}}^2 a^2 z^n = z^2 &#92;frac{d^2}{dz^2} z^n = n(n-1) z^n = N(N-1) z^n' class='latex' /></p>
<p>and since <img src='https://s0.wp.com/latex.php?latex=z%5En&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='z^n' title='z^n' class='latex' /> form a &#8216;basis&#8217; for the formal power series, we see that:</p>
<p><img src='https://s0.wp.com/latex.php?latex=%7Ba%5E%7B%5Cdagger%7D%7D%5E2+a%5E2+%3D+N%28N-1%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='{a^{&#92;dagger}}^2 a^2 = N(N-1)' title='{a^{&#92;dagger}}^2 a^2 = N(N-1)' class='latex' /></p>
<p>so in fact:</p>
<p><img src='https://s0.wp.com/latex.php?latex=H+%3D+0&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='H = 0' title='H = 0' class='latex' /></p>
<p>That&#8217;s good: if the Hamiltonian is zero, the master equation will say </p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Cfrac%7Bd%7D%7Bd+t%7D+%5CPsi%28t%29+%3D+0&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;frac{d}{d t} &#92;Psi(t) = 0' title='&#92;frac{d}{d t} &#92;Psi(t) = 0' class='latex' /></p>
<p>so the population, or more precisely the probability of having any given number of rabbits, will be constant.</p>
<p>There&#8217;s another nice little lesson here.  Copying the calculation we just did, it&#8217;s easy to see that:</p>
<p><img src='https://s0.wp.com/latex.php?latex=%7Ba%5E%7B%5Cdagger%7D%7D%5Ek+a%5Ek+%3D+N%5E%7B%5Cunderline%7Bk%7D%7D+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='{a^{&#92;dagger}}^k a^k = N^{&#92;underline{k}} ' title='{a^{&#92;dagger}}^k a^k = N^{&#92;underline{k}} ' class='latex' /></p>
<p>This is a cute formula for falling powers of the number operator in terms of annihilation and creation operators.  It means that for the general transition we saw before:</p>
<div align="center">
<img src="https://i2.wp.com/math.ucr.edu/home/baez/networks/k-in-j-out-labels.png" alt="" />
</div>
<p>we can write the Hamiltonian in two equivalent ways:</p>
<p><img src='https://s0.wp.com/latex.php?latex=H+%3D+%7Ba%5E%7B%5Cdagger%7D%7D%5Ej+a%5Ek+-+N%5E%7B%5Cunderline%7Bk%7D%7D+%3D++%7Ba%5E%7B%5Cdagger%7D%7D%5Ej+a%5Ek+-+%7Ba%5E%7B%5Cdagger%7D%7D%5Ek+a%5Ek+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='H = {a^{&#92;dagger}}^j a^k - N^{&#92;underline{k}} =  {a^{&#92;dagger}}^j a^k - {a^{&#92;dagger}}^k a^k ' title='H = {a^{&#92;dagger}}^j a^k - N^{&#92;underline{k}} =  {a^{&#92;dagger}}^j a^k - {a^{&#92;dagger}}^k a^k ' class='latex' /></p>
<p>Okay, that&#8217;s it for now!  We can, and will, generalize all this stuff to stochastic Petri nets where there are things of many different kinds&mdash;not just rabbits.  And we&#8217;ll see that the master equation we get matches the answer to the puzzle in <a href="http://math.ucr.edu/home/baez/networks/networks_4.html">Part 4</a>.  That&#8217;s pretty easy.  But first, we&#8217;ll have a guest post by Jacob Biamonte, who will explain a more realistic example from population biology.</p>
]]></html><thumbnail_url><![CDATA[https://i2.wp.com/math.ucr.edu/home/baez/networks/rabbit-in-hat.jpg?fit=440%2C330]]></thumbnail_url><thumbnail_height><![CDATA[250]]></thumbnail_height><thumbnail_width><![CDATA[200]]></thumbnail_width></oembed>