Uni20
Asynchronous tensor and runtime library.
Loading...
Searching...
No Matches
Public Member Functions | List of all members
uni20::QNumSpace Class Reference

Tensor space carrying one irreducible-representation label. More...

#include <qnum_space.hpp>

Public Member Functions

auto label () const -> std::string const &
 Return the semantic leg label.
 
auto operator== (QNumSpace const &other) const -> bool=default
 Compare irrep and label.
 
auto qnum () const -> QNum const &
 Return the irrep label.
 
 QNumSpace (QNum qnum, std::string label={})
 Construct a single-irrep space.
 
void set_label (std::string label)
 Replace the semantic leg label without changing the irrep.
 
auto symmetry () const -> Symmetry
 Return the symmetry of the irrep label.
 

Detailed Description

Tensor space carrying one irreducible-representation label.

Constructor & Destructor Documentation

◆ QNumSpace()

uni20::QNumSpace::QNumSpace ( QNum  qnum,
std::string  label = {} 
)
inlineexplicit

Construct a single-irrep space.

Parameters
qnumIrrep label and its required symmetry context.
labelSemantic leg label.

Member Function Documentation

◆ label()

auto uni20::QNumSpace::label ( ) const -> std::string const&
inline

Return the semantic leg label.

Returns
Label, which may be empty.

◆ operator==()

auto uni20::QNumSpace::operator== ( QNumSpace const &  other) const -> bool=default
default

Compare irrep and label.

Parameters
otherOther QNum space.
Returns
true when structure and label are equal.

◆ qnum()

auto uni20::QNumSpace::qnum ( ) const -> QNum const&
inline

Return the irrep label.

Returns
Stored quantum number.

◆ set_label()

void uni20::QNumSpace::set_label ( std::string  label)
inline

Replace the semantic leg label without changing the irrep.

Parameters
labelNew label.

◆ symmetry()

auto uni20::QNumSpace::symmetry ( ) const -> Symmetry
inline

Return the symmetry of the irrep label.

Returns
QNum-space symmetry.

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