Skip to content

Replace repeated qubit_maps list with a single qubit_map in execute_circuits #1524

Description

@RoyStegeman

Deferred from #1490 (comment). In the RB circuit execution, qubit_maps, is constructed as a list repeating the same qubit_map for every circuit:

qubit_maps = [qubit_map] * len(indexed_circuits)

This is a leftover from when a list of targets would generate one circuit per target and execute the circuits in a loop. Since #1490, all targets are executed in parallel on a single circuit, so qubit_map can be used directly in favor of qubit_maps.

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

    refactorPolish the code just for the purpose of improved structure

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions