Loading...
Searching...
No Matches
gpr::quantum::gaussian::TwistedRestrictedResult Struct Reference

#include <gpr/quantum/GaussianTwistedRestriction.h>

Public Member Functions

double logPositiveDensity (double hbar) const

Public Attributes

std::optional< double > logAbsNormalizedDet
Inertia inertia
Eigen::Index dimension {}
Eigen::Index codimension {}
double duration {}
std::size_t unresolvedBorderEigenvalues {}

Detailed Description

Definition at line 12 of file GaussianTwistedRestriction.h.

Member Function Documentation

◆ logPositiveDensity()

double gpr::quantum::gaussian::TwistedRestrictedResult::logPositiveDensity ( double hbar) const

Definition at line 21 of file GaussianTwistedRestriction.cpp.

22{
23 if (!(hbar > 0) || !std::isfinite(hbar))
24 throw std::invalid_argument("Expected finite positive hbar");
25 if (!logAbsNormalizedDet || !std::isfinite(*logAbsNormalizedDet) ||
26 inertia.negative || inertia.zero || unresolvedBorderEigenvalues ||
27 inertia.positive != static_cast<std::size_t>(dimension))
28 throw std::domain_error(
29 "Restricted twisted Gaussian is not resolved and positive");
30 return -.5 * *logAbsNormalizedDet -
31 .5 * codimension * std::log(2 * std::numbers::pi * hbar);
32}

Member Data Documentation

◆ codimension

Eigen::Index gpr::quantum::gaussian::TwistedRestrictedResult::codimension {}

Definition at line 16 of file GaussianTwistedRestriction.h.

16{};

◆ dimension

Eigen::Index gpr::quantum::gaussian::TwistedRestrictedResult::dimension {}

Definition at line 15 of file GaussianTwistedRestriction.h.

15{};

◆ duration

double gpr::quantum::gaussian::TwistedRestrictedResult::duration {}

Definition at line 17 of file GaussianTwistedRestriction.h.

17{};

◆ inertia

Inertia gpr::quantum::gaussian::TwistedRestrictedResult::inertia

Definition at line 14 of file GaussianTwistedRestriction.h.

◆ logAbsNormalizedDet

std::optional<double> gpr::quantum::gaussian::TwistedRestrictedResult::logAbsNormalizedDet

Definition at line 13 of file GaussianTwistedRestriction.h.

◆ unresolvedBorderEigenvalues

std::size_t gpr::quantum::gaussian::TwistedRestrictedResult::unresolvedBorderEigenvalues {}

Definition at line 18 of file GaussianTwistedRestriction.h.

18{};

The documentation for this struct was generated from the following files: