learn-physics-0.6.4: Haskell code for learning physics

Physics.Learn.BeamStack

Description

Splitters, recombiners, and detectors for Stern-Gerlach experiments.

Synopsis

# Core laboratory components

data BeamStack Source #

Instances
 Source # Instance detailsDefined in Physics.Learn.BeamStack MethodsshowList :: [BeamStack] -> ShowS #

A beam of randomly oriented spin-1/2 particles.

Given angles describing the orientation of the splitter, removes an incoming beam from the stack and replaces it with two beams, a spin-up and a spin-down beam. The spin-down beam is the most recent beam on the stack.

Given angles describing the orientation of the recombiner, returns a single beam from an incoming pair of beams.

Given angles describing the direction of a uniform magnetic field, and given an angle describing the product of the Larmor frequency and the time, return an output beam from an input beam.

Remove the most recent beam from the stack.

Interchange the two most recent beams on the stack.

Return the number of beams in a BeamStack.

detect :: BeamStack -> [Double] Source #

Return the intensities of a stack of beams.

# Standard splitters

A Stern-Gerlach splitter in the x direction.

A Stern-Gerlach splitter in the y direction.

A Stern-Gerlach splitter in the z direction.

# Standard magnetic fields

Given an angle in radians describing the product of the Larmor frequency and the time, apply a magnetic in the x direction to the most recent beam on the stack.

Given an angle in radians describing the product of the Larmor frequency and the time, apply a magnetic in the y direction to the most recent beam on the stack.

Given an angle in radians describing the product of the Larmor frequency and the time, apply a magnetic in the z direction to the most recent beam on the stack.

# Standard combiners

A Stern-Gerlach recombiner in the x direction.

A Stern-Gerlach recombiner in the y direction.

A Stern-Gerlach recombiner in the z direction.

# Filters

Filter for spin-up particles in the x direction.

Filter for spin-down particles in the x direction.

Filter for spin-up particles in the z direction.

Filter for spin-down particles in the z direction.