Return all the operators for dimension n together with their domains and codomains.
>>> (operators(1) ==
... {'D': [('D0', (0, True), (1, True)),
... ('D0d', (0, False), (1, False))],
... 'H': [('H0', (0, True), (1, False)),
... ('H0d', (0, False), (1, True)),
... ('H1', (1, True), (0, False)),
... ('H1d', (1, False), (0, True))],
... 'P': [('P0', None, (0, True)),
... ('P0d', None, (0, False)),
... ('P1', None, (1, True)),
... ('P1d', None, (1, False))],
... 'R': [('R0', (0, True), None),
... ('R0d', (0, False), None),
... ('R1', (1, True), None),
... ('R1d', (1, False), None)]})
True
To install simply run:
pip install dec
or build from source:
git clone https://github.com/drufat/dec.git
cd dec
python setup.py install