File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -760,16 +760,8 @@ def pop(self) -> None:
760760 self ._backend .pop_context ()
761761
762762 @property
763- def kernel_cache_hit (self ) -> bool :
764- """
765- Whether kernel compilation was satisfied from cache.
766-
767- Returns
768- -------
769-
770- cache_hit: bool
771- True if kernels were loaded from cache, False if freshly compiled.
772- """
763+ def _kernel_cache_hit (self ) -> bool :
764+ """Whether kernel compilation was satisfied from cache."""
773765 return self ._backend .cache_hit
774766
775767 def system (self ) -> _Any :
Original file line number Diff line number Diff line change @@ -429,8 +429,8 @@ def _create_and_run(seed):
429429 sampler2 = _create_and_run (seed = 42 )
430430
431431 # Verify cache behaviour.
432- assert not sampler1 .kernel_cache_hit , "First sampler should compile from source"
433- assert sampler2 .kernel_cache_hit , "Second sampler should use cached kernels"
432+ assert not sampler1 ._kernel_cache_hit , "First sampler should compile from source"
433+ assert sampler2 ._kernel_cache_hit , "Second sampler should use cached kernels"
434434
435435 # Verify energy consistency.
436436 energy1_coul = sampler1 ._debug ["energy_coul" ]
You can’t perform that action at this time.
0 commit comments