A **spin glass** is a disordered magnet, where the magnetic spin of the component atoms (the orientation of the north and south magnetic poles in three-dimensional space) are not aligned in a regular pattern. The term "glass" comes from an analogy between the *magnetic* disorder in a spin glass and the *positional* disorder of a conventional, chemical glass, e.g., a window glass. In window glass or any amorphous solid the atomic bond structure is highly irregular; in contrast, a crystal has a uniform pattern of atomic bonds. In ferromagnetic solid, magnetic spins all align in the same direction; this would be analogous to a crystal.

The individual atomic bonds in a spin glass are a mixture of roughly equal numbers of ferromagnetic bonds (where neighbors have the same orientation) and antiferromagnetic bonds (where neighbors have exactly the opposite orientation: north and south poles are flipped 180 degrees). These patterns of aligned and misaligned atomic magnets create what are known as frustrated interactions - distortions in the geometry of atomic bonds compared to what would be seen in a regular, fully aligned solid. They may also create situations where more than one geometric arrangement of atoms is stable.

Spin glasses and the complex internal structures that arise within them are termed "metastable" because they are "stuck" in stable configurations other than the lowest-energy configuration (which would be aligned and ferromagnetic). The mathematical complexity of these structures are difficult but fruitful to study experimentally or in simulations, with applications to artificial neural networks in computer science in addition to physics, chemistry, and materials science.

It is the time dependence which distinguishes spin glasses from other magnetic systems.

Above the spin glass transition temperature, *T*_{c}, the spin glass exhibits typical magnetic behaviour (such as paramagnetism).

If a magnetic field is applied as the sample is cooled to the transition temperature, magnetization of the sample increases as described by the Curie law. Upon reaching *T*_{c}, the sample becomes a spin glass and further cooling results in little change in magnetization. This is referred to as the *field-cooled* magnetization.

When the external magnetic field is removed, the magnetization of the spin glass falls rapidly to a lower value known as the *remanent* magnetization.

Magnetization then decays slowly as it approaches zero (or some small fraction of the original value—this remains unknown). This decay is non-exponential and no simple function can fit the curve of magnetization versus time adequately. This slow decay is particular to spin glasses. Experimental measurements on the order of days have shown continual changes above the noise level of instrumentation.

Spin glasses differ from ferromagnetic materials by the fact that after the external magnetic field is removed from a ferromagnetic substance, the magnetization remains indefinitely at the remanent value. Paramagnetic materials differ from spin glasses by the fact that, after the external magnetic field is removed, the magnetization rapidly falls to zero, with no remanent magnetization. In each case the decay is rapid and exponential.

If the sample is cooled below *T*_{c} in the absence of an external magnetic field and a magnetic field is applied after the transition to the spin glass phase, there is a rapid initial increase to a value called the *zero-field-cooled* magnetization. A slow upward drift then occurs toward the field-cooled magnetization.

Surprisingly, the sum of the two complicated functions of time (the zero-field-cooled and remanent magnetizations) is a constant, namely the field-cooled value, and thus both share identical functional forms with time, at least in the limit of very small external fields.

In this model, we have spins arranged on a
d
-dimensional lattice with only nearest neighbor interactions similar to the Ising model. This model can be solved exactly for the critical temperatures and a glassy phase is observed to exist at low temperatures. The Hamiltonian for this spin system is given by:

H
=
−
∑
⟨
i
j
⟩
J
i
j
S
i
S
j
,
where
S
i
refers to the Pauli spin matrix for the spin-half particle at lattice point
i
. A negative value of
J
i
j
denotes an antiferromagnetic type interaction between spins at points
i
and
j
. The sum runs over all nearest neighbor positions on a lattice, of any dimension. The variables
J
i
j
magnetic nature of the spin-spin interactions are called bond or link variables. In order to determine the partition function for this system, one needs to average the free energy
f
[
J
i
j
]
=
−
1
β
ln
Z
[
J
i
j
]
where
Z
[
J
i
j
]
=
Tr
S
e
(
−
β
H
)
, over all possible values of
J
i
j
. The distribution of values of
J
i
j
is taken to be a gaussian with a mean
J
0
and a variance
J
2
:

P
(
J
i
j
)
=
N
2
π
J
2
exp
{
−
N
2
J
2
(
J
i
j
−
J
0
N
)
2
}
.

