Skip to content

BUG: _compute_core_hash uses non-deterministic Python hash() #51

Description

@Manideep3969

Issue

batching.py:303 — _compute_core_hash uses Python's hash() which is salted with a random seed in Python 3.3+ by default. The same circuit produces different hashes across interpreter sessions, breaking persistent caching and reproducibility.

Fix

Use a deterministic hash like hashlib.md5 or hashlib.sha256 of the tuple representation.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2-mediumMedium prioritybugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions