GridFire 0.0.1a General Purpose Nuclear Network

Loading...
Searching...
No Matches
partition_types.h
Go to the documentation of this file.
1#pragma once
2
3#include <unordered_map>
4#include <string>
5
6 namespace gridfire::partition {
7
15 enum BasePartitionType {
16 RauscherThielemann,
17 GroundState,
18 };
19
28 inline std::unordered_map<BasePartitionType, std::string> basePartitionTypeToString = {
29 {RauscherThielemann, "RauscherThielemann"},
30 {GroundState, "GroundState"}
31 };
32
42 inline std::unordered_map<std::string, BasePartitionType> stringToBasePartitionType = {
43 {"RauscherThielemann", RauscherThielemann},
44 {"GroundState", GroundState}
45 };
46
47}
gridfire::partition
Definition partition_composite.h:15
gridfire::partition::stringToBasePartitionType
std::unordered_map< std::string, BasePartitionType > stringToBasePartitionType
Mapping from string to BasePartitionType enum.
Definition partition_types.h:42
gridfire::partition::basePartitionTypeToString
std::unordered_map< BasePartitionType, std::string > basePartitionTypeToString
Mapping from BasePartitionType enum to human-readable string.
Definition partition_types.h:28
gridfire::partition::BasePartitionType
BasePartitionType
Enumerates available partition function implementations.
Definition partition_types.h:15
gridfire::partition::RauscherThielemann
@ RauscherThielemann
Rauscher-Thielemann partition function.
Definition partition_types.h:16
gridfire::partition::GroundState
@ GroundState
Ground state partition function.
Definition partition_types.h:17