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.

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