Solving for the free energy using the replica method, below a certain temperature, a new magnetic phase called the spin glass phase (or glassy phase) of the system is found to exist which is characterized by a vanishing magnetization
m
=
0
along with a non-vanishing value of the two point correlation function between spins at the same lattice point but at two different replicas:
q
=
∑
i
=
1
N
S
i
α
S
i
β
≠
0
, where
α
,
β
are replica indices. The order parameter for the ferromagnetic to spin glass phase transition is therefore
q
, and that for paramagnetic to spin glass is again
q
. Hence the new set of order parameters describing the three magnetic phases consists of both
m
and
q
. Free energy of this system can be found, both under assumptions of replica symmetry as well as considering replica symmetry breaking. Under the assumption of replica symmetry, the free energy is given by the expression:

β
f
=
−
β
2
J
2
4
(
1
−
q
)
2
+
β
J
0
r
m
r
2
−
∫
exp
(
−
z
2
2
)
log
(
2
cosh
(
β
J
z
+
β
J
0
m
)
)
d
z
.
In addition to unusual experimental properties, spin glasses are the subject of extensive theoretical and computational investigations. A substantial part of early theoretical work on spin glasses dealt with a form of mean field theory based on a set of replicas of the partition function of the system.

An important, exactly solvable model of a spin glass was introduced by D. Sherrington and S. Kirkpatrick in 1975. It is an Ising model with long range frustrated ferro- as well as antiferromagnetic couplings. It corresponds to a mean field approximation of spin glasses describing the slow dynamics of the magnetization and the complex non-ergodic equilibrium state.

Unlike the Edwards–Anderson (EA) model, in the system though only two spins interactions are considered, the range of each interaction can be potentially infinite (of the order of the size of the lattice). Therefore, we see that any two spins can be lined with a ferromagnetic or an antiferromagnetic bond and the distribution of these is given exactly as in the case of Edwards–Anderson model. The Hamiltonian for SK model is very similar to the EA model:

H
=
−
∑
i
<
j
J
i
j
S
i
S
j
where
J
i
j
,
S
i
,
S
j
have same meanings as in the EA model. The equilibrium solution of the model, after some initial attempts by Sherrington, Kirkpatrick and others, was found by Giorgio Parisi in 1979 within the replica method. The subsequent work of interpretation of the Parisi solution—by M. Mezard, G. Parisi, M.A. Virasoro and many others—revealed the complex nature of a glassy low temperature phase characterized by ergodicity breaking, ultrametricity and non-selfaverageness. Further developments led to the creation of the cavity method, which allowed study of the low temperature phase without replicas. A rigorous proof of the Parisi solution has been provided in the work of Francesco Guerra and Michel Talagrand.

The formalism of replica mean field theory has also been applied in the study of neural networks, where it has enabled calculations of properties such as the storage capacity of simple neural network architectures without requiring a training algorithm (such as backpropagation) to be designed or implemented.

More realistic spin glass models with short range frustrated interactions and disorder, like the Gaussian model where the couplings between neighboring spins follow a Gaussian distribution, have been studied extensively as well, especially using Monte Carlo simulations. These models display spin glass phases bordered by sharp phase transitions.

Besides its relevance in condensed matter physics, spin glass theory has acquired a strongly interdisciplinary character, with applications to neural network theory, computer science, theoretical biology, econophysics etc.

The infinite-range model is a generalization of the Sherrington–Kirkpatrick model where we not only consider two spin interactions but
r
-spin interactions, where
r
≤
N
and
N
is the total number of spins. Unlike the Edwards–Anderson model, similar to the SK model, the interaction range is still infinite. The Hamiltonian for this model is described by:

H
=
−
∑
i
1
<
i
2
<
⋯
<
i
r
J
i
1
…
i
r
S
i
1
⋯
S
i
r
where
J
i
1
…
i
r
,
S
i
1
,
…
,
S
i
r
have similar meanings as in the EA model. The
r
→
∞
limit of this model is known as the random energy model. In this limit, it can be seen that the probability of the spin glass existing in a particular state, depends only on the energy of that state and not on the individual spin configurations in it. A gaussian distribution of magnetic bonds across the lattice is assumed usually to solve this model. Any other distribution is expected to give the same result, as a consequence of the central limit theorem. The gaussian distribution function, with mean
J
0
N
and variance
J
2
N
, is given as:

