Convert a 4-term Pegasus coordinate into a linear index.
q (4-tuple) – Pegasus indices.
Examples
>>> dnx.pegasus_coordinates(2).pegasus_to_linear((0, 0, 4, 0)) 4