Skip to content

Commit 6227809

Browse files
Bump CUDA-Q commit (support breaking change) (#326)
Update to the latest CUDA-Q commit on main branch. This required a small update to CUDA-QX to support a breaking change from upstream NVIDIA/cuda-quantum#3489.
1 parent d14cd25 commit 6227809

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.cudaq_version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"cudaq": {
33
"repository": "NVIDIA/cuda-quantum",
4-
"ref": "43f539c7e45a0a47c56d43be237ffc673b23222b"
4+
"ref": "30e0737b4f8d5b580d8b97c3352458122485568e"
55
}
66
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def stabilizer(logicalQubit: patch, x_stabilizers: list[int],
4040
x.ctrl(logicalQubit.data[di], logicalQubit.ancz[zi])
4141

4242
# Get and reset ancillas
43-
results = mz(logicalQubit.ancz, logicalQubit.ancx)
43+
results = mz([*logicalQubit.ancz, *logicalQubit.ancx])
4444
reset(logicalQubit.ancx)
4545
reset(logicalQubit.ancz)
4646
return results

libs/qec/python/cudaq_qec/plugins/codes/example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# ============================================================================ #
2-
# Copyright (c) 2024 NVIDIA Corporation & Affiliates. #
2+
# Copyright (c) 2024 - 2025 NVIDIA Corporation & Affiliates. #
33
# All rights reserved. #
44
# #
55
# This source code and the accompanying materials are made available under #
@@ -39,7 +39,7 @@ def stabilizer(logicalQubit: patch, x_stabilizers: list[int],
3939
if z_stabilizers[zi * len(logicalQubit.data) + di] == 1:
4040
x.ctrl(logicalQubit.data[di], logicalQubit.ancz[zi])
4141

42-
results = mz(logicalQubit.ancx, logicalQubit.ancz)
42+
results = mz([*logicalQubit.ancx, *logicalQubit.ancz])
4343

4444
reset(logicalQubit.ancx)
4545
reset(logicalQubit.ancz)

0 commit comments

Comments
 (0)