# SNEG > SNEG is an open-source Wolfram Language package for symbolic second quantization and many-body physics in Mathematica. These references cover the GitHub release SNEG 2.2.1. Load the GitHub paclet with ``Needs["sneg`"]`` and evaluate `$SnegVersion` in a subsequent cell. Start with the quick reference for runnable examples of fermionic operator algebra, Wick’s theorem, Hubbard model exact diagonalization, and Green’s functions. ## Start here - [Quick reference (plain text)](https://nrgljubljana.ijs.si/sneg/quick-reference/index.txt): Installation, conventions, and four runnable recipes with expected results. - [Quick reference (HTML)](https://nrgljubljana.ijs.si/sneg/quick-reference/): The same recipes with rendered equations and links to worked notebooks. - [GitHub release v2.2.1](https://github.com/rokzitko/sneg/releases/tag/v2.2.1): Paclet downloads and release notes. - [SNEG manual (PDF)](https://nrgljubljana.ijs.si/sneg/sneg-manual.pdf): Worked solid-state calculations, function reference, and exercises. ## Versioned function references - [SNEG guide](https://raw.githubusercontent.com/rokzitko/sneg/v2.2.1/doc/src/guide/SNEG.md): Functions grouped by task. - [nc](https://raw.githubusercontent.com/rokzitko/sneg/v2.2.1/doc/src/ref/nc.md): Noncommutative multiplication and automatic reordering. - [ordering](https://raw.githubusercontent.com/rokzitko/sneg/v2.2.1/doc/src/ref/ordering.md): EMPTY, SEA, and NONE ordering conventions. - [vevwick](https://raw.githubusercontent.com/rokzitko/sneg/v2.2.1/doc/src/ref/vevwick.md): Vacuum expectation values using Wick contractions. - [qszbasisvc](https://raw.githubusercontent.com/rokzitko/sneg/v2.2.1/doc/src/ref/qszbasisvc.md): Occupation-number bases classified by charge and spin projection. - [matrixrepresentationvcsparse](https://raw.githubusercontent.com/rokzitko/sneg/v2.2.1/doc/src/ref/matrixrepresentationvcsparse.md): Square sparse matrices in a chosen occupation basis. - [greensfunction](https://raw.githubusercontent.com/rokzitko/sneg/v2.2.1/doc/src/ref/greensfunction.md): Retarded Green’s functions from closed equations of motion. ## Worked examples - [All worked notebooks](https://nrgljubljana.ijs.si/sneg/examples/): Copyable Wolfram Language, saved Mathematica output, and notebook downloads. - [Wick’s theorem for fermions](https://nrgljubljana.ijs.si/sneg/examples/wick-theorem/): Direct and exchange contractions in the Fermi sea. - [Hubbard dimer exact diagonalization](https://nrgljubljana.ijs.si/sneg/examples/hubbard-dimer/): Half-filled singlet and triplet sectors and superexchange. - [Hubbard atom Green’s function](https://nrgljubljana.ijs.si/sneg/examples/atomic-propagator/): Atomic poles, thermal residues, and a Lehmann check. ## Citation - [R. Žitko, Comput. Phys. Commun. 182, 2259–2264 (2011)](https://doi.org/10.1016/j.cpc.2011.05.013): The software citation for published work.