dwavesystems / dwavesystems/dwave-graphs
unexpected output from chimera/pegasus/zephyr_coordinates
Open
- Dominant language
- Python
- Stars
- 95
- Forks
- 62
- Avg merge
- 7d 18h
- Merged PRs (30d)
- 1
Description
**Description**
`zephyr_coordinates.linear_to_zephyr` and `zephyr_coordinates.zephyr_to_linear` do not raise `ValueError` for invalid inputs. Similarly for `chimera_coordinates` and `pegasus_coordinates`.
**To Reproduce**
```
import dwave_networkx as dnx
Z3 = dnx.zephyr_graph(m=3, t=4)
1000 in Z3.nodes()
```
returns `False`. However,
`dnx.zephyr_coordinates(m=3, t=4).linear_to_zephyr(1000)`
returns `(5, 6, 2, 1, 1)`, which is not a valid Zephyr coordinate.
**Expected behavior**
I expect invalid input to raise `ValueError`.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.