exportState

Graph.exportState(filename, filetype)

Exports the final state 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\) element column vector in text format.
    • 'bin' - an \(N\) element PETSc binary vector.