Analyzer

This page is for the Analyzer base class and AnalyzerResult. For the implemented Analyzers see Analyzers.

class triqs_maxent.analyzers.analyzer.Analyzer(name=None, **kwargs)[source]

Bases: object

Analyzer base class

The base class for analyzing the values \(A_{\alpha}\) and getting the one true (\(\alpha\)-independent) solution from the data.

class triqs_maxent.analyzers.analyzer.AnalyzerResult[source]

Bases: dict

Keep the result of the analyzer

An analyzer gets the results of the MaxEnt optimization for different values of \(\alpha\) and outputs one single \(A(\omega)\). This inherits from dict, the most important keys are:

  • A_out : the output spectral function

  • name : the name of the analyzer

  • info : human-readable info about what the analyzer did

  • alpha_index : if applicable, the index of the best \(A(\omega)\)

plot_A_out(maxent_result=None, **kwargs)[source]

Plot the spectral function

Parameters:
maxent_resultMaxEntResult

the corresponding MaxEntResult, where the omega mesh etc. are saved. If None, AnalyzerResult.maxent_result has to be set.

labelstr

the label of the curve (for a legend)

x_labelstr

the label of the x-axis

y_labelstr

the label of the y-axis

log_xbool

whether the x-axis should be log-scaled (default: False)

log_ybool

whether the y-axis should be log-scaled (default: False)

plot_curvature(maxent_result=None, **kwargs)[source]

Plot the curvature of \(\log \chi^2\) vs \(\log \alpha\)

This is not available for all analyzers.

Parameters:
maxent_resultMaxEntResult

the corresponding MaxEntResult, where the omega mesh etc. are saved. If None, AnalyzerResult.maxent_result has to be set.

labelstr

the label of the curve (for a legend)

x_labelstr

the label of the x-axis

y_labelstr

the label of the y-axis

log_xbool

whether the x-axis should be log-scaled (default: False)

log_ybool

whether the y-axis should be log-scaled (default: False)

plot_dS_dalpha(maxent_result=None, **kwargs)[source]

Plot the derivative of the entropy with respect to \(\alpha\)

This is not available for all analyzers.

Parameters:
maxent_resultMaxEntResult

the corresponding MaxEntResult, where the omega mesh etc. are saved. If None, AnalyzerResult.maxent_result has to be set.

labelstr

the label of the curve (for a legend)

x_labelstr

the label of the x-axis

y_labelstr

the label of the y-axis

log_xbool

whether the x-axis should be log-scaled (default: True)

log_ybool

whether the y-axis should be log-scaled (default: False)

plot_linefit(maxent_result=None, element=None, **kwargs)[source]

Plot the fitted lines of \(\log \chi^2\) vs \(\log \alpha\)

This is not available for all analyzers.

Parameters:
maxent_resultMaxEntResult

the corresponding MaxEntResult, where the omega mesh etc. are saved. If None, AnalyzerResult.maxent_result has to be set.

labelstr

the label of the curve (for a legend)

x_labelstr

the label of the x-axis

y_labelstr

the label of the y-axis

log_xbool

whether the x-axis should be log-scaled (default: True)

log_ybool

whether the y-axis should be log-scaled (default: True)