Physlib

PhyslibAlpha.ProbabilisticTheory.Examples.Square

The square

i. Overview

The square is the simplest state space that is not a simplex: it has four pure states, the vertices, and the two diagonals of the square have the same midpoint. Its observables are the affine functions on the square, recorded by their values at the four vertices `0, 1, 2, 3`, with the diagonal relation `v 0 + v 3 = v 1 + v 2`. An observable is nonnegative when all four values are.

The nonnegative observables are generated by the four facets: the affine functions that vanish on one side of the square. An observable of the composite of `E` with the square is recorded by its four vertex values in `E`, which again satisfy the diagonal relation.

ii. Key results

- `Square` : the observables of the square, an order-unit space. - `Square.facet` : the four facets. - `Square.exists_eq_sum_facet` : every nonnegative observable is a nonnegative combination of facets. - `Square.vals` : the vertex values of an observable of `E ⊗ Square`. - `Square.vals_injective` : vertex values determine the observable.

iii. Table of contents

  • A. The square
  • B. Facets
  • C. Vertex values of composite observables

A. The square

B. Facets

C. Vertex values of composite observables

37 declarations

definition

Subspace of vertex values satisfying v0+v3=v1+v2v_0 + v_3 = v_1 + v_2

The `squareSubmodule` is the R\mathbb{R}-linear subspace of R4\mathbb{R}^4 (represented as functions v:{0,1,2,3}→Rv: \{0, 1, 2, 3\} \to \mathbb{R}) consisting of vectors whose components satisfy the diagonal relation v0+v3=v1+v2v_0 + v_3 = v_1 + v_2. This subspace represents the observables of a square state space, where the values at the four vertices are constrained by the equality of the sums of opposite vertices.

definition

Space of square observables satisfying v0+v3=v1+v2v_0 + v_3 = v_1 + v_2

The type `Square` represents the space of observables on a square state space. It is defined as the R\mathbb{R}-linear subspace of functions v:{0,1,2,3}→Rv: \{0, 1, 2, 3\} \to \mathbb{R} (elements of R4\mathbb{R}^4) that satisfy the diagonal relation v0+v3=v1+v2v_0 + v_3 = v_1 + v_2. These functions correspond to affine functions on the square, uniquely determined by their values at the four vertices.

instance

`Square` is an additive commutative group

The space `Square`, consisting of observables v:{0,1,2,3}→Rv: \{0, 1, 2, 3\} \to \mathbb{R} that satisfy the diagonal relation v0+v3=v1+v2v_0 + v_3 = v_1 + v_2, forms an additive commutative group.

instance

`Square` is a module over R\mathbb{R}

The type `Square`, representing the space of observables on a square state space satisfying the diagonal relation v0+v3=v1+v2v_0 + v_3 = v_1 + v_2, carries the structure of a module (vector space) over the real numbers R\mathbb{R}.

definition

Value of square observable qq at vertex ii

For an observable qq in the space `Square` and a vertex index i∈{0,1,2,3}i \in \{0, 1, 2, 3\}, this function returns the value of the observable at the ii-th vertex. The space `Square` is the R\mathbb{R}-linear subspace of functions v:{0,1,2,3}→Rv: \{0, 1, 2, 3\} \to \mathbb{R} that satisfy the diagonal relation v0+v3=v1+v2v_0 + v_3 = v_1 + v_2.

definition

Square\text{Square} observable from vertex values vv satisfying v0+v3=v1+v2v_0 + v_3 = v_1 + v_2

Given a function v:{0,1,2,3}→Rv: \{0, 1, 2, 3\} \to \mathbb{R} that satisfies the diagonal relation v0+v3=v1+v2v_0 + v_3 = v_1 + v_2, this definition constructs the unique observable in the space Square\text{Square} whose values at the vertices are given by vv.

theorem

The value of a constructed square observable at vertex ii is viv_i

For any function v:{0,1,2,3}→Rv: \{0, 1, 2, 3\} \to \mathbb{R} satisfying the diagonal relation v0+v3=v1+v2v_0 + v_3 = v_1 + v_2, let qq be the observable in the space Square\text{Square} constructed from vv. Then for any index i∈{0,1,2,3}i \in \{0, 1, 2, 3\}, the value of the observable qq at the ii-th vertex is equal to viv_i.

theorem

∀i,q.val(i)=r.val(i)  ⟹  q=r\forall i, q.\text{val}(i) = r.\text{val}(i) \implies q = r for Square\text{Square} Observables

Let qq and rr be observables in the space Square\text{Square}. If q.val(i)=r.val(i)q.\text{val}(i) = r.\text{val}(i) for all vertex indices i∈{0,1,2,3}i \in \{0, 1, 2, 3\}, then q=rq = r. Here, Square\text{Square} is the space of affine functions on a square determined by their values at four vertices satisfying the diagonal relation v0+v3=v1+v2v_0 + v_3 = v_1 + v_2, and q.val(i)q.\text{val}(i) denotes the value of the observable at the ii-th vertex.

theorem

Diagonal Relation v0+v3=v1+v2v_0 + v_3 = v_1 + v_2 for Square Observables

For any observable qq in the space `Square`, the values q(i)q(i) at the four vertices i∈{0,1,2,3}i \in \{0, 1, 2, 3\} satisfy the diagonal relation: q(0)+q(3)=q(1)+q(2).q(0) + q(3) = q(1) + q(2). This relation characterizes the affine functions on a square state space, where the vertices 00 and 33 are opposite to each other, as are the vertices 11 and 22.

theorem

(q+r).val i=q.val i+r.val i(q + r).val \ i = q.val \ i + r.val \ i

For any observables qq and rr in the space `Square` (the space of affine functions on a square determined by their values at the vertices {0,1,2,3}\{0, 1, 2, 3\} satisfying v0+v3=v1+v2v_0 + v_3 = v_1 + v_2) and for any vertex index i∈{0,1,2,3}i \in \{0, 1, 2, 3\}, the value of the sum of the observables at vertex ii is equal to the sum of their individual values at that vertex: (q+r).val(i)=q.val(i)+r.val(i)(q + r).val(i) = q.val(i) + r.val(i).

theorem

(c⋅q).val(i)=c⋅q.val(i)(c \cdot q).\text{val}(i) = c \cdot q.\text{val}(i)

For any real number c∈Rc \in \mathbb{R}, any observable qq in the space Square\text{Square} (the space of affine functions on a square satisfying the diagonal relation v0+v3=v1+v2v_0 + v_3 = v_1 + v_2), and any vertex index i∈{0,1,2,3}i \in \{0, 1, 2, 3\}, the value of the scalar product c⋅qc \cdot q at vertex ii is equal to cc multiplied by the value of qq at vertex ii: (c⋅q).val(i)=c⋅q.val(i).(c \cdot q).\text{val}(i) = c \cdot q.\text{val}(i).

theorem

The value of the zero observable at vertex ii is 00

For any vertex i∈{0,1,2,3}i \in \{0, 1, 2, 3\}, the value of the zero observable 00 in the space `Square` at vertex ii is 00.

instance

Partial order on Square\text{Square} based on vertex values

The space of square observables Square\text{Square} is equipped with a partial order. For any two observables q,r∈Squareq, r \in \text{Square}, the relation q≤rq \le r holds if and only if the value of qq is less than or equal to the value of rr at each vertex i∈{0,1,2,3}i \in \{0, 1, 2, 3\}, i.e., q.val i≤r.val iq.\text{val } i \le r.\text{val } i for all ii.

theorem

q≤r  ⟺  ∀i,q(i)≤r(i)q \le r \iff \forall i, q(i) \le r(i) in the space of square observables

Let Square\text{Square} be the space of observables on a square, where each observable q∈Squareq \in \text{Square} is characterized by its values q(i)q(i) at the vertices i∈{0,1,2,3}i \in \{0, 1, 2, 3\} satisfying the diagonal relation q(0)+q(3)=q(1)+q(2)q(0) + q(3) = q(1) + q(2). For any two observables q,r∈Squareq, r \in \text{Square}, the relation q≤rq \le r holds if and only if q(i)≤r(i)q(i) \le r(i) for all i∈{0,1,2,3}i \in \{0, 1, 2, 3\}.

instance

Square\text{Square} is an ordered additive monoid

The space of square observables Square\text{Square} forms an ordered additive monoid. This means that the partial order on Square\text{Square} is compatible with addition: for any observables q,r,s∈Squareq, r, s \in \text{Square}, if q≤rq \le r, then q+s≤r+sq + s \le r + s. The addition and the partial order are defined pointwise at the four vertices {0,1,2,3}\{0, 1, 2, 3\}.

instance

Scalar multiplication by c≥0c \ge 0 is monotonic on Square\text{Square}

In the space of square observables Square\text{Square}, scalar multiplication by non-negative real numbers preserves the partial order. Specifically, for any real number c≥0c \ge 0 and any observables q,r∈Squareq, r \in \text{Square}, if q≤rq \le r, then c⋅q≤c⋅rc \cdot q \le c \cdot r. Here, the space Square\text{Square} consists of functions v:{0,1,2,3}→Rv: \{0, 1, 2, 3\} \to \mathbb{R} satisfying v0+v3=v1+v2v_0 + v_3 = v_1 + v_2, and the order q≤rq \le r is defined pointwise as q(i)≤r(i)q(i) \le r(i) for all i∈{0,1,2,3}i \in \{0, 1, 2, 3\}.

instance

The constant function 11 in Square\text{Square}

The unit 11 in the space of observables Square\text{Square} is defined as the unique observable whose value at each of the four vertices {0,1,2,3}\{0, 1, 2, 3\} is equal to 11. This constant function satisfies the diagonal relation 1+1=1+11 + 1 = 1 + 1.

theorem

The value of 1∈Square1 \in \text{Square} at vertex ii is 11

For any vertex i∈{0,1,2,3}i \in \{0, 1, 2, 3\}, the value of the unit observable 11 in the space Square\text{Square} at that vertex is 11.

instance

Square\text{Square} is an order-unit space with unit 11

The space of square observables Square\text{Square}, consisting of functions v:{0,1,2,3}→Rv: \{0, 1, 2, 3\} \to \mathbb{R} satisfying the diagonal relation v0+v3=v1+v2v_0 + v_3 = v_1 + v_2, is an order-unit space. The constant function 11 (mapping each vertex to 11) serves as the order unit. This implies that 11 is non-negative (1≥01 \ge 0) and that for any observable q∈Squareq \in \text{Square}, there exists a natural number nn such that q≤n⋅1q \le n \cdot 1 holds under the pointwise partial order on the vertices.

instance

Square\text{Square} is an Archimedean order-unit space

The space of square observables Square\text{Square} is an Archimedean order-unit space. In this space, the order unit 11 is the constant function mapping each vertex to 11. The Archimedean property ensures that for any observable q∈Squareq \in \text{Square}, if q≤ϵ⋅1q \le \epsilon \cdot 1 for all real ϵ>0\epsilon > 0, then q≤0q \le 0 under the pointwise partial order on the vertices.

definition

Evaluation map evi\text{ev}_i at the ii-th vertex

For a vertex index i∈{0,1,2,3}i \in \{0, 1, 2, 3\}, the function evi:Square→R\text{ev}_i: \text{Square} \to \mathbb{R} is the positive linear map that sends an observable qq to its value at the ii-th vertex, q.val(i)q.\text{val}(i). This map corresponds to a pure state of the square state space.

theorem

evi(q)=q.val(i)\text{ev}_i(q) = q.\text{val}(i)

For any vertex index i∈{0,1,2,3}i \in \{0, 1, 2, 3\} and any observable q∈Squareq \in \text{Square}, the evaluation map evi\text{ev}_i applied to qq yields the value of qq at the ii-th vertex, i.e., evi(q)=q.val(i)\text{ev}_i(q) = q.\text{val}(i).

definition

The four facet observables of the square

The function facet:{0,1,2,3}→Square\text{facet}: \{0, 1, 2, 3\} \to \text{Square} defines four specific observables on the square state space, where each facet(j)\text{facet}(j) is an affine function determined by its values at the four vertices. Specifically: - facet(0)\text{facet}(0) has vertex values (0,1,0,1)(0, 1, 0, 1) and vanishes on vertices 00 and 22. - facet(1)\text{facet}(1) has vertex values (0,0,1,1)(0, 0, 1, 1) and vanishes on vertices 00 and 11. - facet(2)\text{facet}(2) has vertex values (1,0,1,0)(1, 0, 1, 0) and vanishes on vertices 11 and 33. - facet(3)\text{facet}(3) has vertex values (1,1,0,0)(1, 1, 0, 0) and vanishes on vertices 22 and 33.

theorem

The facet observables of the square are non-negative (facet(j)≥0\text{facet}(j) \ge 0)

For any index j∈{0,1,2,3}j \in \{0, 1, 2, 3\}, the facet observable facet(j)\text{facet}(j) of the square state space is non-negative, meaning 0≤facet(j)0 \le \text{facet}(j). According to the partial order on the space of square observables, this implies that the value of facet(j)\text{facet}(j) at each vertex i∈{0,1,2,3}i \in \{0, 1, 2, 3\} is greater than or equal to zero.

theorem

The value of a sum of observables at a vertex ii is the sum of their individual values at ii

For any collection of observables qj∈Squareq_j \in \text{Square} indexed by j∈{0,1,2,3}j \in \{0, 1, 2, 3\} and any vertex i∈{0,1,2,3}i \in \{0, 1, 2, 3\}, the value of the sum of the observables at vertex ii is equal to the sum of the individual values of each observable at that vertex. That is, (∑j=03qj)(i)=∑j=03qj(i) \left( \sum_{j=0}^3 q_j \right)(i) = \sum_{j=0}^3 q_j(i) where q(i)q(i) denotes the value of the observable qq at the ii-th vertex of the square.

theorem

Every non-negative observable q∈Squareq \in \text{Square} is a non-negative combination of facets

Let qq be an observable on the square state space, which is characterized by its values at the four vertices {0,1,2,3}\{0, 1, 2, 3\} satisfying the diagonal relation q(0)+q(3)=q(1)+q(2)q(0) + q(3) = q(1) + q(2). If qq is non-negative (meaning q(i)≥0q(i) \ge 0 for all i∈{0,1,2,3}i \in \{0, 1, 2, 3\}), then there exist non-negative real coefficients cj≥0c_j \ge 0 for j∈{0,1,2,3}j \in \{0, 1, 2, 3\} such that qq can be expressed as a linear combination of the four facet observables facetj\text{facet}_j: q=∑j=03cj⋅facetj q = \sum_{j=0}^3 c_j \cdot \text{facet}_j

definition

Vertex values map vals:E⊗Square→E4\text{vals} : E \otimes \text{Square} \to E^4

The linear map vals:E⊗RSquare→({0,1,2,3}→E)\text{vals} : E \otimes_{\mathbb{R}} \text{Square} \to (\{0, 1, 2, 3\} \to E) associates an observable zz in the composite system E⊗RSquareE \otimes_{\mathbb{R}} \text{Square} with its values at the four vertices of the square. For a basic tensor x⊗qx \otimes q, the value at vertex i∈{0,1,2,3}i \in \{0, 1, 2, 3\} is q(i)⋅xq(i) \cdot x, where q(i)q(i) is the value of the square observable qq at that vertex. The resulting values in EE satisfy the diagonal relation vals(z)0+vals(z)3=vals(z)1+vals(z)2\text{vals}(z)_0 + \text{vals}(z)_3 = \text{vals}(z)_1 + \text{vals}(z)_2.

theorem

vals(x⊗q)i=q(i)⋅x\text{vals}(x \otimes q)_i = q(i) \cdot x

Let EE be a real vector space. For any element x∈Ex \in E and any observable q∈Squareq \in \text{Square}, the vertex values of the elementary tensor x⊗qx \otimes q at each vertex i∈{0,1,2,3}i \in \{0, 1, 2, 3\} are given by the scalar multiplication of xx by the value of qq at that vertex: vals(x⊗q)i=q(i)⋅x\text{vals}(x \otimes q)_i = q(i) \cdot x

theorem

Diagonal Relation for Vertex Values in E⊗SquareE \otimes \text{Square}

Let EE be a real vector space. For any composite observable z∈E⊗RSquarez \in E \otimes_{\mathbb{R}} \text{Square}, let vals(z)i∈E\text{vals}(z)_i \in E denote the value of the observable at the ii-th vertex for i∈{0,1,2,3}i \in \{0, 1, 2, 3\}. These vertex values satisfy the diagonal relation: vals(z)0+vals(z)3=vals(z)1+vals(z)2 \text{vals}(z)_0 + \text{vals}(z)_3 = \text{vals}(z)_1 + \text{vals}(z)_2

definition

Composite observable in E⊗SquareE \otimes \text{Square} from vertex values AiA_i

Given a real vector space EE and a function A:{0,1,2,3}→EA: \{0, 1, 2, 3\} \to E representing values at the vertices of a square, this definition constructs a composite observable in the tensor product E⊗RSquareE \otimes_{\mathbb{R}} \text{Square}. The construction is defined as: A0⊗1+(A1−A0)⊗facet0+(A2−A0)⊗facet1 A_0 \otimes 1 + (A_1 - A_0) \otimes \text{facet}_0 + (A_2 - A_0) \otimes \text{facet}_1 where 11 is the identity observable and facet0,facet1\text{facet}_0, \text{facet}_1 are specific facet observables of the square. Because observables of the square must satisfy the diagonal relation v0+v3=v1+v2v_0 + v_3 = v_1 + v_2, the resulting composite observable is uniquely determined by the values at vertices 0,1,0, 1, and 22, while the value A3A_3 provided in the input is ignored.

theorem

Additivity of the `ofVals` map for square observables (ofVals(A+B)=ofValsA+ofValsB\text{ofVals}(A + B) = \text{ofVals} A + \text{ofVals} B)

