Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fully port CheckMap to Rust #13030

Merged
merged 5 commits into from
Sep 6, 2024
Merged

Fully port CheckMap to Rust #13030

merged 5 commits into from
Sep 6, 2024

Commits on Aug 30, 2024

  1. Fully port CheckMap to Rust

    This commit migrates the entirety of the CheckMap analysis pass to Rust.
    The pass operates solely in the rust domain and returns an
    `Option<(String, [u32; 2])>` to Python which is used to set the two
    property set fields appropriately. All the analysis of the dag is done
    in Rust. There is still Python interaction required though because
    control flow operations are only defined in Python. However the
    interaction is minimal and only to get the circuits for control flow
    blocks and converting them into DAGs (at least until Qiskit#13001 is complete).
    
    This commit is based on top of Qiskit#12959 and will need to be rebased after
    that merges.
    
    Closes Qiskit#12251
    Part of Qiskit#12208
    mtreinish committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    88b4265 View commit details
    Browse the repository at this point in the history
  2. Use a Vec<Qubit> for wire_map instead of a HashMap

    This commit switches to using a Vec<Qubit> for the internal wire_map
    used to map control flow qubits. A HashMap was originally used because
    in Python a dictionary is used. However, in the rust domain the inner
    qubits are contiguous integers starting from 0 so a Vec can be used for
    better performance in the case we have control flow.
    mtreinish committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    341a65b View commit details
    Browse the repository at this point in the history

Commits on Sep 4, 2024

  1. Configuration menu
    Copy the full SHA
    298c4b2 View commit details
    Browse the repository at this point in the history
  2. Update crates/accelerate/src/check_map.rs

    Co-authored-by: Raynel Sanchez <87539502+raynelfss@users.noreply.github.com>
    mtreinish and raynelfss authored Sep 4, 2024
    Configuration menu
    Copy the full SHA
    64c47b8 View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2024

  1. Configuration menu
    Copy the full SHA
    ccb9ddf View commit details
    Browse the repository at this point in the history