Source code for qurry.qurrech.hadamard_test.analysis

"""EchoListenHadamard - Analysis (:mod:`qurry.qurrech.hadamard_test.analysis`)"""

from typing import NamedTuple, Iterable, Type

from ...qurrium.analysis import AnalysisPrototype


[docs] class ELHAnalysisInput(NamedTuple): """To set the analysis."""
[docs] class ELHAnalysisContent(NamedTuple): """The content of the analysis.""" echo: float """The purity of the system."""
[docs] class EchoListenHadamardAnalysis(AnalysisPrototype[ELHAnalysisInput, ELHAnalysisContent]): """The analysis for calculating entangled entropy with more information combined.""" __name__ = "ELHAnalysis"
[docs] @classmethod def input_type(cls) -> Type[ELHAnalysisInput]: """The input instance type.""" return ELHAnalysisInput
[docs] @classmethod def content_type(cls) -> Type[ELHAnalysisContent]: """The content instance type.""" return ELHAnalysisContent
@property def side_product_fields(self) -> Iterable[str]: """The fields that will be stored as side product.""" return []