is_unextendible_product_basis
¶
Check if a set of states form an unextendible product basis.
is_unextendible_product_basis
¶
is_unextendible_product_basis(
vecs: list[ndarray], dims: list[int]
) -> tuple[bool, ndarray | None]
Check if a set of vectors form an unextendible product basis (UPB) 1.
Consider a multipartite quantum system \(\mathcal{H} = \bigotimes_{i=1}^{m} \mathcal{H}_{i}\) with \(m\)
parties with respective dimensions \(d_i, i = 1, 2, ..., m\). An (incomplete orthogonal) product basis (PB) is a
set \(S\) of pure orthogonal product states spanning a proper subspace \(\mathcal{H}_S\) of
\(\mathcal{H}\). An unextendible product basis (UPB) is a PB whose complementary subspace
\(\mathcal{H}_S-\mathcal{H}\) contains no product state. This function is inspired from IsUPB in
2.
Parameters:
-
vecs(list[ndarray]) –The list of states.
-
dims(list[int]) –The list of dimensions.
Returns:
-
bool–Returns a tuple. The first element is
Trueif input is a UPB andFalseotherwise. The second element is a -
ndarray | None–witness (a product state orthogonal to all the input vectors) if the input is a PB and
Noneotherwise.
Raises:
-
ValueError–If product of dimensions does not match the size of a vector.
-
ValueError–If at least one vector is not a product state.
Examples:
See tile(). All the states together form a UPB:
import numpy as np
from toqito.states import tile
from toqito.state_props import is_unextendible_product_basis
upb_tiles = np.array([tile(i) for i in range(5)])
dims = np.array([3, 3])
print(is_unextendible_product_basis(upb_tiles, dims))
However, the first 4 do not:
import numpy as np
from toqito.states import tile
from toqito.state_props import is_unextendible_product_basis
non_upb_tiles = np.array([tile(i) for i in range(4)])
dims = np.array([3, 3])
print(is_unextendible_product_basis(non_upb_tiles, dims))
(False, array([-0.00000000e+00, 0.00000000e+00, 0.00000000e+00, -0.00000000e+00, 0.00000000e+00, 0.00000000e+00, -1.11022302e-16, 7.07106781e-01,
7.07106781e-01]))
The orthogonal state is given by
References
1 Bennett, Charles and DiVincenzo, David and Mor, Tal and Shor, Peter and Smolin, John and Terhal, Barbara. Unextendible Product Bases and Bound Entanglement. Physical Review Letters. vol. 82(26). (1999). doi:10.1103/physrevlett.82.5385.
2 Johnston, Nathaniel. {{QETLAB}: {A MATLAB} toolbox for quantum entanglement}. doi:10.5281/zenodo.44637.
Source code in toqito/state_props/is_unextendible_product_basis.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 | |