‣ ExportAsQGraphString ( morphism ) | ( function ) |
Returns: a JSON string
Takes a morphism in a category of ZX-diagrams and exports the morphism as a JSON string. This function is only available if the package json
is available. See https://github.com/Quantomatic/quantomatic/blob/stable/docs/json_formats.txt for an overview of the qgraph format.
‣ ExportAsQGraphFile ( morphism, filename ) | ( function ) |
Takes a morphism in a category of ZX-diagrams and a filename file and exports the morphism to file. This function is only available if the package json
is available. See https://github.com/Quantomatic/quantomatic/blob/stable/docs/json_formats.txt for an overview of the qgraph format.
‣ ImportFromQGraphString ( category, string ) | ( function ) |
Returns: a morphism
Takes a category of ZX-diagrams and a JSON string describing a ZX-diagram and imports the ZX-diagram as a morphism. This function is only available if the package json
is available. See https://github.com/Quantomatic/quantomatic/blob/stable/docs/json_formats.txt for an overview of the qgraph format.
‣ ImportFromQGraphFile ( category, filename ) | ( function ) |
Returns: a morphism
Takes a category of ZX-diagrams and a filename file and imports the ZX-diagram in file as a morphism. This function is only available if the package json
is available. See https://github.com/Quantomatic/quantomatic/blob/stable/docs/json_formats.txt for an overview of the qgraph format.
generated by GAPDoc2HTML