hqs_quantum_solver.struqture

Contents

hqs_quantum_solver.struqture#

Interface to Struqture.

Struqture is a library for describing quantum mechanical operators, Hamiltonians and open quantum systems.

Functions

to_spin_input(*, M[, spin_representation])

Convert a Struqture operator to a SpinInput.

to_spin_input(*, M: int, spin_representation: int = 1, Sz: int, mod_Sz: int, struqture_operator: PlusMinusOperator | SpinHamiltonianSystem | SpinSystem) SpinInput#

Convert a Struqture operator to a SpinInput.

Parameters:
  • M (int) – the number of sites.

  • spin_representation (int) – the spin representation / spin quantum number, s, in units of ħ/2, i.e. an integer. If not specified it defaults to 1 (i.e. spin-1/2).

  • Sz (int) – The total spin polarization in the z-axis, Sz, in units of ħ/2. abs(Sz) must be less than or equal to the number of sites times the spin representation, M * spin_representation. Defaults to 2.

  • mod_Sz (int) – Integer representing the extent of Sz violations allowed (in modular arithmetic). In the presence of a transverse magnetic field (Bx 0 and/or By 0), Sz is no longer a good quantum number. In order to allow for breaking this symmetry mod_Sz to be a positive even integer. For example, mod_Sz=2 allows eigenstates to be a superposition of states differing by single or multiple spin flips. A value of mod_Sz=0 enforces conservation (even if it is not reasonable).

  • struqture_operator (PlusMinusOperator | SpinHamiltonianSystem | SpinSystem) – The Struqture operator.