Skip to contents

ctqwalk() creates a quantum walk object from a hamiltonian.

Usage

ctqwalk(hamiltonian, ...)

Arguments

hamiltonian

a Hermitian Matrix representing the Hamiltonian of the system.

...

further arguments passed on to spectral()

Value

A list with the walk related objects, i.e the hamiltonian and its spectral decomposition (See spectral() for further details)

Examples

# Creates a walk from the adjacency matrix of the graph P3.
ctqwalk(matrix(c(0,1,0,1,0,1,0,1,0), nrow=3))
#> Continuous-Time Quantum Walk
#> 
#> [+]Order: 3 
#> 
#> [+]Spectrum of the Hamiltonian:
#>                           
#> Eigenvalue:   1.41 0 -1.41
#> Multiplicity: 1.00 1  1.00