Skip to content

Gate matrix caching #29

Description

@obackhouse

I get good performance increases by caching get_gate_matrix to prevent separate allocations for each instance of a gate. For my hacky scripts I just add a functools.cache decorator to get_gate_matrix, but this is probably a bad idea to globally cache. Could run_circuit have a local gate matrix cache?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions