@@ -2426,7 +2426,7 @@ def bodyBuilder(iterVal):
2426
2426
values .reverse ()
2427
2427
# First one should be the number of Kraus channel parameters
2428
2428
numParamsVal = values [0 ]
2429
- # Shrink the arguments down
2429
+ # Shrink the arguments down
2430
2430
values = values [1 :]
2431
2431
2432
2432
# Need to get the number of parameters as an integer
@@ -2443,15 +2443,15 @@ def bodyBuilder(iterVal):
2443
2443
# our Kraus channel parameters
2444
2444
params = values [:numParams ]
2445
2445
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
2447
2447
# store it to a pointer
2448
2448
if F64Type .isinstance (p .type ):
2449
2449
alloca = cc .AllocaOp (
2450
2450
cc .PointerType .get (self .ctx , p .type ),
2451
2451
TypeAttr .get (p .type )).result
2452
2452
cc .StoreOp (p , alloca )
2453
- params [i ] = alloca
2454
-
2453
+ params [i ] = alloca
2454
+
2455
2455
# The remaining arguments are the qubits
2456
2456
qubits = values [numParams :]
2457
2457
quake .ApplyNoiseOp (params , qubits , key = key )
@@ -4188,8 +4188,8 @@ def visit_Name(self, node):
4188
4188
4189
4189
if issubclass (value , cudaq_runtime .KrausChannel ):
4190
4190
# 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
4193
4193
# that hash value. This can only be used with apply_noise
4194
4194
self .pushValue (self .getConstantInt (value .num_parameters ))
4195
4195
self .pushValue (self .getConstantInt (hash (value )))
0 commit comments