Skip to content

Add public method to query indices of parametrized instructions in parameter table #14747

@mtreinish

Description

@mtreinish

What should we add?

For use cases where people want to inspect the instructions using a parameter in the circuit right now there is no way to look this up without iterating over the whole circuit. This is unnecessarily inefficient because the parameter table necessarily is tracking this already. We have a private method ._raw_parameter_table_entry() on CircuitData which is used in assign_parameters but there is no public method exposing this. We should expose a public interface to make this a part of the public api so that users who want to get the indices of parameterized instructions can do so efficiently.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions