Skip to content

PERF: _estimate_gate_error recomputes averages for every gate #52

Description

@Manideep3969

Issue

cost_model.py:207-212 — For a circuit with N gates, _get_gate_fidelity is called N times, each time computing averages from the device dictionaries. These averages should be computed once and cached.

Fix

Cache the average error rates in DeviceCharacterization or compute them once in CostModel.__init__.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions