Kernels

class Kernels

Compiled native evaluator owners. Each session owns one lazy execution context.

Attributes

Name Description
backend
compilation_settings
components
content_id
exact_coefficients
orders
parameters_bound
runtime_parameters
sector_count
sector_statistics Actual complete-vector evaluator records, aligned with native kernel sectors.
stability_settings

backend

Kernels.backend: builtins.str

compilation_settings

Kernels.compilation_settings: CompilationSettings

components

Kernels.components: builtins.list[builtins.str]

content_id

Kernels.content_id: builtins.str

exact_coefficients

Kernels.exact_coefficients: builtins.list[builtins.float]

orders

Kernels.orders: builtins.list[builtins.int]

parameters_bound

Kernels.parameters_bound: builtins.bool

runtime_parameters

Kernels.runtime_parameters: builtins.list[Expression]

sector_count

Kernels.sector_count: builtins.int

sector_statistics

Kernels.sector_statistics: builtins.list[EvaluatorStatistics]

Actual complete-vector evaluator records, aligned with native kernel sectors.

stability_settings

Kernels.stability_settings: StabilitySettings

Methods

Name Description
_repr_html_
from_bytes Validate native programs and construct evaluators for the current host backend.
mc_session Native sector-importance Havana, with a caller-controlled pilot or frozen production.
restore Restore complete accepted packages and replay state against these exact kernels.
restore_mc Restore only a native frozen-production discrete Havana checkpoint.
session
snapshot
to_bytes Persist the library’s native portable program/metadata codec, excluding machine code.
with_parameters Bind an explicit complete physical point on independently owned native evaluators.
with_stability

_repr_html_

Kernels._repr_html_(slf: Kernels) -> builtins.str

from_bytes

Kernels.from_bytes(artifact: bytes) -> Kernels

Validate native programs and construct evaluators for the current host backend.

mc_session

Kernels.mc_session(
    settings: typing.Optional[HavanaDiscreteSettings] = None,
    *,
    pilot: builtins.bool = False,
    sector_probabilities: typing.Optional[typing.Sequence[builtins.float]] = None,
) -> HavanaDiscreteSession

Native sector-importance Havana, with a caller-controlled pilot or frozen production.

restore

Kernels.restore(checkpoint: bytes) -> QmcSession

Restore complete accepted packages and replay state against these exact kernels.

restore_mc

Kernels.restore_mc(checkpoint: bytes) -> HavanaDiscreteSession

Restore only a native frozen-production discrete Havana checkpoint.

session

Kernels.session(settings: typing.Optional[QmcSettings] = None) -> QmcSession

snapshot

Kernels.snapshot() -> GenerationSnapshot

to_bytes

Kernels.to_bytes() -> bytes

Persist the library’s native portable program/metadata codec, excluding machine code.

with_parameters

Kernels.with_parameters(
    values: dict,
    *,
    stability: typing.Optional[StabilitySettings] = None,
) -> Kernels

Bind an explicit complete physical point on independently owned native evaluators.

with_stability

Kernels.with_stability(settings: StabilitySettings) -> Kernels