SyTen
parse_operator.cpp File Reference

Implementation for inc/btt/parse_operator.h. More...

+ Include dependency graph for parse_operator.cpp:

Namespaces

 syten
 The topmost namespace for this project.
 
 syten::BTT
 The namespace containing binary tree tensor networks.
 
 syten::BTT::ParseOperator
 Support classes and functions related to BTT operator parsing.
 

Functions

StackElementParser syten::BTT::ParseOperator::getFunction (std::string token)
 Return the function matching the token specified. More...
 
Operator syten::BTT::parse (Lattice const &lat, std::string const &desc)
 Parse an operator description. More...
 
Operator syten::BTT::parse (std::string const &desc)
 Parse a lattice:operator description. More...
 
Functions implementing operations on the parsing stack
void syten::BTT::ParseOperator::operatorF (std::stack< StackElement > &s, Lattice const &lat, Index position)
 Create a global operator from the topmost element: x_str|x_num|x_opr _o → x_opr More...
 
void syten::BTT::ParseOperator::siteF (std::stack< StackElement > &s, Lattice const &lat, Index position)
 Create a single-site operator from the two topmost elements: a_str b_str _s → a(b) More...
 
void syten::BTT::ParseOperator::sectorF (std::stack< StackElement > &s, Lattice const &lat, Index position)
 Create a sector from the topmost element: x_str → x_sec More...
 
void syten::BTT::ParseOperator::multF (std::stack< StackElement > &s, Lattice const &lat, Index position)
 Multiply the two topmost elements: a_opr|a_num b_opr|b_num → a * b, a is applied first. More...
 
void syten::BTT::ParseOperator::dotqF (std::stack< StackElement > &s, Lattice const &lat, Index position)
 Scalar product of two operators in the specified quantum number sector: a_opr b_opr q_sec → dot(a,b,q) More...
 
void syten::BTT::ParseOperator::dotF (std::stack< StackElement > &s, Lattice const &lat, Index position)
 Scalar product of two operators in the vacuum quantum number sector: a_opr b_opr _dot → dot(a,b), calls dotqF() if top of stack is sector. More...
 
void syten::BTT::ParseOperator::addF (std::stack< StackElement > &s, Lattice const &lat, Index position)
 Addition of two operators or two numbers: a_num b_num → a+b | a_opr b_opr → a+b More...
 

Detailed Description

Implementation for inc/btt/parse_operator.h.