P
(
J
i
1
⋯
i
r
)
=
N
r
−
1
J
2
π
r
!
exp
{
−
N
r
−
1
J
2
r
!
(
J
i
1
⋯
i
r
−
J
0
r
!
2
N
r
−
1
)
}
The order parameters for this system are given by the magnetization
m
and the two point spin correlation between spins at the same site
q
, in two different replicas, which are the same as for the SK model. This infinite range model can be solved explicitly for the free energy in terms of
m
and
q
, under the assumption of replica symmetry as well as 1-Replica Symmetry Breaking.

β
f
=
β
2
J
2
q
r
4
−
r
β
2
J
2
q
r
2
−
β
2
J
2
4
+
β
J
0
r
m
r
2
+
r
β
2
J
2
q
r
−
1
4
2
π
+
∫
exp
(
−
z
2
2
)
log
(
2
cosh
(
β
J
z
r
q
r
−
1
2
+
β
J
0
r
m
r
−
1
2
)
)
d
z
A so-called non-ergodic behavior happens in spin glasses below the freezing temperature
T
f
, since below that temperature the system cannot escape from the ultradeep minima of the hierarchically-disordered energy landscape. Although the freezing temperature is typically as low as 30 kelvin (−240 degrees Celsius), so that the spin glass magnetism appears to be practically without applications in daily life, there are applications in different contexts, e.g. in the already mentioned theory of neural networks, i.e. in theoretical brain research, and in the mathematical-economical theory of optimization.

A detailed account of the history of spin glasses from the early 1960s to the late 1980s can be found in a series of popular articles by Philip W. Anderson in Physics Today.

Edwards, S.F.; Anderson, P.W. (1975), "Theory of spin glasses", *Journal of Physics F: Metal Physics*, **5**: 965–974, doi:10.1088/0305-4608/5/5/017 . [1]
Sherrington, David; Kirkpatrick, Scott (1975), "Solvable model of a spin-glass", *Physical Review Letters*, **35** (26): 1792–1796, Bibcode:1975PhRvL..35.1792S, doi:10.1103/PhysRevLett.35.1792 . Papercore Summary http://papercore.org/Sherrington1975
Nordblad, P.; Lundgren, L.; Sandlund, L. (1986), "A link between the relaxation of the zero field cooled and the thermoremanent magnetizations in spin glasses", *Journal of Magnetism and Magnetic Materials*, **54**: 185–186, Bibcode:1986JMMM...54..185N, doi:10.1016/0304-8853(86)90543-3 .
Binder, K.; Young, A. P. (1986), "Spin glasses: Experimental facts, theoretical concepts, and open questions", *Reviews of Modern Physics*, **58**: 801–976, Bibcode:1986RvMP...58..801B, doi:10.1103/RevModPhys.58.801 .
Bryngelson, Joseph D.; Wolynes, Peter G. (1987), "Spin glasses and the statistical mechanics of protein folding", *Proceedings of the National Academy of Sciences*, **84**: 7524–7528, Bibcode:1987PNAS...84.7524B, doi:10.1073/pnas.84.21.7524 .
Fischer, K. H.; Hertz, J. A. (1991), *Spin Glasses*, Cambridge University Press .
Mezard, Marc; Parisi, Giorgio; Virasoro, Miguel Angel (1987), *Spin glass theory and beyond*, Singapore: World Scientific, ISBN 9971-5-0115-5 .
Mydosh, J. A. (1995), *Spin Glasses*, Taylor & Francis .
Parisi, G. (1980), "The order parameter for spin glasses: a function on the interval 0-1", *J. Phys. A: Math. Gen.*, **13**: 1101–1112, Bibcode:1980JPhA...13.1101P, doi:10.1088/0305-4470/13/3/042 Papercore Summary http://papercore.org/Parisi1980.
Talagrand, Michel (2000), "Replica symmetry breaking and exponential inequalities for the Sherrington–Kirkpatrick model", *Annals of Probability*, **28** (3): 1018–1062, doi:10.1214/aop/1019160325, JSTOR 2652978 .
.Guerra, F.; Toninelli, F. L. (2002), "The thermodynamic limit in mean field spin glass models", *Communications in Mathematical Physics*, **230** (1): 71–79, arXiv:cond-mat/0204280, Bibcode:2002CMaPh.230...71G, doi:10.1007/s00220-002-0699-y
Aminov, T. G.; Novotortsev, V. N. (2014), ""Spin Glasses in Cu_{0.5}Fe_{0.5}Cr_{2}S_{4} - Based Solid Solutions"", *Inorganic Materials*, **50** (13): 1343–00, doi:10.1134/s0020168514130020, ISSN 0020-1685