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__.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions