Skip to content

Add readable Tracker repr#9570

Open
DoView1 wants to merge 1 commit into
PennyLaneAI:mainfrom
DoView1:tracker-repr-9389
Open

Add readable Tracker repr#9570
DoView1 wants to merge 1 commit into
PennyLaneAI:mainfrom
DoView1:tracker-repr-9389

Conversation

@DoView1
Copy link
Copy Markdown

@DoView1 DoView1 commented Jun 3, 2026

Closes #9389.

This adds a readable representation for Tracker showing the user-facing tracking state: active, totals, history, latest, and persistent.

Tests:

  • python -m pytest tests/devices/test_tracker.py -q
  • python -m black -t py311 -t py312 -t py313 -l 100 pennylane/devices/tracker.py tests/devices/test_tracker.py --check
  • python -m isort --py 312 --profile black -l 100 -o autoray -p ./pennylane --skip __init__.py --filter-files pennylane/devices/tracker.py tests/devices/test_tracker.py --check
  • python -m pylint --rcfile .pylintrc pennylane/devices/tracker.py
  • python -m pylint --rcfile tests/.pylintrc tests/devices/test_tracker.py
  • git diff --check

@github-actions github-actions Bot added the external PRs opened by contributors outside the PennyLaneAI organization label Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external PRs opened by contributors outside the PennyLaneAI organization

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add __repr__ to qp.Tracker to improve readability

1 participant