exportState

Line3P.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^3\) element column vector in text format.
    • 'bin' - an \(N^3\) element PETSc binary vector.