ApplyIfElseRCA işlemi

Uyarı

Bu belge, Modern QDK ile değiştirilen Klasik QDK'yi ifade eder.

Lütfen Modern QDK için API belgelerine bakın https://aka.ms/qdk.api .

Ad Alanı: Microsoft.Quantum.ClassicalControl

Paket: Microsoft.Quantum.QSharp.Foundation

operation ApplyIfElseRCA<'T, 'U> (measurementResult : Result, (onResultZeroOp : ('T => Unit is Adj + Ctl), zeroArg : 'T), (onResultOneOp : ('U => Unit is Adj + Ctl), oneArg : 'U)) : Unit is Adj + Ctl

Giriş

measurementResult : Sonuç

onResultZeroOp: 'T =>Unit is Adj + Ctl

zeroArg : 'T

onResultOneOp: 'U =>Unit is Adj + Ctl

oneArg: 'U

Çıkış : Birim

Tür Parametreleri

'T

'U