Skip to content

cirq.Result.data is slow #4774

@mpharrigan

Description

@mpharrigan

I'm profiling some of the XEB code using cirq.ZerosSampler() to see what sort of Cirq overhead we're incurring. Turns out ~24 seconds in a given sampling run is spent in cirq.Result.data, namely looping through each repetition to convert bitstrings to integers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/resultgood first issueThis issue can be resolved by someone who is not familiar with the codebase. A good starting issue.kind/healthFor CI/testing/release process/refactoring/technical debt itemstriage/acceptedA consensus emerged that this bug report, feature request, or other action should be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions