Skip to content

Commit 09b29a3

Browse files
committed
And again.
Signed-off-by: Eric Schweitz <[email protected]>
1 parent 68a101f commit 09b29a3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

python/cudaq/kernel/ast_bridge.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -2426,7 +2426,7 @@ def bodyBuilder(iterVal):
24262426
values.reverse()
24272427
# First one should be the number of Kraus channel parameters
24282428
numParamsVal = values[0]
2429-
# Shrink the arguments down
2429+
# Shrink the arguments down
24302430
values = values[1:]
24312431

24322432
# Need to get the number of parameters as an integer
@@ -2443,15 +2443,15 @@ def bodyBuilder(iterVal):
24432443
# our Kraus channel parameters
24442444
params = values[:numParams]
24452445
for i, p in enumerate(params):
2446-
# If we have a F64 value, we want to
2446+
# If we have a F64 value, we want to
24472447
# store it to a pointer
24482448
if F64Type.isinstance(p.type):
24492449
alloca = cc.AllocaOp(
24502450
cc.PointerType.get(self.ctx, p.type),
24512451
TypeAttr.get(p.type)).result
24522452
cc.StoreOp(p, alloca)
2453-
params[i] = alloca
2454-
2453+
params[i] = alloca
2454+
24552455
# The remaining arguments are the qubits
24562456
qubits = values[numParams:]
24572457
quake.ApplyNoiseOp(params, qubits, key=key)
@@ -4188,8 +4188,8 @@ def visit_Name(self, node):
41884188

41894189
if issubclass(value, cudaq_runtime.KrausChannel):
41904190
# Here we have a KrausChannel as part of the AST
4191-
# We want to create a hash value from it, and
4192-
# we then want to push the number of parameters and
4191+
# We want to create a hash value from it, and
4192+
# we then want to push the number of parameters and
41934193
# that hash value. This can only be used with apply_noise
41944194
self.pushValue(self.getConstantInt(value.num_parameters))
41954195
self.pushValue(self.getConstantInt(hash(value)))

0 commit comments

Comments
 (0)