Spin-1/2 particle in a 1D box

See also: the infinite square well.
Consider the QM formulation of a particle in a 1-dimensional box [0,L]. We have a state vector |Ψ, that can be formally written in the basis of "pure positions" |x as

|Ψ=0Lψ(x)|xdx.

The function ψ(x) is telling to us the probability amplitude of the particle being located at x.
Consider now that we add a new "continuous" degree of freedom, as another spatial dimension y. Then we would have

|Ψ=Rψ(x,y)|x,ydxdy,

where R is a rectangle in (x,y).
But what if the new degree of freedom is discrete. For example, if the particle has half integer spin. Quantum mechanics naturally accommodates both continuous and discrete degrees of freedom within the formalism of Hilbert spaces. When a system has both a continuous variable x and a discrete variable s, the total Hilbert space is the tensor product of the corresponding Hilbert spaces for each degree of freedom.

H=L2([0,L])C2.

This means that a general state vector |Ψ in this space is written as:

|Ψ=s=1,10Lψs(x)|x,sdx,

where ψs(x) are functions associated with each discrete value of s, and |x,s=|x|s forms a basis.

Wavefunction Representation

Since the total state is expanded in terms of the basis states |x,s, we can define the wavefunction representation as:

ψ(x,s)=x,s|Ψ.

This can be interpreted as if the wavefunction now has two components, one for each value of s:

ψ(x,1),ψ(x,1).

So, instead of a single wavefunction ψ(x), we now have a two-component wavefunction, often written as a column vector:

Ψ(x)=(ψ1(x)ψ1(x)).

For example, if we consider a particle in a 1D box with an internal spin degree of freedom, the wavefunction satisfies:

Ψ(x)=(ψ1(x)ψ1(x)).

This is precisely what it is called, in some contexts, an spinor. So all the stuff about spinors is, indeed, encoding the fact that the domain of the wavefunction of a particle with spin-1/2 is, in a sense, "semidiscrete".