nkdsl.SymbolicCompilationSignature

class SymbolicCompilationSignature(operator_ir_fingerprint, backend_target, hilbert_size, dtype_str, options_signature=<factory>)[source]

Deterministic compilation signature for cache-key generation.

Parameters:
  • operator_ir_fingerprint (str)

  • backend_target (str)

  • hilbert_size (int)

  • dtype_str (str)

  • options_signature (tuple)

operator_ir_fingerprint

Stable digest of the operator IR.

Type:

str

backend_target

Resolved backend name.

Type:

str

hilbert_size

Hilbert space size.

Type:

int

dtype_str

Matrix-element dtype string.

Type:

str

options_signature

Static compiler-options signature.

Type:

tuple

__init__(operator_ir_fingerprint, backend_target, hilbert_size, dtype_str, options_signature=<factory>)
Parameters:
  • operator_ir_fingerprint (str)

  • backend_target (str)

  • hilbert_size (int)

  • dtype_str (str)

  • options_signature (tuple)

Return type:

None

Methods

__init__(operator_ir_fingerprint, ...[, ...])

as_dict()

Returns dictionary-form signature payload.

build_cache_key(*, namespace[, ...])

Builds a deterministic cache key.

from_context(context)

Builds a signature from a post-backend-selection context.

Attributes