Skip to content

Incorporate new qubit-mapping pass for IQM backends - #837

Merged
bmhowe23 merged 9 commits into
NVIDIA:mainfrom
bmhowe23:placement_iqm
Nov 2, 2023
Merged

bmhowe23 merged 9 commits into
NVIDIA:mainfrom
bmhowe23:placement_iqm

Conversation

@bmhowe23

@bmhowe23 bmhowe23 commented Oct 30, 2023 •

Copy link
Copy Markdown
Collaborator

Overview

This PR contains the necessary changes for the IQM backend to use the new qubit mapping infrastructure. It therefore depends on #610. It currently includes all the commits from 610 in this PR in order to allow the CI to pass, but they will be removed once 610 is merged to main. If anybody wants to jumpstart the review process, you should only review the last commit.

Details

  • Update iqm.config to include new passes
  • Update iqm.config to include delay-measurements because it is not automatically picked up by QIR pipeline (because IQM is not using QIR)
  • Create Adonis and Apollo config files to specify their topology
  • Update Remote REST runtime to honor chosen machine in dynamic pass configuration (i.e. apply the mapping algorithm using the correct machine's topology)
  • Update ObserveAnsatz pass to understand single qubit allocations
  • Update ObserveAnsatz pass to comprehend new mapping attribute and to remap the measurements accordingly.
  • Optimize CircuitSimulator.h when using register names with many shots

As follow-up work, the following tests should enabled in the nightly integration tests for IQM:

  • qspan_slices.cpp
  • test-observe.cpp

Note: the kernel_builder.cpp change was needed for iqm-tests :

  • iqm_IQMTester.executeMultipleMeasuredQubitsProgram

@copy-pr-bot

copy-pr-bot Bot commented Oct 30, 2023

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@bmhowe23

bmhowe23 commented Oct 30, 2023 •

Copy link
Copy Markdown
Collaborator Author

/ok to test

Command Bot: Processing...

@github-actions

Copy link
Copy Markdown

CUDA Quantum Docs Bot: A preview of the documentation can be found here.

github-actions Bot pushed a commit that referenced this pull request Oct 30, 2023
@bmhowe23 bmhowe23 mentioned this pull request Oct 30, 2023
6 of 12 tasks
@bmhowe23

bmhowe23 commented Oct 30, 2023 •

Copy link
Copy Markdown
Collaborator Author

/ok to test

Command Bot: Processing...

@github-actions

Copy link
Copy Markdown

CUDA Quantum Docs Bot: A preview of the documentation can be found here.

github-actions Bot pushed a commit that referenced this pull request Oct 30, 2023
* Update iqm.config to include new passes
* Update iqm.config to include delay-measurements because it is not
  automatically picked up by QIR pipeline (because IQM is not using QIR)
* Create Adonis and Apollo config files to specify their topology
* Update Remote REST runtime to honor chosen machine in dynamic pass
  configuration
* Update ObserveAnsatz pass to understand single qubit allocations
* Update ObserveAnsatz pass to comprehend new mapping attribute and to
  remap the measurements accordingly.
* Optimize CircuitSimulator.h when using register names with many shots

As follow-up work, the following tests should enabled in the nightly
integration tests for IQM:
* qspan_slices.cpp
* test-observe.cpp

Note: the kernel_builder.cpp change was needed for iqm-tests :
* iqm_IQMTester.executeMultipleMeasuredQubitsProgram
@bmhowe23 bmhowe23 changed the title [DRAFT] Incorporate new qubit-mapping pass for IQM backends Incorporate new qubit-mapping pass for IQM backends Oct 31, 2023
@bmhowe23 bmhowe23 added this to the release 0.5.0 milestone Oct 31, 2023
@bmhowe23 bmhowe23 added the enhancement New feature or request label Oct 31, 2023
@bmhowe23
bmhowe23 marked this pull request as ready for review October 31, 2023 22:19
@github-actions

Copy link
Copy Markdown

CUDA Quantum Docs Bot: A preview of the documentation can be found here.

github-actions Bot pushed a commit that referenced this pull request Oct 31, 2023
@github-actions

github-actions Bot commented Nov 1, 2023

Copy link
Copy Markdown

CUDA Quantum Docs Bot: A preview of the documentation can be found here.

github-actions Bot pushed a commit that referenced this pull request Nov 1, 2023
@github-actions

github-actions Bot commented Nov 1, 2023

Copy link
Copy Markdown

CUDA Quantum Docs Bot: A preview of the documentation can be found here.

github-actions Bot pushed a commit that referenced this pull request Nov 1, 2023

@schweitzpgi schweitzpgi left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few nits and questions. This is looking good.

Comment thread test/NVQPP/bug_qubit.cpp Resolved
Comment thread test/NVQPP/cudaq_observe.cpp Resolved
@github-actions

github-actions Bot commented Nov 1, 2023

Copy link
Copy Markdown

CUDA Quantum Docs Bot: A preview of the documentation can be found here.

github-actions Bot pushed a commit that referenced this pull request Nov 1, 2023
@bmhowe23
bmhowe23 requested a review from schweitzpgi November 1, 2023 20:24

@schweitzpgi schweitzpgi left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice.

@bmhowe23
bmhowe23 enabled auto-merge (squash) November 2, 2023 12:12
@bmhowe23
bmhowe23 merged commit fdd4476 into NVIDIA:main Nov 2, 2023
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 2, 2023
@bmhowe23
bmhowe23 deleted the placement_iqm branch November 2, 2023 12:45
@bmhowe23
bmhowe23 restored the placement_iqm branch November 2, 2023 12:49
@bmhowe23
bmhowe23 deleted the placement_iqm branch November 9, 2023 13:23
@bettinaheim bettinaheim added release notes Changes need to be captured in the release notes and removed enhancement New feature or request labels Nov 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release notes Changes need to be captured in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants