This directory contains small numerical scripts used to reproduce values quoted in the paper. Scripts should be executable from the repository root unless noted otherwise.
## Requirements
- Python 3
- NumPy
Install the only current dependency with:
```bash
python3 -m pip install numpy
```
## Current Scripts
### `tiles_upb.py`
Computes the two-qutrit Tiles unextendible-product-basis benchmark used in `paper/symmetric_shadow_maps_formal.tex`. The script uses Gell-Mann generators scaled so that `Tr(sigma_i sigma_j) = 3 delta_ij`, matching the paper's generator normalization.
Run from the repository root:
```bash
python3 scripts/tiles_upb.py
```
The script constructs the five Tiles UPB product vectors, forms the normalized projector onto their four-dimensional orthogonal complement, and prints:
- the UPB Gram matrix;
- the density-matrix trace, Hermiticity check, and spectrum;
- the partial-transpose spectrum and minimum eigenvalue;
- the shadow-map value `||M_A(rho)||_*`, normalized by `sqrt((3-1)(3-1)) = 2`;
- the CCNR/realignment trace norm for comparison.
The values used in `paper/symmetric_shadow_maps_formal.tex` are:
| quantity | value |
| --- | ---: |
| minimum eigenvalue of partial transpose | `-1.5922869149236308e-16` |
The tiny negative partial-transpose eigenvalue is numerical roundoff; the state is the standard PPT-entangled Tiles UPB state. The paper compares the normalized shadow-map value to the separability bound `<= 1`.
### `grraph_state_cuts.py`
Computes the cut-resolved bigraduated shadow-map values for the four-qubit ring graph state with edges `(1,2)`, `(2,3)`, `(3,4)`, `(4,1)`. Internally the script uses zero-based qubit labels.
Run from the repository root:
```bash
python3 scripts/grraph_state_cuts.py
```
The script constructs the graph state, computes its Pauli correlation tensor, forms the normalized `2|2` source-target unfoldings, and prints:
- the full normalized nuclear norm `||M_S||_*` for each cut;
- the normalized full-sector block, obtained by keeping only nonidentity Pauli labels on both source qubits and both target qubits;
- the eigenvalues of the two-qubit source marginal and its distance from the maximally mixed state.
The values used in `paper/symmetric_shadow_maps_formal.tex` are: