Eötvös Quantum Utilities  v4.9.146
Providing the Horsepowers in the Quantum Realm
List of all members | Public Member Functions | Static Public Member Functions | Protected Attributes | Private Member Functions
CreateHamiltonians Class Reference

A class to create and store Hamiltonian of the scattering region. More...

Inheritance diagram for CreateHamiltonians:
Inheritance graph
[legend]

Public Member Functions

function ApplyOverlapMatrices (E)
 Applies the overlap matrices to the Hamiltonians: K = H-ES. More...
 
function Clear (MemberName)
 Clears the value of an attribute in the class. More...
 
function CreateClone (varargin)
 Creates a clone of the present class. More...
 
function CreateHamiltonians (Opt, param, varargin)
 Constructor of the class. More...
 
function CreateScatterH (varargin)
 Creates a Hamiltonian of a rectangle shaped area. More...
 
function display (message, nosilent)
 Displays output messages on the screen. More...
 
function getOpt ()
 Retrives the structure containing the calculation parameters. More...
 
function loadScatter (filename)
 Loads the Hamiltonian and other data of the scattering region from a file. More...
 
function projectHamiltonian2Spin (s)
 Projects the Hamiltonian to a spin states of $s=\pm1$. More...
 
function Read (MemberName)
 Query for the value of an attribute in the class. More...
 
function RemoveSites (indexes)
 Removes specific sites from the model of the scattering region. More...
 
function Reset ()
 Resets all elements in the class. More...
 
function saveScatter (filename)
 Saves the Hamiltonian and other data of the scattering region. More...
 
function shiftFermiEnergy (Energy)
 Shifts the on-site energies in the Scattering region by a given energy. More...
 
function Write (MemberName, input)
 Sets the value of an attribute in the class. More...
 

Static Public Member Functions

static function BadInputType (variable, type)
 Throws a "bad input type" warning, with using the default value. More...
 
static function BadInputTypeNoDefault (variable, type)
 Throws a "bad input type" warning without setting it to default. More...
 
static function ExceedIteration ()
 Throws an "iteration exceeded" warning. More...
 

Protected Attributes

Property coordinates
 An instance of the structure coordinates. More...
 
Property fazis_mtx_scatter
 The matrix of the Peierls phases. More...
 
Property fazis_mtx_scatter_t
 The matrix of the Peierls phases for the transverse coupling. More...
 
Property GaugeTransformationApplied
 A logical value. True if a gauge transformation was applied on the Hamiltonians, or false otherwise. More...
 
Property HamiltoniansCreated
 A logical value. True if the Hamiltonian was created, false otherwise. More...
 
Property HamiltoniansDecimated
 A logical value. True if the Hamiltonian was decimated, or false otherwise. More...
 
Property height
 The length of the scattering region in units of the lattice contant. More...
 
Property Hscatter
 The matrix of the Hamiltonian. More...
 
Property Hscatter_transverse
 The matrix of the Hamiltonian corresponding to the transverse coupling. More...
 
Property Kscatter
 Hscatter - E*Sscatter. More...
 
Property Kscatter_transverse
 Hscatter_transverse - E*Sscatter_transverse. More...
 
Property kulso_szabfokok
 A list of the sites to be kept after decimation. More...
 
Property M
 The number of sites in one unit cell. More...
 
Property MagneticFieldApplied
 A logical value. True if the vector potential was incorporated into the Hamiltonian or false otherwise. More...
 
Property Opt
 An instance of structure Opt. More...
 
Property OverlapApplied
 A logical value. True if the overlap integrals were applied, false otherwise. More...
 
Property param
 An instance of structure param. More...
 
Property q
 A transverse momentum. More...
 
Property Sscatter
 The matrix of the overlap integrals in the Hamiltonian. More...
 
Property Sscatter_transverse
 The matrix of the overlap integrals for the transverse coupling. More...
 
