Skip to content

Commit 43dcb61

Browse files
authored
Add copyright header to qec examples (#125)
Signed-off-by: Melody Ren <[email protected]>
1 parent 5bc0691 commit 43dcb61

18 files changed

+58
-3
lines changed

docs/sphinx/examples/qec/cpp/circuit_level_noise.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* This source code and the accompanying materials are made available under *
66
* the terms of the Apache License 2.0 which accompanies this distribution. *
77
******************************************************************************/
8-
8+
// [Begin Documentation]
99
// Compile and run with:
1010
// nvq++ --enable-mlir --target=stim -lcudaq-qec circuit_level_noise.cpp
1111
// ./a.out

docs/sphinx/examples/qec/cpp/code_capacity_noise.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* This source code and the accompanying materials are made available under *
66
* the terms of the Apache License 2.0 which accompanies this distribution. *
77
******************************************************************************/
8-
8+
// [Begin Documentation]
99
// This example shows the primary cudaq::qec types:
1010
// decoder, code
1111
//

docs/sphinx/examples/qec/python/circuit_level_noise.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# ============================================================================ #
2+
# Copyright (c) 2025 NVIDIA Corporation & Affiliates. #
3+
# All rights reserved. #
4+
# #
5+
# This source code and the accompanying materials are made available under #
6+
# the terms of the Apache License 2.0 which accompanies this distribution. #
7+
# ============================================================================ #
8+
# [Begin Documentation]
19
import numpy as np
210
import cudaq
311
import cudaq_qec as qec

docs/sphinx/examples/qec/python/code_capacity_noise.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
# ============================================================================ #
2+
# Copyright (c) 2025 NVIDIA Corporation & Affiliates. #
3+
# All rights reserved. #
4+
# #
5+
# This source code and the accompanying materials are made available under #
6+
# the terms of the Apache License 2.0 which accompanies this distribution. #
7+
# ============================================================================ #
8+
9+
# [Begin Documentation]
110
import numpy as np
211
import cudaq_qec as qec
312

docs/sphinx/examples/qec/python/pseudo_threshold.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
# ============================================================================ #
2+
# Copyright (c) 2025 NVIDIA Corporation & Affiliates. #
3+
# All rights reserved. #
4+
# #
5+
# This source code and the accompanying materials are made available under #
6+
# the terms of the Apache License 2.0 which accompanies this distribution. #
7+
# ============================================================================ #
8+
9+
# [Begin Documentation]
110
import numpy as np
211
import cudaq_qec as qec
312
import matplotlib.pyplot as plt

docs/sphinx/examples/qec/python/repetition_code_fine_grain_noise.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
# ============================================================================ #
2+
# Copyright (c) 2025 NVIDIA Corporation & Affiliates. #
3+
# All rights reserved. #
4+
# #
5+
# This source code and the accompanying materials are made available under #
6+
# the terms of the Apache License 2.0 which accompanies this distribution. #
7+
# ============================================================================ #
8+
9+
# [Begin Documentation]
110
import cudaq
211
import cudaq_qec as qec
312
import numpy as np

docs/sphinx/examples/solvers/cpp/adapt_h2.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* This source code and the accompanying materials are made available under *
66
* the terms of the Apache License 2.0 which accompanies this distribution. *
77
******************************************************************************/
8+
// [Begin Documentation]
89
#include "cudaq.h"
910
#include "cudaq/solvers/adapt.h"
1011
#include "cudaq/solvers/operators.h"

docs/sphinx/examples/solvers/cpp/molecular_docking_qaoa.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* This source code and the accompanying materials are made available under *
66
* the terms of the Apache License 2.0 which accompanies this distribution. *
77
******************************************************************************/
8-
8+
// [Begin Documentation]
99
#include "cudaq.h"
1010
#include "cudaq/solvers/operators.h"
1111
#include "cudaq/solvers/qaoa.h"

docs/sphinx/examples/solvers/cpp/uccsd_vqe.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* This source code and the accompanying materials are made available under *
66
* the terms of the Apache License 2.0 which accompanies this distribution. *
77
******************************************************************************/
8+
// [Begin Documentation]
89
#include "cudaq.h"
910
#include "cudaq/solvers/operators.h"
1011
#include "cudaq/solvers/stateprep/uccsd.h"

docs/sphinx/examples/solvers/python/adapt_h2.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
# This source code and the accompanying materials are made available under #
66
# the terms of the Apache License 2.0 which accompanies this distribution. #
77
# ============================================================================ #
8+
9+
# [Begin Documentation]
810
import cudaq, cudaq_solvers as solvers
911

1012
# Run this script with

0 commit comments

Comments
 (0)