Skip to content

Commit

Permalink
Add nightly integration tests that require mapping to IQM and OQC (NV…
Browse files Browse the repository at this point in the history
…IDIA#861)

Co-authored-by: Bettina Heim <[email protected]>
  • Loading branch information
bmhowe23 and bettinaheim authored Nov 8, 2023
1 parent c329115 commit 5d5c4a8
Show file tree
Hide file tree
Showing 13 changed files with 40 additions and 28 deletions.
28 changes: 0 additions & 28 deletions .github/workflows/integration_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,19 +148,6 @@ jobs:

- name: Submit to IQM Demo server
if: (success() || failure()) && (inputs.target == 'iqm' || github.event_name == 'schedule' || inputs.target == 'nightly')
# The following tests are disabled because the demo server only supports
# 5 qubits and the test tries to use more.
# - test/NVQPP/graph_coloring-1.cpp
# - test/NVQPP/graph_coloring.cpp
# The following tests are disabled because a mapping algorithm is needed
# to account for qubit connection limitations.
# See https://github.com/NVIDIA/cuda-quantum/pull/610 (in work)
# - test/NVQPP/qspan_slices.cpp
# - test/NVQPP/sudoku_2x2-1.cpp
# - test/NVQPP/sudoku_2x2-bit_names.cpp
# - test/NVQPP/sudoku_2x2-reg_name.cpp
# - test/NVQPP/sudoku_2x2.cpp
# - test/NVQPP/test-observe.cpp
run: |
# Must install iqm-cortex-cli to authenticate
pip install iqm-cortex-cli
Expand Down Expand Up @@ -208,21 +195,6 @@ jobs:

- name: Submit to OQC Sandbox server
if: (success() || failure()) && (inputs.target == 'oqc' || github.event_name == 'schedule' || inputs.target == 'nightly')
# The following tests are disabled because sandbox only supports 12
# qubits and the test tries to use more.
# - test/NVQPP/graph_coloring-1.cpp
# - test/NVQPP/graph_coloring.cpp
# The following tests are disabled because a mapping algorithm is needed
# to account for qubit connection limitations
# See https://github.com/NVIDIA/cuda-quantum/pull/610 (in work)
# - test/NVQPP/qspan_slices.cpp
# - test/NVQPP/sudoku_2x2-1.cpp
# - test/NVQPP/sudoku_2x2-bit_names.cpp
# - test/NVQPP/sudoku_2x2-reg_name.cpp
# - test/NVQPP/sudoku_2x2.cpp
# The following test is disabled due to https://github.com/NVIDIA/cuda-quantum/issues/695
# - test/NVQPP/test-observe.cpp|\

run: |
echo "### Submit to OQC sandbox server" >> $GITHUB_STEP_SUMMARY
export CUDAQ_LOG_LEVEL="info"
Expand Down
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions targettests/iqm/qspan_slices.cpp
17 changes: 17 additions & 0 deletions targettests/iqm/readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# ============================================================================ #
# Copyright (c) 2022 - 2023 NVIDIA Corporation & Affiliates. #
# All rights reserved. #
# #
# This source code and the accompanying materials are made available under #
# the terms of the Apache License 2.0 which accompanies this distribution. #
# ============================================================================ #

The following tests are disabled because the demo server only supports 5 qubits
and the test tries to use more.

- test/NVQPP/graph_coloring-1.cpp
- test/NVQPP/graph_coloring.cpp
- test/NVQPP/sudoku_2x2-1.cpp
- test/NVQPP/sudoku_2x2-bit_names.cpp
- test/NVQPP/sudoku_2x2-reg_name.cpp
- test/NVQPP/sudoku_2x2.cpp
1 change: 1 addition & 0 deletions targettests/oqc/qspan_slices.cpp
15 changes: 15 additions & 0 deletions targettests/oqc/readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# ============================================================================ #
# Copyright (c) 2022 - 2023 NVIDIA Corporation & Affiliates. #
# All rights reserved. #
# #
# This source code and the accompanying materials are made available under #
# the terms of the Apache License 2.0 which accompanies this distribution. #
# ============================================================================ #

The following tests are disabled because sandbox only supports 12 qubits and the
test tries to use more.
- test/NVQPP/graph_coloring-1.cpp
- test/NVQPP/graph_coloring.cpp

The following test is disabled due to https://github.com/NVIDIA/cuda-quantum/issues/695
- test/NVQPP/cudaq_observe.cpp
1 change: 1 addition & 0 deletions targettests/oqc/sudoku_2x2-1.cpp
1 change: 1 addition & 0 deletions targettests/oqc/sudoku_2x2-bit_names.cpp
1 change: 1 addition & 0 deletions targettests/oqc/sudoku_2x2-reg_name.cpp
1 change: 1 addition & 0 deletions targettests/oqc/sudoku_2x2.cpp
1 change: 1 addition & 0 deletions targettests/quantinuum/cudaq_observe.cpp
1 change: 1 addition & 0 deletions test/NVQPP/sudoku_2x2-1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* the terms of the Apache License 2.0 which accompanies this distribution. *
******************************************************************************/

// clang-format off
// RUN: nvq++ --target ionq --emulate %s -o %basename_t.x && ./%basename_t.x | FileCheck %s
// RUN: nvq++ --target iqm --iqm-machine Apollo --emulate %s -o %basename_t.x && ./%basename_t.x | FileCheck %s
// RUN: nvq++ --target oqc --emulate %s -o %basename_t.x && ./%basename_t.x | FileCheck %s
Expand Down

0 comments on commit 5d5c4a8

Please sign in to comment.