Skip to content

DataSet.add_count_dict outcome label mismatch #661

@sserita

Description

@sserita

Describe the bug
Sometime between Sep 2024 and now, there has been a behavior change in DataSet.add_count_dict() that results in the outcome labels being improperly assigned if the first circuit added only has 1 counts.
Edit: Confirmed that 0.9.13 also has this issue, so that narrows our time window down a lot. TBF, I kinda remember touching this function a while ago so this could be my bad.

To Reproduce

Old expected behavior:
Image

New problematic behavior:
Image

Expected behavior
The old behavior is correct.

Environment (please complete the following information):

  • pyGSTi pre-0.9.13 to post-0.9.14
  • python 3.11
  • OSX 15.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA bug or regressionfixed but not in release yetBug has been fixed, but isn't in an official release yet (just exists on a development branch)

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions