exportState

Graph2P.exportState(filename, filetype)

Exports the final state psi of the quantum walk to a file.

Parameters:
  • filename (str) – path to desired output file.
  • filetype (str) –

    the filetype of the exported adjacency matrix.

    • 'txt' - an \(N\times N\) 2D array in text format.
    • 'bin' - an \(N^2\) element PETSc binary vector.