Used for arXiv:2410.18735 [quant-ph] https://arxiv.org/abs/2410.18735
Go to file
2025-03-31 15:41:57 +02:00
LICENSES Initial commit 2025-03-31 13:25:04 +02:00
src Initial commit 2025-03-31 13:25:04 +02:00
tools Initial commit 2025-03-31 13:25:04 +02:00
.gitignore Initial commit 2025-03-31 13:25:04 +02:00
Makefile Initial commit 2025-03-31 13:25:04 +02:00
README.md Improved 2025-03-31 15:41:57 +02:00

Superflow

To compile, simply run make.

The ./tools/ directory contains two python scripts with which we can transform the output of ./superflow to the DOT language for graph visualization. They require the NumPy package.

Usage

Usage: ./superflow [-o | -d]
Reads adjacency vector of a simple digraph from stdin, and
  -o    [o]utputs the superflow to stdout,
  -d    [d]ecides if the superflow has nontrivial leafs.

All adjacency vectors are encoded as follows. An entry 1 in
coordinate (u,v) denotes the presence of the arc u<-v. An entry 0 at
said coordinate, denotes the absence of the arc u<-v. The
coordinates are ordered lexicographically, with the entries (u,u)
missing.

When using the -o option, the output as follows:
<adjacency vector of superflow digraph>
<vertex lables of causal structure 0>:<adjacency vector 0>
<vertex labels of causal structure 1>:<adjacency vector 1>
...
<vertex labels of causal structure k>:<adjacency vector k>

When using the -d option, the output is informative. Additionally,
the return code is 0 if all leafs are trivial, and 1 otherwise.

LIMITATION: The input graph has at most 9 vertices.

License

GPL-3.0-or-later