/dev/modules/physics/qho_1d.html
HTML | 189 lines | 177 code | 12 blank | 0 comment | 0 complexity | 06565361821579d2b1d63f527494c298 MD5 | raw file
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8" />
- <title>Quantum Harmonic Oscillator in 1-D — SymPy 1.7.dev documentation</title>
- <link rel="stylesheet" href="../../_static/default.css" type="text/css" />
- <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
- <link rel="stylesheet" type="text/css" href="../../_static/graphviz.css" />
- <link rel="stylesheet" type="text/css" href="https://live.sympy.org/static/live-core.css" />
- <link rel="stylesheet" type="text/css" href="https://live.sympy.org/static/live-autocomplete.css" />
- <link rel="stylesheet" type="text/css" href="https://live.sympy.org/static/live-sphinx.css" />
-
- <script id="documentation_options" data-url_root="../../" src="../../_static/documentation_options.js"></script>
- <script src="../../_static/jquery.js"></script>
- <script src="../../_static/underscore.js"></script>
- <script src="../../_static/doctools.js"></script>
- <script src="../../_static/language_data.js"></script>
- <script src="https://live.sympy.org/static/utilities.js"></script>
- <script src="https://live.sympy.org/static/external/classy.js"></script>
- <script src="https://live.sympy.org/static/live-core.js"></script>
- <script src="https://live.sympy.org/static/live-autocomplete.js"></script>
- <script src="https://live.sympy.org/static/live-sphinx.js"></script>
- <script async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-AMS_HTML-full"></script>
- <script type="text/x-mathjax-config">MathJax.Hub.Config({"tex2jax": {"inlineMath": [["\\(", "\\)"]], "displayMath": [["\\[", "\\]"]]}})</script>
-
- <link rel="shortcut icon" href="../../_static/sympy-notailtext-favicon.ico"/>
- <link href="https://docs.sympy.org/latest/modules/physics/qho_1d.html" rel="canonical" />
-
- <link rel="index" title="Index" href="../../genindex.html" />
- <link rel="search" title="Search" href="../../search.html" />
- <link rel="next" title="Quantum Harmonic Oscillator in 3-D" href="sho.html" />
- <link rel="prev" title="Pauli Algebra" href="paulialgebra.html" />
- </head><body>
- <div class="related" role="navigation" aria-label="related navigation">
- <h3>Navigation</h3>
- <ul>
- <li class="right" style="margin-right: 10px">
- <a href="../../genindex.html" title="General Index"
- accesskey="I">index</a></li>
- <li class="right" >
- <a href="../../py-modindex.html" title="Python Module Index"
- >modules</a> |</li>
- <li class="right" >
- <a href="sho.html" title="Quantum Harmonic Oscillator in 3-D"
- accesskey="N">next</a> |</li>
- <li class="right" >
- <a href="paulialgebra.html" title="Pauli Algebra"
- accesskey="P">previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="../../index.html">SymPy 1.7.dev documentation</a> »</li>
- <li class="nav-item nav-item-1"><a href="../index.html" >SymPy Modules Reference</a> »</li>
- <li class="nav-item nav-item-2"><a href="index.html" accesskey="U">Physics</a> »</li>
- </ul>
- </div>
- <div class="document">
- <div class="documentwrapper">
- <div class="bodywrapper">
- <div class="body" role="main">
-
- <div class="section" id="module-sympy.physics.qho_1d">
- <span id="quantum-harmonic-oscillator-in-1-d"></span><h1>Quantum Harmonic Oscillator in 1-D<a class="headerlink" href="#module-sympy.physics.qho_1d" title="Permalink to this headline">¶</a></h1>
- <dl class="py function">
- <dt id="sympy.physics.qho_1d.E_n">
- <code class="sig-prename descclassname">sympy.physics.qho_1d.</code><code class="sig-name descname">E_n</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">n</span></em>, <em class="sig-param"><span class="n">omega</span></em><span class="sig-paren">)</span><a class="reference external" href="https://github.com/sympy/sympy/blob/46469d714a095fde59f9c4d83aaa528c68b0be0f/sympy/physics/qho_1d.py#L41-L64"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#sympy.physics.qho_1d.E_n" title="Permalink to this definition">¶</a></dt>
- <dd><p>Returns the Energy of the One-dimensional harmonic oscillator</p>
- <dl class="simple">
- <dt><code class="docutils literal notranslate"><span class="pre">n</span></code></dt><dd><p>the “nodal” quantum number</p>
- </dd>
- <dt><code class="docutils literal notranslate"><span class="pre">omega</span></code></dt><dd><p>the harmonic oscillator angular frequency</p>
- </dd>
- </dl>
- <p>The unit of the returned value matches the unit of hw, since the energy is
- calculated as:</p>
- <blockquote>
- <div><p>E_n = hbar * omega*(n + 1/2)</p>
- </div></blockquote>
- <p class="rubric">Examples</p>
- <div class="doctest highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">>>> </span><span class="kn">from</span> <span class="nn">sympy.physics.qho_1d</span> <span class="kn">import</span> <span class="n">E_n</span>
- <span class="gp">>>> </span><span class="kn">from</span> <span class="nn">sympy.abc</span> <span class="kn">import</span> <span class="n">x</span><span class="p">,</span> <span class="n">omega</span>
- <span class="gp">>>> </span><span class="n">E_n</span><span class="p">(</span><span class="n">x</span><span class="p">,</span> <span class="n">omega</span><span class="p">)</span>
- <span class="go">hbar*omega*(x + 1/2)</span>
- </pre></div>
- </div>
- </dd></dl>
- <dl class="py function">
- <dt id="sympy.physics.qho_1d.coherent_state">
- <code class="sig-prename descclassname">sympy.physics.qho_1d.</code><code class="sig-name descname">coherent_state</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">n</span></em>, <em class="sig-param"><span class="n">alpha</span></em><span class="sig-paren">)</span><a class="reference external" href="https://github.com/sympy/sympy/blob/46469d714a095fde59f9c4d83aaa528c68b0be0f/sympy/physics/qho_1d.py#L67-L78"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#sympy.physics.qho_1d.coherent_state" title="Permalink to this definition">¶</a></dt>
- <dd><p>Returns <n|alpha> for the coherent states of 1D harmonic oscillator.
- See <a class="reference external" href="https://en.wikipedia.org/wiki/Coherent_states">https://en.wikipedia.org/wiki/Coherent_states</a></p>
- <dl class="simple">
- <dt><code class="docutils literal notranslate"><span class="pre">n</span></code></dt><dd><p>the “nodal” quantum number</p>
- </dd>
- <dt><code class="docutils literal notranslate"><span class="pre">alpha</span></code></dt><dd><p>the eigen value of annihilation operator</p>
- </dd>
- </dl>
- </dd></dl>
- <dl class="py function">
- <dt id="sympy.physics.qho_1d.psi_n">
- <code class="sig-prename descclassname">sympy.physics.qho_1d.</code><code class="sig-name descname">psi_n</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">n</span></em>, <em class="sig-param"><span class="n">x</span></em>, <em class="sig-param"><span class="n">m</span></em>, <em class="sig-param"><span class="n">omega</span></em><span class="sig-paren">)</span><a class="reference external" href="https://github.com/sympy/sympy/blob/46469d714a095fde59f9c4d83aaa528c68b0be0f/sympy/physics/qho_1d.py#L8-L38"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#sympy.physics.qho_1d.psi_n" title="Permalink to this definition">¶</a></dt>
- <dd><p>Returns the wavefunction psi_{n} for the One-dimensional harmonic oscillator.</p>
- <dl class="simple">
- <dt><code class="docutils literal notranslate"><span class="pre">n</span></code></dt><dd><p>the “nodal” quantum number. Corresponds to the number of nodes in the
- wavefunction. n >= 0</p>
- </dd>
- <dt><code class="docutils literal notranslate"><span class="pre">x</span></code></dt><dd><p>x coordinate</p>
- </dd>
- <dt><code class="docutils literal notranslate"><span class="pre">m</span></code></dt><dd><p>mass of the particle</p>
- </dd>
- <dt><code class="docutils literal notranslate"><span class="pre">omega</span></code></dt><dd><p>angular frequency of the oscillator</p>
- </dd>
- </dl>
- <p class="rubric">Examples</p>
- <div class="doctest highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">>>> </span><span class="kn">from</span> <span class="nn">sympy.physics.qho_1d</span> <span class="kn">import</span> <span class="n">psi_n</span>
- <span class="gp">>>> </span><span class="kn">from</span> <span class="nn">sympy.abc</span> <span class="kn">import</span> <span class="n">m</span><span class="p">,</span> <span class="n">x</span><span class="p">,</span> <span class="n">omega</span>
- <span class="gp">>>> </span><span class="n">psi_n</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="n">x</span><span class="p">,</span> <span class="n">m</span><span class="p">,</span> <span class="n">omega</span><span class="p">)</span>
- <span class="go">(m*omega)**(1/4)*exp(-m*omega*x**2/(2*hbar))/(hbar**(1/4)*pi**(1/4))</span>
- </pre></div>
- </div>
- </dd></dl>
- </div>
- </div>
- </div>
- </div>
- <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
- <div class="sphinxsidebarwrapper">
- <p class="logo"><a href="../../index.html">
- <img class="logo" src="../../_static/sympylogo.png" alt="Logo"/>
- </a></p>
- <h4>Previous topic</h4>
- <p class="topless"><a href="paulialgebra.html"
- title="previous chapter">Pauli Algebra</a></p>
- <h4>Next topic</h4>
- <p class="topless"><a href="sho.html"
- title="next chapter">Quantum Harmonic Oscillator in 3-D</a></p>
- <div role="note" aria-label="source link">
- <h3>This Page</h3>
- <ul class="this-page-menu">
- <li><a href="../../_sources/modules/physics/qho_1d.rst.txt"
- rel="nofollow">Show Source</a></li>
- </ul>
- </div>
- <div id="searchbox" style="display: none" role="search">
- <h3 id="searchlabel">Quick search</h3>
- <div class="searchformwrapper">
- <form class="search" action="../../search.html" method="get">
- <input type="text" name="q" aria-labelledby="searchlabel" />
- <input type="submit" value="Go" />
- </form>
- </div>
- </div>
- <script>$('#searchbox').show(0);</script>
- </div>
- </div>
- <div class="clearer"></div>
- </div>
- <div class="related" role="navigation" aria-label="related navigation">
- <h3>Navigation</h3>
- <ul>
- <li class="right" style="margin-right: 10px">
- <a href="../../genindex.html" title="General Index"
- >index</a></li>
- <li class="right" >
- <a href="../../py-modindex.html" title="Python Module Index"
- >modules</a> |</li>
- <li class="right" >
- <a href="sho.html" title="Quantum Harmonic Oscillator in 3-D"
- >next</a> |</li>
- <li class="right" >
- <a href="paulialgebra.html" title="Pauli Algebra"
- >previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="../../index.html">SymPy 1.7.dev documentation</a> »</li>
- <li class="nav-item nav-item-1"><a href="../index.html" >SymPy Modules Reference</a> »</li>
- <li class="nav-item nav-item-2"><a href="index.html" >Physics</a> »</li>
- </ul>
- </div>
- <div class="footer" role="contentinfo">
- © Copyright 2020 SymPy Development Team.
- Last updated on Jun 03, 2020.
- Created using <a href="http://sphinx-doc.org/">Sphinx</a> 3.0.4.
- </div>
- </body>
- </html>