Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Commit 6899af4

Browse files
vadym-klChris Granade
authored and
Chris Granade
committed
updating signatures of ApplyIfZeroCA and ApplyIfOneCA (#156)
1 parent 1939470 commit 6899af4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Standard/src/Canon/Combinators/ApplyIf.qs

+2-2
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ namespace Microsoft.Quantum.Canon {
289289
/// - Microsoft.Quantum.Canon.ApplyIfOneC
290290
/// - Microsoft.Quantum.Canon.ApplyIfOneA
291291
/// - Microsoft.Quantum.Canon.ApplyIfOneCA
292-
operation ApplyIfOneCA<'T> (result : Result, (op : ('T => Unit is Adj), target : 'T)) : Unit is Adj {
292+
operation ApplyIfOneCA<'T> (result : Result, (op : ('T => Unit is Adj + Ctl), target : 'T)) : Unit is Adj + Ctl {
293293
if (result == One) {
294294
op(target);
295295
}
@@ -409,7 +409,7 @@ namespace Microsoft.Quantum.Canon {
409409
/// - Microsoft.Quantum.Canon.ApplyIfZeroC
410410
/// - Microsoft.Quantum.Canon.ApplyIfZeroA
411411
/// - Microsoft.Quantum.Canon.ApplyIfZeroCA
412-
operation ApplyIfZeroCA<'T> (result : Result, (op : ('T => Unit is Adj), target : 'T)) : Unit is Adj {
412+
operation ApplyIfZeroCA<'T> (result : Result, (op : ('T => Unit is Adj + Ctl), target : 'T)) : Unit is Adj + Ctl {
413413
if (result == Zero) {
414414
op(target);
415415
}

0 commit comments

Comments
 (0)