Let EE be a real vector space. For any two functions A,B:{0,1,2,3}→EA, B: \{0, 1, 2, 3\} \to E that assign values to the vertices of a square, the mapping `ofVals` (which constructs a composite observable in E⊗RSquareE \otimes_{\mathbb{R}} \text{Square}) is additive, such that ofVals(A+B)=ofVals(A)+ofVals(B)\text{ofVals}(A + B) = \text{ofVals}(A) + \text{ofVals}(B).

theorem

ofVals(vals z)=z\text{ofVals}(\text{vals } z) = z for square observables

Let EE be a real vector space and z∈E⊗RSquarez \in E \otimes_{\mathbb{R}} \text{Square} be a composite observable. Mapping zz to its values at the four vertices of the square and then reconstructing an observable from these values using ofVals\text{ofVals} recovers the original observable zz. That is, ofVals(vals(z))=z \text{ofVals}(\text{vals}(z)) = z

theorem

vals(ofVals(A))=A\text{vals}(\text{ofVals}(A)) = A for vertex values satisfying the diagonal relation

Let EE be a real vector space and let A:{0,1,2,3}→EA: \{0, 1, 2, 3\} \to E be a function assigning values to the four vertices of a square. If the values AiA_i satisfy the diagonal relation A0+A3=A1+A2A_0 + A_3 = A_1 + A_2, then extracting the vertex values from the composite observable constructed from AA yields the original values. That is, vals(ofVals(A))=A\text{vals}(\text{ofVals}(A)) = A.

theorem

The vertex values map vals\text{vals} is injective

Let EE be a real vector space and Square\text{Square} be the space of observables on a square state space, represented by the R\mathbb{R}-linear subspace of functions v:{0,1,2,3}→Rv: \{0, 1, 2, 3\} \to \mathbb{R} satisfying the diagonal relation v0+v3=v1+v2v_0 + v_3 = v_1 + v_2. The linear map vals:E⊗RSquare→E4\text{vals} : E \otimes_{\mathbb{R}} \text{Square} \to E^4, which assigns to each composite observable its values at the four vertices of the square, is injective.

theorem

(lslice ϕ z)i=ϕ(vals z)i(\text{lslice} \, \phi \, z)_i = \phi(\text{vals} \, z)_i for square observables

Let EE be an order-unit space and let Square\text{Square} be the space of observables on a square (affine functions determined by values at vertices i∈{0,1,2,3}i \in \{0, 1, 2, 3\} satisfying the diagonal relation). For any positive linear functional ϕ:E→R\phi: E \to \mathbb{R} and any composite observable z∈E⊗RSquarez \in E \otimes_{\mathbb{R}} \text{Square}, the value of the sliced observable lslice(ϕ,z)∈Square\text{lslice}(\phi, z) \in \text{Square} at vertex ii is equal to the functional ϕ\phi applied to the ii-th vertex value of zz. That is, (lslice(ϕ,z))i=ϕ(vals(z)i)(\text{lslice}(\phi, z))_i = \phi(\text{vals}(z)_i) where vals(z)i∈E\text{vals}(z)_i \in E denotes the value of the tensor zz at the ii-th vertex.

theorem

Non-negative vertex values imply z∈maxTensorConez \in \text{maxTensorCone}

Let EE be an ordered real vector space and Square\text{Square} be the space of observables on a square (functions v:{0,1,2,3}→Rv: \{0, 1, 2, 3\} \to \mathbb{R} satisfying v0+v3=v1+v2v_0 + v_3 = v_1 + v_2). For any composite observable z∈E⊗RSquarez \in E \otimes_{\mathbb{R}} \text{Square}, if the values at each vertex i∈{0,1,2,3}i \in \{0, 1, 2, 3\} are non-negative, i.e., vals(z)i≥0\text{vals}(z)_i \ge 0 for all ii, then zz belongs to the maximal tensor cone maxTensorCone(E,Square)\text{maxTensorCone}(E, \text{Square}).

theorem

z∈maxTensorCone(E,Square)  ⟺  ∀i,vals(z)i≥0z \in \text{maxTensorCone}(E, \text{Square}) \iff \forall i, \text{vals}(z)_i \ge 0

Let EE be an Archimedean order-unit space. For any element zz in the composite system E⊗RSquareE \otimes_{\mathbb{R}} \text{Square}, zz belongs to the maximal tensor cone of E⊗RSquareE \otimes_{\mathbb{R}} \text{Square} if and only if all its vertex values vals(z)i\text{vals}(z)_i (for i∈{0,1,2,3}i \in \{0, 1, 2, 3\}) are non-negative in EE.