.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "api/gallery/particle/quark_model/plot_03_quark_magnetic_moments.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_api_gallery_particle_quark_model_plot_03_quark_magnetic_moments.py: Baryon magnetic moments from three quarks =========================================== If the baryons are made of quarks (Gell-Mann; Zweig, 1964), their magnetic moments should follow from the quarks' own. Treat each quark as a Dirac particle with :math:`\mu_q = Q_q (m_p/m_q)\,\mu_N` and combine the spins with the symmetric SU(6) spin-flavour wavefunction. The proton is then :math:`(4\mu_u - \mu_d)/3` and the neutron :math:`(4\mu_d - \mu_u)/3`, so with :math:`m_u = m_d` the ratio is :math:`\mu_n/\mu_p = -2/3`, parameter-free, against the measured :math:`-0.685` (Beg, Lee and Pais, 1964). It was among the first quantitative successes of quarks as real constituents. This example computes the octet moments with :func:`~physicskit.particle.quark_model.baryon_magnetic_moment`. .. GENERATED FROM PYTHON SOURCE LINES 18-39 .. code-block:: Python import matplotlib.pyplot as plt import numpy as np from physicskit.particle.quark_model import baryon_magnetic_moment # Measured moments in nuclear magnetons (Particle Data Group) measured = { "p": 2.7928, "n": -1.9130, "Lambda": -0.613, "Sigma+": 2.458, "Sigma-": -1.160, "Xi0": -1.250, "Xi-": -0.6507, } predicted = {name: baryon_magnetic_moment(name) for name in measured} for name in measured: print(f"{name:7s} quark model {predicted[name]:+.3f} measured {measured[name]:+.3f}") ratio = predicted["n"] / predicted["p"] print(f"\nmu_n / mu_p: quark model {ratio:.4f}, measured {measured['n'] / measured['p']:.4f}") .. rst-class:: sphx-glr-script-out .. code-block:: none p quark model +2.792 measured +2.793 n quark model -1.862 measured -1.913 Lambda quark model -0.614 measured -0.613 Sigma+ quark model +2.687 measured +2.458 Sigma- quark model -1.036 measured -1.160 Xi0 quark model -1.440 measured -1.250 Xi- quark model -0.509 measured -0.651 mu_n / mu_p: quark model -0.6667, measured -0.6850 .. GENERATED FROM PYTHON SOURCE LINES 40-42 Prediction against measurement ---------------------------------- .. GENERATED FROM PYTHON SOURCE LINES 42-56 .. code-block:: Python fig, ax = plt.subplots(figsize=(6, 5)) x = np.array(list(measured.values())) y = np.array(list(predicted.values())) ax.plot([-2.5, 3.2], [-2.5, 3.2], color="0.7", zorder=0) ax.scatter(x, y, color="steelblue") for name, xi, yi in zip(measured, x, y): ax.annotate(name, (xi, yi), textcoords="offset points", xytext=(5, -10), fontsize=8) ax.set_xlabel(r"measured $\mu$ [$\mu_N$]") ax.set_ylabel(r"quark model $\mu$ [$\mu_N$]") ax.set_title(r"Octet magnetic moments: $m_u = m_d = 336$, $m_s = 509$ MeV") fig.tight_layout() plt.show() .. image-sg:: /api/gallery/particle/quark_model/images/sphx_glr_plot_03_quark_magnetic_moments_001.png :alt: Octet magnetic moments: $m_u = m_d = 336$, $m_s = 509$ MeV :srcset: /api/gallery/particle/quark_model/images/sphx_glr_plot_03_quark_magnetic_moments_001.png :class: sphx-glr-single-img .. GENERATED FROM PYTHON SOURCE LINES 57-61 Check ----- mu_n / mu_p = -2/3 exactly, within 0.03 of the measured -0.685; every octet moment has the measured sign and lies within 0.3 nuclear magnetons. .. GENERATED FROM PYTHON SOURCE LINES 61-64 .. code-block:: Python assert abs(ratio - (-2 / 3)) < 1e-10 assert abs(ratio - measured["n"] / measured["p"]) < 0.03 assert np.all(np.sign(x) == np.sign(y)) and np.all(np.abs(x - y) < 0.3) .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.037 seconds) .. _sphx_glr_download_api_gallery_particle_quark_model_plot_03_quark_magnetic_moments.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_03_quark_magnetic_moments.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_03_quark_magnetic_moments.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_03_quark_magnetic_moments.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_