Property varargin
 list of optional parameters (see http://www.mathworks.com/help/matlab/ref/varargin.html for details) More...
 
Property width
 The number of sites in the cross section. More...
 

Private Member Functions

function Initialize ()
 Initializes object attributes. More...
 
function InputParsing (varargin)
 Parses the optional parameters for the class constructor. More...
 
function queryHamiltonians (cCustom_Hamiltonians)
 Obtains Hamiltonians from a class instance Custom_Hamiltonians. More...
 
function Transforms2BdG ()
 Transforms the Hamiltonians into a Bogoliubov de Gennes model. More...
 

Detailed Description

A class to create and store Hamiltonian of the scattering region.

Definition at line 24 of file CreateHamiltonians.m.

Constructor & Destructor Documentation

◆ CreateHamiltonians()

function CreateHamiltonians::CreateHamiltonians ( Opt  ,
param  ,
varargin   
)

Constructor of the class.

Parameters
OptAn instance of the structure Opt.
paramAn instance of structure param.
vararginCell array of optional parameters. For details see InputParsing.
Returns
An instance of the class

Member Function Documentation

◆ ApplyOverlapMatrices()

function CreateHamiltonians::ApplyOverlapMatrices ( )

Applies the overlap matrices to the Hamiltonians: K = H-ES.

Parameters
EThe energy value.

◆ BadInputType()

static function Messages::BadInputType ( variable  ,
type   
)
staticinherited

Throws a "bad input type" warning, with using the default value.

Parameters
variableA string conatining the name of the variable.
typeA string describing the desired type.

◆ BadInputTypeNoDefault()

static function Messages::BadInputTypeNoDefault ( variable  ,
type   
)
staticinherited

Throws a "bad input type" warning without setting it to default.

Parameters
variableA string conatining the name of the variable.
typeA string describing the desired type.

◆ Clear()

function CreateHamiltonians::Clear ( MemberName  )

Clears the value of an attribute in the class.

Parameters
MemberNameThe name of the attribute to be cleared.

◆ CreateClone()

function CreateHamiltonians::CreateClone ( varargin  )

Creates a clone of the present class.

Parameters
vararginCell array of optional parameters (https://www.mathworks.com/help/matlab/ref/varargin.html):
'empty'Set true to create an empty clone, or false (default) to clone all atributes.
Returns
Returns with the cloned object.

◆ CreateScatterH()

function CreateHamiltonians::CreateScatterH ( varargin  )

Creates a Hamiltonian of a rectangle shaped area.

The created Hamiltonian and coordinates are stored within the object.

Parameters
vararginCell array of optional parameters:
'Scatter_UC'An instance of class CreateLeadHamiltonians or its subclass
'CustomHamiltonian'An instance of class Custom_Hamiltonians for external Hamiltonian source.

◆ display()

function Messages::display ( message  ,
nosilent   
)
inherited

Displays output messages on the screen.

Parameters
messageString containing the message to be displayed
nosilentSet true to override the silent option given in Opt.Silent.

◆ ExceedIteration()

static function Messages::ExceedIteration ( )
staticinherited

Throws an "iteration exceeded" warning.

◆ getOpt()

function Messages::getOpt ( )
inherited

Retrives the structure containing the calculation parameters.

Returns
Return an instance of structure Opt.

◆ Initialize()

function CreateHamiltonians::Initialize ( )
private

Initializes object attributes.

◆ InputParsing()

function CreateHamiltonians::InputParsing ( varargin  )
private

Parses the optional parameters for the class constructor.

Parameters
vararginOptional parameters, see the web documantation.
'q'The transverse momentum quantum number.

◆ loadScatter()

function CreateHamiltonians::loadScatter ( filename  )

Loads the Hamiltonian and other data of the scattering region from a file.

Parameters
filenameThe string containing the path to the file. (In octave use absolute paths only)

◆ projectHamiltonian2Spin()

function CreateHamiltonians::projectHamiltonian2Spin ( )

Projects the Hamiltonian to a spin states of $s=\pm1$.

Parameters
sThe quantum index of the spin (\pm1)

◆ queryHamiltonians()

function CreateHamiltonians::queryHamiltonians ( cCustom_Hamiltonians  )
private

Obtains Hamiltonians from a class instance Custom_Hamiltonians.

Parameters
cCustom_HamiltoniansAn instance of class Custom_Hamiltonians

◆ Read()

function CreateHamiltonians::Read ( MemberName  )

Query for the value of an attribute in the class.

Parameters
MemberNameThe name of the attribute to be set.
Returns
Returns with the value of the attribute.

◆ RemoveSites()

function CreateHamiltonians::RemoveSites ( indexes  )

Removes specific sites from the model of the scattering region.

For example see function ScatterPotQD.

Parameters
indexesLogical array. Sites with true values will be removed from the system.

◆ Reset()

function CreateHamiltonians::Reset ( )

Resets all elements in the class.

◆ saveScatter()

function CreateHamiltonians::saveScatter ( filename  )

Saves the Hamiltonian and other data of the scattering region.

Parameters
filenameThe string containing the path to the file. (In octave use absolute paths only)

◆ shiftFermiEnergy()

function CreateHamiltonians::shiftFermiEnergy ( Energy  )

Shifts the on-site energies in the Scattering region by a given energy.

Parameters
EnergyThe energy value to be used.

◆ Transforms2BdG()

function CreateHamiltonians::Transforms2BdG ( )
private

Transforms the Hamiltonians into a Bogoliubov de Gennes model.

◆ Write()

function CreateHamiltonians::Write ( MemberName  ,
input   
)

Sets the value of an attribute in the class.

Parameters
MemberNameThe name of the attribute to be set.
inputThe value to be set.

Member Data Documentation

◆ coordinates

Property CreateHamiltonians::coordinates
protected

An instance of the structure coordinates.

Definition at line 61 of file CreateHamiltonians.m.

◆ fazis_mtx_scatter

Property CreateHamiltonians::fazis_mtx_scatter
protected

The matrix of the Peierls phases.

Definition at line 55 of file CreateHamiltonians.m.

◆ fazis_mtx_scatter_t

Property CreateHamiltonians::fazis_mtx_scatter_t
protected

The matrix of the Peierls phases for the transverse coupling.

Definition at line 58 of file CreateHamiltonians.m.

◆ GaugeTransformationApplied

Property CreateHamiltonians::GaugeTransformationApplied
protected

A logical value. True if a gauge transformation was applied on the Hamiltonians, or false otherwise.

Definition at line 85 of file CreateHamiltonians.m.

◆ HamiltoniansCreated

Property CreateHamiltonians::HamiltoniansCreated
protected

A logical value. True if the Hamiltonian was created, false otherwise.

Definition at line 73 of file CreateHamiltonians.m.

◆ HamiltoniansDecimated

Property CreateHamiltonians::HamiltoniansDecimated
protected

A logical value. True if the Hamiltonian was decimated, or false otherwise.

Definition at line 76 of file CreateHamiltonians.m.

◆ height

Property CreateHamiltonians::height
protected

The length of the scattering region in units of the lattice contant.

Definition at line 64 of file CreateHamiltonians.m.

◆ Hscatter

Property CreateHamiltonians::Hscatter
protected

The matrix of the Hamiltonian.

Definition at line 43 of file CreateHamiltonians.m.

◆ Hscatter_transverse

Property CreateHamiltonians::Hscatter_transverse
protected

The matrix of the Hamiltonian corresponding to the transverse coupling.

Definition at line 46 of file CreateHamiltonians.m.

◆ Kscatter

Property CreateHamiltonians::Kscatter
protected

Hscatter - E*Sscatter.

Definition at line 37 of file CreateHamiltonians.m.

◆ Kscatter_transverse

Property CreateHamiltonians::Kscatter_transverse
protected

Hscatter_transverse - E*Sscatter_transverse.

Definition at line 40 of file CreateHamiltonians.m.

◆ kulso_szabfokok

Property CreateHamiltonians::kulso_szabfokok
protected

A list of the sites to be kept after decimation.

Definition at line 34 of file CreateHamiltonians.m.

◆ M

Property CreateHamiltonians::M
protected

The number of sites in one unit cell.

Definition at line 70 of file CreateHamiltonians.m.

◆ MagneticFieldApplied

Property CreateHamiltonians::MagneticFieldApplied
protected

A logical value. True if the vector potential was incorporated into the Hamiltonian or false otherwise.

Definition at line 82 of file CreateHamiltonians.m.

◆ Opt

Property Messages::Opt
protectedinherited

An instance of structure Opt.

Definition at line 31 of file Messages.m.

◆ OverlapApplied

Property CreateHamiltonians::OverlapApplied
protected

A logical value. True if the overlap integrals were applied, false otherwise.

Definition at line 79 of file CreateHamiltonians.m.

◆ param

Property CreateHamiltonians::param
protected

An instance of structure param.

Definition at line 31 of file CreateHamiltonians.m.

◆ q

Property CreateHamiltonians::q
protected

A transverse momentum.

Definition at line 88 of file CreateHamiltonians.m.

◆ Sscatter

Property CreateHamiltonians::Sscatter
protected

The matrix of the overlap integrals in the Hamiltonian.

Definition at line 49 of file CreateHamiltonians.m.

◆ Sscatter_transverse

Property CreateHamiltonians::Sscatter_transverse
protected

The matrix of the overlap integrals for the transverse coupling.

Definition at line 52 of file CreateHamiltonians.m.

◆ varargin

Property CreateHamiltonians::varargin
protected

list of optional parameters (see http://www.mathworks.com/help/matlab/ref/varargin.html for details)

Definition at line 91 of file CreateHamiltonians.m.

◆ width

Property CreateHamiltonians::width
protected

The number of sites in the cross section.

Definition at line 67 of file CreateHamiltonians.m.


The documentation for this class was generated from the following file: