Fields
fields
Field creation utilities for scalar, gauge, and coupled lattices.
This module consolidates all field initialization functions for creating various lattice configurations.
create_vacuum_coupled_lattice(size, length, m=1.0, lambda_=1.0, g=1.0)
Create a coupled lattice in vacuum state.
Vacuum: \(\phi = 0, \pi = 0, U = 1, E = 0\)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
size
|
tuple[int, int, int]
|
Lattice dimensions |
required |
length
|
float | tuple[float, float, float]
|
Physical box size. |
required |
m
|
float
|
Scalar mass. |
1.0
|
lambda_
|
float
|
Scalar self-coupling. |
1.0
|
g
|
float
|
Gauge coupling. |
1.0
|
Returns:
| Type | Description |
|---|---|
CoupledLattice
|
|
Source code in jaxlatt/core/fields.py
create_random_coupled_lattice(key, size, length, m=1.0, lambda_=1.0, g=1.0, amplitude=0.1)
Create a coupled lattice with random initial conditions.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
key
|
PRNGKey
|
Random number generator key. |
required |
size
|
tuple[int, int, int]
|
Lattice dimensions |
required |
length
|
float | tuple[float, float, float]
|
Physical box size. |
required |
m
|
float
|
Scalar mass. |
1.0
|
lambda_
|
float
|
Scalar self-coupling. |
1.0
|
g
|
float
|
Gauge coupling. |
1.0
|
amplitude
|
float
|
Amplitude of random perturbations. |
0.1
|
Returns:
| Type | Description |
|---|---|
CoupledLattice
|
|
Source code in jaxlatt/core/fields.py
create_higgs_vev_lattice(size, length, m=1.0, lambda_=1.0, g=1.0, vev_amplitude=None)
Create a coupled lattice with Higgs field at vacuum expectation value.
For the symmetry breaking potential \(V = -\frac{m^2}{2}|\phi|^2 + \frac{\lambda}{4}|\phi|^4\), the VEV is \(|\phi| = \sqrt{m^2/\lambda}\).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
size
|
tuple[int, int, int]
|
Lattice dimensions |
required |
length
|
float | tuple[float, float, float]
|
Physical box size. |
required |
m
|
float
|
Scalar mass parameter. |
1.0
|
lambda_
|
float
|
Scalar self-coupling. |
1.0
|
g
|
float
|
Gauge coupling. |
1.0
|
vev_amplitude
|
float
|
Optional VEV amplitude. If |
None
|
Returns:
| Type | Description |
|---|---|
CoupledLattice
|
|
Source code in jaxlatt/core/fields.py
create_vacuum_gauge_lattice(size, length, g=1.0)
Create a gauge lattice in vacuum state (links=1, E=0).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
size
|
tuple[int, int, int]
|
Grid dimensions |
required |
length
|
float
|
Physical box size |
required |
g
|
float
|
Gauge coupling |
1.0
|
Returns:
| Type | Description |
|---|---|
GaugeLattice
|
GaugeLattice in vacuum configuration |
Source code in jaxlatt/core/fields.py
create_random_gauge_lattice(key, size, length, g=1.0, amplitude=0.1)
Create a gauge lattice with small random perturbations.
Initializes links with small random phases and electric field with small random values, suitable for testing dynamics.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
key
|
PRNGKey
|
JAX random key |
required |
size
|
tuple[int, int, int]
|
Grid dimensions |
required |
length
|
float
|
Physical box size |
required |
g
|
float
|
Gauge coupling |
1.0
|
amplitude
|
float
|
Amplitude of random fluctuations |
0.1
|
Returns:
| Type | Description |
|---|---|
GaugeLattice
|
GaugeLattice with random initial conditions |
Source code in jaxlatt/core/fields.py
create_vacuum_real_scalar_lattice(size, length)
Initialise chi = 0, chi' = 0 (vacuum) on a periodic lattice.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
size
|
tuple[int, ...]
|
Grid dimensions, e.g. |
required |
length
|
float
|
Physical side length (same for all dimensions). |
required |
Returns:
| Type | Description |
|---|---|
RealScalarLattice
|
Zero-initialised :class: |
Source code in jaxlatt/core/fields.py
create_random_real_scalar_lattice(key, size, length, amplitude=0.001)
Initialise chi with small random perturbations, chi' = 0.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
key
|
Array
|
JAX PRNG key. |
required |
size
|
tuple[int, ...]
|
Grid dimensions. |
required |
length
|
float
|
Physical side length. |
required |
amplitude
|
float
|
Standard deviation of the Gaussian perturbation. |
0.001
|
Returns:
| Type | Description |
|---|---|
RealScalarLattice
|
class: |