qsharp-lang 1.8.2-dev → 1.8.4-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/samples.generated.js +16 -16
- package/docs/Microsoft.Quantum.Core/IsRangeEmpty.md +1 -1
- package/docs/Microsoft.Quantum.Core/Length.md +1 -1
- package/docs/Microsoft.Quantum.Core/RangeEnd.md +1 -1
- package/docs/Microsoft.Quantum.Core/RangeReverse.md +1 -1
- package/docs/Microsoft.Quantum.Core/RangeStart.md +1 -1
- package/docs/Microsoft.Quantum.Core/RangeStep.md +1 -1
- package/docs/Microsoft.Quantum.Core/Repeated.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/AddLE.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyIfEqualL.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyIfEqualLE.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyIfGreaterL.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyIfGreaterLE.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyIfGreaterOrEqualL.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyIfGreaterOrEqualLE.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyIfLessL.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyIfLessLE.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyIfLessOrEqualL.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyIfLessOrEqualLE.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/FourierTDIncByLE.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/IncByI.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/IncByIUsingIncByLE.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/IncByL.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/IncByLE.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/IncByLEUsingAddLE.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/IncByLUsingIncByLE.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/LookAheadDKRSAddLE.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/MAJ.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/ReflectAboutInteger.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/RippleCarryCGAddLE.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/RippleCarryCGIncByLE.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/RippleCarryTTKIncByLE.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.StatePreparation/ApproximatelyPreparePureStateCP.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.StatePreparation/PreparePureStateD.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.TableLookup/Select.md +1 -1
- package/docs/{Microsoft.Quantum.Arrays → Std.Arrays}/All.md +4 -4
- package/docs/{Microsoft.Quantum.Arrays → Std.Arrays}/Any.md +5 -6
- package/docs/{Microsoft.Quantum.Arrays → Std.Arrays}/Chunks.md +5 -6
- package/docs/{Microsoft.Quantum.Arrays → Std.Arrays}/CircularlyShifted.md +5 -6
- package/docs/{Microsoft.Quantum.Arrays → Std.Arrays}/ColumnAt.md +5 -6
- package/docs/{Microsoft.Quantum.Arrays → Std.Arrays}/Count.md +5 -6
- package/docs/{Microsoft.Quantum.Arrays → Std.Arrays}/Diagonal.md +5 -6
- package/docs/{Microsoft.Quantum.Arrays → Std.Arrays}/DrawMany.md +5 -6
- package/docs/{Microsoft.Quantum.Arrays → Std.Arrays}/Enumerated.md +5 -6
- package/docs/{Microsoft.Quantum.Arrays → Std.Arrays}/Excluding.md +5 -6
- package/docs/{Microsoft.Quantum.Arrays → Std.Arrays}/Filtered.md +5 -6
- package/docs/{Microsoft.Quantum.Arrays → Std.Arrays}/FlatMapped.md +5 -6
- package/docs/{Microsoft.Quantum.Arrays → Std.Arrays}/Flattened.md +5 -6
- package/docs/{Microsoft.Quantum.Arrays → Std.Arrays}/Fold.md +5 -6
- package/docs/{Microsoft.Quantum.Arrays → Std.Arrays}/ForEach.md +5 -6
- package/docs/{Microsoft.Quantum.Arrays → Std.Arrays}/Head.md +5 -6
- package/docs/{Microsoft.Quantum.Arrays → Std.Arrays}/HeadAndRest.md +5 -6
- package/docs/{Microsoft.Quantum.Arrays → Std.Arrays}/IndexOf.md +5 -6
- package/docs/{Microsoft.Quantum.Arrays → Std.Arrays}/IndexRange.md +5 -6
- package/docs/{Microsoft.Quantum.Arrays → Std.Arrays}/Interleaved.md +5 -6
- package/docs/{Microsoft.Quantum.Arrays → Std.Arrays}/IsEmpty.md +5 -6
- package/docs/{Microsoft.Quantum.Arrays → Std.Arrays}/IsRectangularArray.md +5 -6
- package/docs/{Microsoft.Quantum.Arrays → Std.Arrays}/IsSorted.md +5 -6
- package/docs/{Microsoft.Quantum.Arrays → Std.Arrays}/IsSquareArray.md +5 -6
- package/docs/{Microsoft.Quantum.Arrays → Std.Arrays}/Mapped.md +5 -6
- package/docs/{Microsoft.Quantum.Arrays → Std.Arrays}/MappedByIndex.md +5 -6
- package/docs/{Microsoft.Quantum.Arrays → Std.Arrays}/MappedOverRange.md +5 -6
- package/docs/{Microsoft.Quantum.Arrays → Std.Arrays}/Most.md +5 -6
- package/docs/{Microsoft.Quantum.Arrays → Std.Arrays}/MostAndTail.md +5 -6
- package/docs/{Microsoft.Quantum.Arrays → Std.Arrays}/Padded.md +5 -6
- package/docs/{Microsoft.Quantum.Arrays → Std.Arrays}/Partitioned.md +5 -6
- package/docs/{Microsoft.Quantum.Arrays → Std.Arrays}/Rest.md +5 -6
- package/docs/{Microsoft.Quantum.Arrays → Std.Arrays}/Reversed.md +5 -6
- package/docs/{Microsoft.Quantum.Arrays → Std.Arrays}/SequenceI.md +5 -6
- package/docs/{Microsoft.Quantum.Arrays → Std.Arrays}/SequenceL.md +5 -6
- package/docs/{Microsoft.Quantum.Arrays → Std.Arrays}/Sorted.md +5 -6
- package/docs/{Microsoft.Quantum.Arrays → Std.Arrays}/Subarray.md +5 -6
- package/docs/{Microsoft.Quantum.Arrays → Std.Arrays}/Swapped.md +5 -6
- package/docs/{Microsoft.Quantum.Arrays → Std.Arrays}/Tail.md +5 -6
- package/docs/{Microsoft.Quantum.Arrays → Std.Arrays}/Transposed.md +5 -6
- package/docs/{Microsoft.Quantum.Arrays → Std.Arrays}/Unzipped.md +5 -6
- package/docs/{Microsoft.Quantum.Arrays → Std.Arrays}/Where.md +5 -6
- package/docs/{Microsoft.Quantum.Arrays → Std.Arrays}/Windows.md +5 -6
- package/docs/{Microsoft.Quantum.Arrays → Std.Arrays}/Zipped.md +5 -6
- package/docs/{Microsoft.Quantum.Canon → Std.Canon}/ApplyCNOTChain.md +4 -4
- package/docs/{Microsoft.Quantum.Canon → Std.Canon}/ApplyControlledOnBitString.md +4 -4
- package/docs/{Microsoft.Quantum.Canon → Std.Canon}/ApplyControlledOnInt.md +4 -4
- package/docs/{Microsoft.Quantum.Canon → Std.Canon}/ApplyP.md +4 -4
- package/docs/{Microsoft.Quantum.Canon → Std.Canon}/ApplyPauli.md +4 -4
- package/docs/{Microsoft.Quantum.Canon → Std.Canon}/ApplyPauliFromBitString.md +4 -4
- package/docs/{Microsoft.Quantum.Canon → Std.Canon}/ApplyPauliFromInt.md +4 -4
- package/docs/{Microsoft.Quantum.Canon → Std.Canon}/ApplyQFT.md +4 -4
- package/docs/{Microsoft.Quantum.Canon → Std.Canon}/ApplyToEach.md +4 -4
- package/docs/{Microsoft.Quantum.Canon → Std.Canon}/ApplyToEachA.md +4 -4
- package/docs/{Microsoft.Quantum.Canon → Std.Canon}/ApplyToEachC.md +4 -4
- package/docs/{Microsoft.Quantum.Canon → Std.Canon}/ApplyToEachCA.md +4 -4
- package/docs/{Microsoft.Quantum.Canon → Std.Canon}/ApplyXorInPlace.md +4 -4
- package/docs/{Microsoft.Quantum.Canon → Std.Canon}/ApplyXorInPlaceL.md +4 -4
- package/docs/{Microsoft.Quantum.Canon → Std.Canon}/CX.md +4 -4
- package/docs/{Microsoft.Quantum.Canon → Std.Canon}/CY.md +4 -4
- package/docs/{Microsoft.Quantum.Canon → Std.Canon}/CZ.md +4 -4
- package/docs/{Microsoft.Quantum.Canon → Std.Canon}/Fst.md +4 -4
- package/docs/Std.Canon/Relabel.md +49 -0
- package/docs/{Microsoft.Quantum.Canon → Std.Canon}/Snd.md +4 -4
- package/docs/{Microsoft.Quantum.Canon → Std.Canon}/SwapReverseRegister.md +4 -4
- package/docs/{Microsoft.Quantum.Convert → Std.Convert}/BigIntAsBoolArray.md +5 -6
- package/docs/{Microsoft.Quantum.Convert → Std.Convert}/BoolArrayAsBigInt.md +5 -6
- package/docs/{Microsoft.Quantum.Convert → Std.Convert}/BoolArrayAsInt.md +5 -6
- package/docs/{Microsoft.Quantum.Convert → Std.Convert}/BoolArrayAsResultArray.md +5 -6
- package/docs/{Microsoft.Quantum.Convert → Std.Convert}/BoolAsResult.md +5 -6
- package/docs/{Microsoft.Quantum.Convert → Std.Convert}/ComplexAsComplexPolar.md +5 -6
- package/docs/{Microsoft.Quantum.Convert → Std.Convert}/ComplexPolarAsComplex.md +5 -6
- package/docs/{Microsoft.Quantum.Convert → Std.Convert}/DoubleAsStringWithPrecision.md +5 -6
- package/docs/{Microsoft.Quantum.Convert → Std.Convert}/IntAsBigInt.md +4 -5
- package/docs/{Microsoft.Quantum.Convert → Std.Convert}/IntAsBoolArray.md +5 -6
- package/docs/{Microsoft.Quantum.Convert → Std.Convert}/IntAsDouble.md +4 -4
- package/docs/{Microsoft.Quantum.Convert → Std.Convert}/ResultArrayAsBoolArray.md +5 -6
- package/docs/{Microsoft.Quantum.Convert → Std.Convert}/ResultArrayAsInt.md +5 -6
- package/docs/{Microsoft.Quantum.Convert → Std.Convert}/ResultAsBool.md +5 -6
- package/docs/{Microsoft.Quantum.Diagnostics → Std.Diagnostics}/DumpMachine.md +4 -4
- package/docs/{Microsoft.Quantum.Diagnostics → Std.Diagnostics}/DumpRegister.md +5 -6
- package/docs/{Microsoft.Quantum.Diagnostics → Std.Diagnostics}/Fact.md +5 -6
- package/docs/{Microsoft.Quantum.Intrinsic → Std.Intrinsic}/AND.md +5 -6
- package/docs/{Microsoft.Quantum.Intrinsic → Std.Intrinsic}/CCNOT.md +5 -6
- package/docs/{Microsoft.Quantum.Intrinsic → Std.Intrinsic}/CNOT.md +5 -6
- package/docs/{Microsoft.Quantum.Intrinsic → Std.Intrinsic}/Exp.md +5 -6
- package/docs/{Microsoft.Quantum.Intrinsic → Std.Intrinsic}/H.md +5 -6
- package/docs/{Microsoft.Quantum.Intrinsic → Std.Intrinsic}/I.md +5 -6
- package/docs/{Microsoft.Quantum.Intrinsic → Std.Intrinsic}/M.md +5 -6
- package/docs/{Microsoft.Quantum.Intrinsic → Std.Intrinsic}/Measure.md +5 -6
- package/docs/{Microsoft.Quantum.Intrinsic → Std.Intrinsic}/Message.md +5 -6
- package/docs/{Microsoft.Quantum.Intrinsic → Std.Intrinsic}/R.md +5 -6
- package/docs/{Microsoft.Quantum.Intrinsic → Std.Intrinsic}/R1.md +5 -6
- package/docs/{Microsoft.Quantum.Intrinsic → Std.Intrinsic}/R1Frac.md +5 -6
- package/docs/{Microsoft.Quantum.Intrinsic → Std.Intrinsic}/RFrac.md +5 -6
- package/docs/{Microsoft.Quantum.Intrinsic → Std.Intrinsic}/Reset.md +5 -6
- package/docs/{Microsoft.Quantum.Intrinsic → Std.Intrinsic}/ResetAll.md +5 -6
- package/docs/{Microsoft.Quantum.Intrinsic → Std.Intrinsic}/Rx.md +5 -6
- package/docs/{Microsoft.Quantum.Intrinsic → Std.Intrinsic}/Rxx.md +5 -6
- package/docs/{Microsoft.Quantum.Intrinsic → Std.Intrinsic}/Ry.md +5 -6
- package/docs/{Microsoft.Quantum.Intrinsic → Std.Intrinsic}/Ryy.md +5 -6
- package/docs/{Microsoft.Quantum.Intrinsic → Std.Intrinsic}/Rz.md +5 -6
- package/docs/{Microsoft.Quantum.Intrinsic → Std.Intrinsic}/Rzz.md +5 -6
- package/docs/{Microsoft.Quantum.Intrinsic → Std.Intrinsic}/S.md +5 -6
- package/docs/{Microsoft.Quantum.Intrinsic → Std.Intrinsic}/SWAP.md +5 -6
- package/docs/{Microsoft.Quantum.Intrinsic → Std.Intrinsic}/T.md +5 -6
- package/docs/{Microsoft.Quantum.Intrinsic → Std.Intrinsic}/X.md +5 -6
- package/docs/{Microsoft.Quantum.Intrinsic → Std.Intrinsic}/Y.md +5 -6
- package/docs/{Microsoft.Quantum.Intrinsic → Std.Intrinsic}/Z.md +5 -6
- package/docs/{Microsoft.Quantum.Logical → Std.Logical}/Xor.md +4 -4
- package/docs/{Microsoft.Quantum.Math → Std.Math}/AbsComplex.md +5 -6
- package/docs/{Microsoft.Quantum.Math → Std.Math}/AbsComplexPolar.md +5 -6
- package/docs/{Microsoft.Quantum.Math → Std.Math}/AbsD.md +4 -5
- package/docs/{Microsoft.Quantum.Math → Std.Math}/AbsI.md +4 -5
- package/docs/{Microsoft.Quantum.Math → Std.Math}/AbsL.md +4 -6
- package/docs/{Microsoft.Quantum.Math → Std.Math}/AbsSquaredComplex.md +5 -6
- package/docs/{Microsoft.Quantum.Math → Std.Math}/AbsSquaredComplexPolar.md +5 -6
- package/docs/{Microsoft.Quantum.Math → Std.Math}/ApproximateFactorial.md +5 -6
- package/docs/{Microsoft.Quantum.Math → Std.Math}/ArcCos.md +4 -4
- package/docs/{Microsoft.Quantum.Math → Std.Math}/ArcCosh.md +4 -5
- package/docs/{Microsoft.Quantum.Math → Std.Math}/ArcSin.md +4 -5
- package/docs/{Microsoft.Quantum.Math → Std.Math}/ArcSinh.md +4 -5
- package/docs/{Microsoft.Quantum.Math → Std.Math}/ArcTan.md +4 -5
- package/docs/{Microsoft.Quantum.Math → Std.Math}/ArcTan2.md +4 -5
- package/docs/{Microsoft.Quantum.Math → Std.Math}/ArcTanh.md +4 -5
- package/docs/{Microsoft.Quantum.Math → Std.Math}/ArgComplex.md +5 -6
- package/docs/{Microsoft.Quantum.Math → Std.Math}/ArgComplexPolar.md +5 -6
- package/docs/{Microsoft.Quantum.Math → Std.Math}/Binom.md +5 -6
- package/docs/{Microsoft.Quantum.Math → Std.Math}/BitSizeI.md +4 -4
- package/docs/{Microsoft.Quantum.Math → Std.Math}/BitSizeL.md +4 -5
- package/docs/{Microsoft.Quantum.Math → Std.Math}/Ceiling.md +4 -5
- package/docs/{Microsoft.Quantum.Math → Std.Math}/Complex.md +4 -4
- package/docs/{Microsoft.Quantum.Math → Std.Math}/ComplexPolar.md +5 -6
- package/docs/{Microsoft.Quantum.Math → Std.Math}/ContinuedFractionConvergentI.md +4 -5
- package/docs/{Microsoft.Quantum.Math → Std.Math}/ContinuedFractionConvergentL.md +4 -5
- package/docs/{Microsoft.Quantum.Math → Std.Math}/Cos.md +4 -5
- package/docs/{Microsoft.Quantum.Math → Std.Math}/Cosh.md +4 -5
- package/docs/{Microsoft.Quantum.Math → Std.Math}/DivRemI.md +4 -4
- package/docs/{Microsoft.Quantum.Math → Std.Math}/DivRemL.md +4 -5
- package/docs/{Microsoft.Quantum.Math → Std.Math}/DividedByC.md +5 -6
- package/docs/{Microsoft.Quantum.Math → Std.Math}/DividedByCP.md +5 -6
- package/docs/{Microsoft.Quantum.Math → Std.Math}/E.md +5 -6
- package/docs/{Microsoft.Quantum.Math → Std.Math}/ExpModI.md +4 -5
- package/docs/{Microsoft.Quantum.Math → Std.Math}/ExpModL.md +4 -5
- package/docs/{Microsoft.Quantum.Math → Std.Math}/ExtendedGreatestCommonDivisorI.md +4 -5
- package/docs/{Microsoft.Quantum.Math → Std.Math}/ExtendedGreatestCommonDivisorL.md +4 -5
- package/docs/{Microsoft.Quantum.Math → Std.Math}/FactorialI.md +4 -4
- package/docs/{Microsoft.Quantum.Math → Std.Math}/FactorialL.md +5 -6
- package/docs/{Microsoft.Quantum.Math → Std.Math}/Floor.md +4 -5
- package/docs/{Microsoft.Quantum.Math → Std.Math}/GreatestCommonDivisorI.md +4 -4
- package/docs/{Microsoft.Quantum.Math → Std.Math}/GreatestCommonDivisorL.md +4 -5
- package/docs/{Microsoft.Quantum.Math → Std.Math}/HammingWeightI.md +4 -5
- package/docs/{Microsoft.Quantum.Math → Std.Math}/InverseModI.md +5 -6
- package/docs/{Microsoft.Quantum.Math → Std.Math}/InverseModL.md +5 -6
- package/docs/{Microsoft.Quantum.Math → Std.Math}/IsCoprimeI.md +5 -6
- package/docs/{Microsoft.Quantum.Math → Std.Math}/IsCoprimeL.md +5 -6
- package/docs/{Microsoft.Quantum.Math → Std.Math}/IsInfinite.md +5 -6
- package/docs/{Microsoft.Quantum.Math → Std.Math}/IsNaN.md +4 -4
- package/docs/{Microsoft.Quantum.Math → Std.Math}/LargestFixedPoint.md +5 -6
- package/docs/{Microsoft.Quantum.Math → Std.Math}/Lg.md +4 -5
- package/docs/{Microsoft.Quantum.Math → Std.Math}/Log.md +4 -5
- package/docs/{Microsoft.Quantum.Math → Std.Math}/Log10.md +4 -5
- package/docs/{Microsoft.Quantum.Math → Std.Math}/LogFactorialD.md +5 -6
- package/docs/{Microsoft.Quantum.Math → Std.Math}/LogGammaD.md +5 -6
- package/docs/{Microsoft.Quantum.Math → Std.Math}/LogOf2.md +5 -6
- package/docs/{Microsoft.Quantum.Math → Std.Math}/Max.md +5 -6
- package/docs/{Microsoft.Quantum.Math → Std.Math}/MaxD.md +4 -5
- package/docs/{Microsoft.Quantum.Math → Std.Math}/MaxI.md +4 -5
- package/docs/{Microsoft.Quantum.Math → Std.Math}/MaxL.md +4 -5
- package/docs/{Microsoft.Quantum.Math → Std.Math}/Min.md +5 -6
- package/docs/{Microsoft.Quantum.Math → Std.Math}/MinD.md +4 -5
- package/docs/{Microsoft.Quantum.Math → Std.Math}/MinI.md +4 -5
- package/docs/{Microsoft.Quantum.Math → Std.Math}/MinL.md +4 -5
- package/docs/{Microsoft.Quantum.Math → Std.Math}/MinusC.md +5 -6
- package/docs/{Microsoft.Quantum.Math → Std.Math}/MinusCP.md +5 -6
- package/docs/{Microsoft.Quantum.Math → Std.Math}/ModulusI.md +4 -5
- package/docs/{Microsoft.Quantum.Math → Std.Math}/ModulusL.md +4 -5
- package/docs/{Microsoft.Quantum.Math → Std.Math}/NegationC.md +5 -6
- package/docs/{Microsoft.Quantum.Math → Std.Math}/NegationCP.md +5 -6
- package/docs/{Microsoft.Quantum.Math → Std.Math}/PI.md +4 -4
- package/docs/{Microsoft.Quantum.Math → Std.Math}/PNorm.md +5 -6
- package/docs/{Microsoft.Quantum.Math → Std.Math}/PNormalized.md +5 -6
- package/docs/{Microsoft.Quantum.Math → Std.Math}/PlusC.md +5 -6
- package/docs/{Microsoft.Quantum.Math → Std.Math}/PlusCP.md +5 -6
- package/docs/{Microsoft.Quantum.Math → Std.Math}/PowC.md +5 -6
- package/docs/{Microsoft.Quantum.Math → Std.Math}/PowCP.md +5 -6
- package/docs/{Microsoft.Quantum.Math → Std.Math}/RealMod.md +5 -6
- package/docs/{Microsoft.Quantum.Math → Std.Math}/Round.md +4 -5
- package/docs/{Microsoft.Quantum.Math → Std.Math}/SignD.md +4 -5
- package/docs/{Microsoft.Quantum.Math → Std.Math}/SignI.md +4 -4
- package/docs/{Microsoft.Quantum.Math → Std.Math}/SignL.md +4 -5
- package/docs/{Microsoft.Quantum.Math → Std.Math}/Sin.md +4 -5
- package/docs/{Microsoft.Quantum.Math → Std.Math}/Sinh.md +4 -5
- package/docs/{Microsoft.Quantum.Math → Std.Math}/SmallestFixedPoint.md +4 -4
- package/docs/{Microsoft.Quantum.Math → Std.Math}/Sqrt.md +4 -4
- package/docs/{Microsoft.Quantum.Math → Std.Math}/SquaredNorm.md +4 -4
- package/docs/{Microsoft.Quantum.Math → Std.Math}/Tan.md +4 -5
- package/docs/{Microsoft.Quantum.Math → Std.Math}/Tanh.md +4 -5
- package/docs/{Microsoft.Quantum.Math → Std.Math}/TimesC.md +5 -6
- package/docs/{Microsoft.Quantum.Math → Std.Math}/TimesCP.md +5 -6
- package/docs/{Microsoft.Quantum.Math → Std.Math}/TrailingZeroCountI.md +4 -5
- package/docs/{Microsoft.Quantum.Math → Std.Math}/TrailingZeroCountL.md +4 -5
- package/docs/{Microsoft.Quantum.Math → Std.Math}/Truncate.md +4 -4
- package/docs/{Microsoft.Quantum.Measurement → Std.Measurement}/MResetEachZ.md +5 -6
- package/docs/{Microsoft.Quantum.Measurement → Std.Measurement}/MResetX.md +5 -6
- package/docs/{Microsoft.Quantum.Measurement → Std.Measurement}/MResetY.md +5 -6
- package/docs/{Microsoft.Quantum.Measurement → Std.Measurement}/MResetZ.md +5 -6
- package/docs/{Microsoft.Quantum.Measurement → Std.Measurement}/MeasureAllZ.md +4 -4
- package/docs/{Microsoft.Quantum.Measurement → Std.Measurement}/MeasureEachZ.md +5 -6
- package/docs/{Microsoft.Quantum.Measurement → Std.Measurement}/MeasureInteger.md +5 -6
- package/docs/{Microsoft.Quantum.ResourceEstimation → Std.ResourceEstimation}/AccountForEstimates.md +5 -6
- package/docs/{Microsoft.Quantum.ResourceEstimation → Std.ResourceEstimation}/AuxQubitCount.md +4 -4
- package/docs/{Microsoft.Quantum.ResourceEstimation → Std.ResourceEstimation}/BeginEstimateCaching.md +5 -6
- package/docs/{Microsoft.Quantum.ResourceEstimation → Std.ResourceEstimation}/BeginRepeatEstimates.md +5 -6
- package/docs/{Microsoft.Quantum.ResourceEstimation → Std.ResourceEstimation}/CczCount.md +4 -5
- package/docs/{Microsoft.Quantum.ResourceEstimation → Std.ResourceEstimation}/EndEstimateCaching.md +4 -5
- package/docs/{Microsoft.Quantum.ResourceEstimation → Std.ResourceEstimation}/EndRepeatEstimates.md +4 -5
- package/docs/{Microsoft.Quantum.ResourceEstimation → Std.ResourceEstimation}/MeasurementCount.md +4 -5
- package/docs/{Microsoft.Quantum.ResourceEstimation → Std.ResourceEstimation}/PSSPCLayout.md +4 -5
- package/docs/{Microsoft.Quantum.ResourceEstimation → Std.ResourceEstimation}/RepeatEstimates.md +5 -6
- package/docs/{Microsoft.Quantum.ResourceEstimation → Std.ResourceEstimation}/RotationCount.md +4 -5
- package/docs/{Microsoft.Quantum.ResourceEstimation → Std.ResourceEstimation}/RotationDepth.md +4 -5
- package/docs/{Microsoft.Quantum.ResourceEstimation → Std.ResourceEstimation}/SingleVariant.md +4 -4
- package/docs/{Microsoft.Quantum.ResourceEstimation → Std.ResourceEstimation}/TCount.md +4 -5
- package/docs/toc.yml +252 -251
- package/lib/node/qsc_wasm.cjs +2 -2
- package/lib/node/qsc_wasm_bg.wasm +0 -0
- package/lib/web/qsc_wasm.js +2 -2
- package/lib/web/qsc_wasm_bg.wasm +0 -0
- package/package.json +1 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Canon.ApplyXorInPlace
|
|
3
3
|
title: ApplyXorInPlace operation
|
|
4
|
-
ms.date: 09/
|
|
4
|
+
ms.date: 09/25/2024 12:00:00 AM
|
|
5
5
|
ms.topic: managed-reference
|
|
6
6
|
qsharp.kind: operation
|
|
7
|
-
qsharp.namespace:
|
|
7
|
+
qsharp.namespace: Std.Canon
|
|
8
8
|
qsharp.name: ApplyXorInPlace
|
|
9
9
|
qsharp.summary: "Applies a bitwise-XOR operation between a classical integer and an integer represented by a register of qubits."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# ApplyXorInPlace operation
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Canon.ApplyXorInPlace
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
operation ApplyXorInPlace(value : Int, target : Qubit[]) : Unit is Adj + Ctl
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Canon.ApplyXorInPlaceL
|
|
3
3
|
title: ApplyXorInPlaceL operation
|
|
4
|
-
ms.date: 09/
|
|
4
|
+
ms.date: 09/25/2024 12:00:00 AM
|
|
5
5
|
ms.topic: managed-reference
|
|
6
6
|
qsharp.kind: operation
|
|
7
|
-
qsharp.namespace:
|
|
7
|
+
qsharp.namespace: Std.Canon
|
|
8
8
|
qsharp.name: ApplyXorInPlaceL
|
|
9
9
|
qsharp.summary: "Applies a bitwise-XOR operation between a classical integer and an integer represented by a register of qubits."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# ApplyXorInPlaceL operation
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Canon.ApplyXorInPlaceL
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
operation ApplyXorInPlaceL(value : BigInt, target : Qubit[]) : Unit is Adj + Ctl
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Canon.CX
|
|
3
3
|
title: CX operation
|
|
4
|
-
ms.date: 09/
|
|
4
|
+
ms.date: 09/25/2024 12:00:00 AM
|
|
5
5
|
ms.topic: managed-reference
|
|
6
6
|
qsharp.kind: operation
|
|
7
|
-
qsharp.namespace:
|
|
7
|
+
qsharp.namespace: Std.Canon
|
|
8
8
|
qsharp.name: CX
|
|
9
9
|
qsharp.summary: "Applies the controlled-X (CX) gate to a pair of qubits."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# CX operation
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Canon.CX
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
operation CX(control : Qubit, target : Qubit) : Unit is Adj + Ctl
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Canon.CY
|
|
3
3
|
title: CY operation
|
|
4
|
-
ms.date: 09/
|
|
4
|
+
ms.date: 09/25/2024 12:00:00 AM
|
|
5
5
|
ms.topic: managed-reference
|
|
6
6
|
qsharp.kind: operation
|
|
7
|
-
qsharp.namespace:
|
|
7
|
+
qsharp.namespace: Std.Canon
|
|
8
8
|
qsharp.name: CY
|
|
9
9
|
qsharp.summary: "Applies the controlled-Y (CY) gate to a pair of qubits."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# CY operation
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Canon.CY
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
operation CY(control : Qubit, target : Qubit) : Unit is Adj + Ctl
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Canon.CZ
|
|
3
3
|
title: CZ operation
|
|
4
|
-
ms.date: 09/
|
|
4
|
+
ms.date: 09/25/2024 12:00:00 AM
|
|
5
5
|
ms.topic: managed-reference
|
|
6
6
|
qsharp.kind: operation
|
|
7
|
-
qsharp.namespace:
|
|
7
|
+
qsharp.namespace: Std.Canon
|
|
8
8
|
qsharp.name: CZ
|
|
9
9
|
qsharp.summary: "Applies the controlled-Z (CZ) gate to a pair of qubits."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# CZ operation
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Canon.CZ
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
operation CZ(control : Qubit, target : Qubit) : Unit is Adj + Ctl
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Canon.Fst
|
|
3
3
|
title: Fst function
|
|
4
|
-
ms.date: 09/
|
|
4
|
+
ms.date: 09/25/2024 12:00:00 AM
|
|
5
5
|
ms.topic: managed-reference
|
|
6
6
|
qsharp.kind: function
|
|
7
|
-
qsharp.namespace:
|
|
7
|
+
qsharp.namespace: Std.Canon
|
|
8
8
|
qsharp.name: Fst
|
|
9
9
|
qsharp.summary: "Given a pair, returns its first element."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# Fst function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Canon.Fst
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function Fst<'T, 'U>(pair : ('T, 'U)) : 'T
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
---
|
|
2
|
+
uid: Qdk.Std.Canon.Relabel
|
|
3
|
+
title: Relabel operation
|
|
4
|
+
ms.date: 09/25/2024 12:00:00 AM
|
|
5
|
+
ms.topic: managed-reference
|
|
6
|
+
qsharp.kind: operation
|
|
7
|
+
qsharp.namespace: Std.Canon
|
|
8
|
+
qsharp.name: Relabel
|
|
9
|
+
qsharp.summary: "Relabels the qubits in the `current` array with the qubits in the `updated` array. The `updated` array must be a valid permutation of the `current` array."
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Relabel operation
|
|
13
|
+
|
|
14
|
+
Fully qualified name: Std.Canon.Relabel
|
|
15
|
+
|
|
16
|
+
```qsharp
|
|
17
|
+
operation Relabel(current : Qubit[], updated : Qubit[]) : Unit is Adj
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Summary
|
|
21
|
+
Relabels the qubits in the `current` array with the qubits in the `updated` array. The `updated` array
|
|
22
|
+
must be a valid permutation of the `current` array.
|
|
23
|
+
|
|
24
|
+
## Input
|
|
25
|
+
### current
|
|
26
|
+
Array of qubits to be relabeled.
|
|
27
|
+
### updated
|
|
28
|
+
Array of qubits with which to relabel the `current` array.
|
|
29
|
+
|
|
30
|
+
## Remarks
|
|
31
|
+
This operation is useful when you need to relabel qubits in a way that does not incur any quantum operations.
|
|
32
|
+
Note that when compiling for execution on hardware with limited qubit connectivity, this operation
|
|
33
|
+
may not result in any changes to qubit adjacency and one or more `SWAP` gates may still be required.
|
|
34
|
+
|
|
35
|
+
## Example
|
|
36
|
+
The following example demonstrates how to relabel qubits in a register:
|
|
37
|
+
```qsharp
|
|
38
|
+
use qubits = Qubit[3];
|
|
39
|
+
let newOrder = [qubits[2], qubits[0], qubits[1]];
|
|
40
|
+
Relabel(qubits, newOrder);
|
|
41
|
+
```
|
|
42
|
+
After this operation, any use of `qubits[0]` will refer to the qubit that was originally `qubits[2]`, and so on.
|
|
43
|
+
To exchange the labels on two qubits, the virtual equivalent of a `SWAP` gate, you can use the following code:
|
|
44
|
+
```qsharp
|
|
45
|
+
use (q0, q1) = (Qubit(), Qubit());
|
|
46
|
+
Relabel([q0, q1], [q1, q0]);
|
|
47
|
+
```
|
|
48
|
+
Note that the adjoint of this operation effectively changes the order of arguments, such that
|
|
49
|
+
`Adjoint Relabel(qubits, newOrder)` is equivalent to `Relabel(newOrder, qubits)`.
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Canon.Snd
|
|
3
3
|
title: Snd function
|
|
4
|
-
ms.date: 09/
|
|
4
|
+
ms.date: 09/25/2024 12:00:00 AM
|
|
5
5
|
ms.topic: managed-reference
|
|
6
6
|
qsharp.kind: function
|
|
7
|
-
qsharp.namespace:
|
|
7
|
+
qsharp.namespace: Std.Canon
|
|
8
8
|
qsharp.name: Snd
|
|
9
9
|
qsharp.summary: "Given a pair, returns its second element."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# Snd function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Canon.Snd
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function Snd<'T, 'U>(pair : ('T, 'U)) : 'U
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Canon.SwapReverseRegister
|
|
3
3
|
title: SwapReverseRegister operation
|
|
4
|
-
ms.date: 09/
|
|
4
|
+
ms.date: 09/25/2024 12:00:00 AM
|
|
5
5
|
ms.topic: managed-reference
|
|
6
6
|
qsharp.kind: operation
|
|
7
|
-
qsharp.namespace:
|
|
7
|
+
qsharp.namespace: Std.Canon
|
|
8
8
|
qsharp.name: SwapReverseRegister
|
|
9
9
|
qsharp.summary: "Uses SWAP gates to reverse the order of the qubits in a register."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# SwapReverseRegister operation
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Canon.SwapReverseRegister
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
operation SwapReverseRegister(register : Qubit[]) : Unit is Adj + Ctl
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Convert.BigIntAsBoolArray
|
|
3
3
|
title: BigIntAsBoolArray function
|
|
4
|
-
ms.date: 09/
|
|
4
|
+
ms.date: 09/25/2024 12:00:00 AM
|
|
5
5
|
ms.topic: managed-reference
|
|
6
6
|
qsharp.kind: function
|
|
7
|
-
qsharp.namespace:
|
|
7
|
+
qsharp.namespace: Std.Convert
|
|
8
8
|
qsharp.name: BigIntAsBoolArray
|
|
9
|
-
qsharp.summary: "Produces a binary representation of a non-negative BigInt, using the little-endian representation for the returned array."
|
|
9
|
+
qsharp.summary: "Produces a binary representation of a non-negative BigInt, using the little-endian representation for the returned array. # Input ## number A non-negative BigInt to be converted to an array of Boolean values. ## bits The number of bits in the binary representation of `number`. # Output An array of Boolean values representing `number`. # Remarks The input `bits` must be non-negative. The input `number` must be between 0 and 2^bits - 1."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# BigIntAsBoolArray function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Convert.BigIntAsBoolArray
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function BigIntAsBoolArray(number : BigInt, bits : Int) : Bool[]
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
## Summary
|
|
21
20
|
Produces a binary representation of a non-negative BigInt, using the
|
|
22
21
|
little-endian representation for the returned array.
|
|
23
22
|
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Convert.BoolArrayAsBigInt
|
|
3
3
|
title: BoolArrayAsBigInt function
|
|
4
|
-
ms.date: 09/
|
|
4
|
+
ms.date: 09/25/2024 12:00:00 AM
|
|
5
5
|
ms.topic: managed-reference
|
|
6
6
|
qsharp.kind: function
|
|
7
|
-
qsharp.namespace:
|
|
7
|
+
qsharp.namespace: Std.Convert
|
|
8
8
|
qsharp.name: BoolArrayAsBigInt
|
|
9
|
-
qsharp.summary: "Converts an array of Boolean values into a non-negative BigInt, interpreting the array as a binary representation in little-endian format."
|
|
9
|
+
qsharp.summary: "Converts an array of Boolean values into a non-negative BigInt, interpreting the array as a binary representation in little-endian format. # Input ## boolArray An array of Boolean values representing the binary digits of a BigInt. # Output A BigInt represented by `boolArray`. # Remarks The function interprets the array in little-endian format, where the first element of the array represents the least significant bit. The input `boolArray` should not be empty."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# BoolArrayAsBigInt function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Convert.BoolArrayAsBigInt
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function BoolArrayAsBigInt(boolArray : Bool[]) : BigInt
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
## Summary
|
|
21
20
|
Converts an array of Boolean values into a non-negative BigInt, interpreting the
|
|
22
21
|
array as a binary representation in little-endian format.
|
|
23
22
|
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Convert.BoolArrayAsInt
|
|
3
3
|
title: BoolArrayAsInt function
|
|
4
|
-
ms.date: 09/
|
|
4
|
+
ms.date: 09/25/2024 12:00:00 AM
|
|
5
5
|
ms.topic: managed-reference
|
|
6
6
|
qsharp.kind: function
|
|
7
|
-
qsharp.namespace:
|
|
7
|
+
qsharp.namespace: Std.Convert
|
|
8
8
|
qsharp.name: BoolArrayAsInt
|
|
9
|
-
qsharp.summary: "Produces a non-negative integer from a string of bits in little-endian format. `bits[0]` represents the least significant bit."
|
|
9
|
+
qsharp.summary: "Produces a non-negative integer from a string of bits in little-endian format. `bits[0]` represents the least significant bit. # Input ## bits Bits in binary representation of number."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# BoolArrayAsInt function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Convert.BoolArrayAsInt
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function BoolArrayAsInt(bits : Bool[]) : Int
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
## Summary
|
|
21
20
|
Produces a non-negative integer from a string of bits in little-endian format.
|
|
22
21
|
`bits[0]` represents the least significant bit.
|
|
23
22
|
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Convert.BoolArrayAsResultArray
|
|
3
3
|
title: BoolArrayAsResultArray function
|
|
4
|
-
ms.date: 09/
|
|
4
|
+
ms.date: 09/25/2024 12:00:00 AM
|
|
5
5
|
ms.topic: managed-reference
|
|
6
6
|
qsharp.kind: function
|
|
7
|
-
qsharp.namespace:
|
|
7
|
+
qsharp.namespace: Std.Convert
|
|
8
8
|
qsharp.name: BoolArrayAsResultArray
|
|
9
|
-
qsharp.summary: "Converts a `Bool[]` type to a `Result[]` type, where `true` is mapped to `One` and `false` is mapped to `Zero`."
|
|
9
|
+
qsharp.summary: "Converts a `Bool[]` type to a `Result[]` type, where `true` is mapped to `One` and `false` is mapped to `Zero`. # Input ## input `Bool[]` to be converted. # Output A `Result[]` representing the `input`."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# BoolArrayAsResultArray function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Convert.BoolArrayAsResultArray
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function BoolArrayAsResultArray(input : Bool[]) : Result[]
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
## Summary
|
|
21
20
|
Converts a `Bool[]` type to a `Result[]` type, where `true`
|
|
22
21
|
is mapped to `One` and `false` is mapped to `Zero`.
|
|
23
22
|
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Convert.BoolAsResult
|
|
3
3
|
title: BoolAsResult function
|
|
4
|
-
ms.date: 09/
|
|
4
|
+
ms.date: 09/25/2024 12:00:00 AM
|
|
5
5
|
ms.topic: managed-reference
|
|
6
6
|
qsharp.kind: function
|
|
7
|
-
qsharp.namespace:
|
|
7
|
+
qsharp.namespace: Std.Convert
|
|
8
8
|
qsharp.name: BoolAsResult
|
|
9
|
-
qsharp.summary: "Converts a `Bool` type to a `Result` type, where `true` is mapped to `One` and `false` is mapped to `Zero`."
|
|
9
|
+
qsharp.summary: "Converts a `Bool` type to a `Result` type, where `true` is mapped to `One` and `false` is mapped to `Zero`. # Input ## input `Bool` to be converted. # Output A `Result` representing the `input`."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# BoolAsResult function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Convert.BoolAsResult
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function BoolAsResult(input : Bool) : Result
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
## Summary
|
|
21
20
|
Converts a `Bool` type to a `Result` type, where `true` is mapped to
|
|
22
21
|
`One` and `false` is mapped to `Zero`.
|
|
23
22
|
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Convert.ComplexAsComplexPolar
|
|
3
3
|
title: ComplexAsComplexPolar function
|
|
4
|
-
ms.date: 09/
|
|
4
|
+
ms.date: 09/25/2024 12:00:00 AM
|
|
5
5
|
ms.topic: managed-reference
|
|
6
6
|
qsharp.kind: function
|
|
7
|
-
qsharp.namespace:
|
|
7
|
+
qsharp.namespace: Std.Convert
|
|
8
8
|
qsharp.name: ComplexAsComplexPolar
|
|
9
|
-
qsharp.summary: "Converts a complex number of type `Complex` to a complex number of type `ComplexPolar`."
|
|
9
|
+
qsharp.summary: "Converts a complex number of type `Complex` to a complex number of type `ComplexPolar`. # Input ## input Complex number c = x + y𝑖. # Output Complex number c = r⋅e^(t𝑖)."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# ComplexAsComplexPolar function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Convert.ComplexAsComplexPolar
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function ComplexAsComplexPolar(input : Complex) : ComplexPolar
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
## Summary
|
|
21
20
|
Converts a complex number of type `Complex` to a complex
|
|
22
21
|
number of type `ComplexPolar`.
|
|
23
22
|
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Convert.ComplexPolarAsComplex
|
|
3
3
|
title: ComplexPolarAsComplex function
|
|
4
|
-
ms.date: 09/
|
|
4
|
+
ms.date: 09/25/2024 12:00:00 AM
|
|
5
5
|
ms.topic: managed-reference
|
|
6
6
|
qsharp.kind: function
|
|
7
|
-
qsharp.namespace:
|
|
7
|
+
qsharp.namespace: Std.Convert
|
|
8
8
|
qsharp.name: ComplexPolarAsComplex
|
|
9
|
-
qsharp.summary: "Converts a complex number of type `ComplexPolar` to a complex number of type `Complex`."
|
|
9
|
+
qsharp.summary: "Converts a complex number of type `ComplexPolar` to a complex number of type `Complex`. # Input ## input Complex number c = r⋅e^(t𝑖). # Output Complex number c = x + y𝑖."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# ComplexPolarAsComplex function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Convert.ComplexPolarAsComplex
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function ComplexPolarAsComplex(input : ComplexPolar) : Complex
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
## Summary
|
|
21
20
|
Converts a complex number of type `ComplexPolar` to a complex
|
|
22
21
|
number of type `Complex`.
|
|
23
22
|
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Convert.DoubleAsStringWithPrecision
|
|
3
3
|
title: DoubleAsStringWithPrecision function
|
|
4
|
-
ms.date: 09/
|
|
4
|
+
ms.date: 09/25/2024 12:00:00 AM
|
|
5
5
|
ms.topic: managed-reference
|
|
6
6
|
qsharp.kind: function
|
|
7
|
-
qsharp.namespace:
|
|
7
|
+
qsharp.namespace: Std.Convert
|
|
8
8
|
qsharp.name: DoubleAsStringWithPrecision
|
|
9
|
-
qsharp.summary: "Converts a given double-precision floating-point number to a string representation with desired precision, rounding if required."
|
|
9
|
+
qsharp.summary: "Converts a given double-precision floating-point number to a string representation with desired precision, rounding if required. # Input ## input Double to be converted. ## precision Non-negative number of digits after the decimal point. # Example ```qsharp Message($"{DoubleAsStringWithPrecision(0.354, 2)}"); // Prints 0.35 Message($"{DoubleAsStringWithPrecision(0.485, 1)}"); // Prints 0.5 Message($"{DoubleAsStringWithPrecision(5.6, 4)}"); // Prints 5.6000 Message($"{DoubleAsStringWithPrecision(2.268, 0)}"); // Prints 2 ```"
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# DoubleAsStringWithPrecision function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Convert.DoubleAsStringWithPrecision
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function DoubleAsStringWithPrecision(input : Double, precision : Int) : String
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
## Summary
|
|
21
20
|
Converts a given double-precision floating-point number to a string representation with desired precision, rounding if required.
|
|
22
21
|
|
|
23
22
|
## Input
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Convert.IntAsBigInt
|
|
3
3
|
title: IntAsBigInt function
|
|
4
|
-
ms.date: 09/
|
|
4
|
+
ms.date: 09/25/2024 12:00:00 AM
|
|
5
5
|
ms.topic: managed-reference
|
|
6
6
|
qsharp.kind: function
|
|
7
|
-
qsharp.namespace:
|
|
7
|
+
qsharp.namespace: Std.Convert
|
|
8
8
|
qsharp.name: IntAsBigInt
|
|
9
9
|
qsharp.summary: "Converts a given integer `number` to an equivalent big integer."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# IntAsBigInt function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Convert.IntAsBigInt
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function IntAsBigInt(number : Int) : BigInt
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
## Summary
|
|
21
20
|
Converts a given integer `number` to an equivalent big integer.
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Convert.IntAsBoolArray
|
|
3
3
|
title: IntAsBoolArray function
|
|
4
|
-
ms.date: 09/
|
|
4
|
+
ms.date: 09/25/2024 12:00:00 AM
|
|
5
5
|
ms.topic: managed-reference
|
|
6
6
|
qsharp.kind: function
|
|
7
|
-
qsharp.namespace:
|
|
7
|
+
qsharp.namespace: Std.Convert
|
|
8
8
|
qsharp.name: IntAsBoolArray
|
|
9
|
-
qsharp.summary: "Produces a binary representation of a non-negative integer, using the little-endian representation for the returned array."
|
|
9
|
+
qsharp.summary: "Produces a binary representation of a non-negative integer, using the little-endian representation for the returned array. # Input ## number A non-negative integer to be converted to an array of Boolean values. ## bits The number of bits in the binary representation of `number`. # Output An array of Boolean values representing `number`. # Remarks The input `bits` must be non-negative. The input `number` must be between 0 and 2^bits - 1."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# IntAsBoolArray function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Convert.IntAsBoolArray
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function IntAsBoolArray(number : Int, bits : Int) : Bool[]
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
## Summary
|
|
21
20
|
Produces a binary representation of a non-negative integer, using the
|
|
22
21
|
little-endian representation for the returned array.
|
|
23
22
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Convert.IntAsDouble
|
|
3
3
|
title: IntAsDouble function
|
|
4
|
-
ms.date: 09/
|
|
4
|
+
ms.date: 09/25/2024 12:00:00 AM
|
|
5
5
|
ms.topic: managed-reference
|
|
6
6
|
qsharp.kind: function
|
|
7
|
-
qsharp.namespace:
|
|
7
|
+
qsharp.namespace: Std.Convert
|
|
8
8
|
qsharp.name: IntAsDouble
|
|
9
9
|
qsharp.summary: "Converts a given integer `number` to an equivalent double-precision floating-point number."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# IntAsDouble function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Convert.IntAsDouble
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function IntAsDouble(number : Int) : Double
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Convert.ResultArrayAsBoolArray
|
|
3
3
|
title: ResultArrayAsBoolArray function
|
|
4
|
-
ms.date: 09/
|
|
4
|
+
ms.date: 09/25/2024 12:00:00 AM
|
|
5
5
|
ms.topic: managed-reference
|
|
6
6
|
qsharp.kind: function
|
|
7
|
-
qsharp.namespace:
|
|
7
|
+
qsharp.namespace: Std.Convert
|
|
8
8
|
qsharp.name: ResultArrayAsBoolArray
|
|
9
|
-
qsharp.summary: "Converts a `Result[]` type to a `Bool[]` type, where `One` is mapped to `true` and `Zero` is mapped to `false`."
|
|
9
|
+
qsharp.summary: "Converts a `Result[]` type to a `Bool[]` type, where `One` is mapped to `true` and `Zero` is mapped to `false`. # Input ## input `Result[]` to be converted. # Output A `Bool[]` representing the `input`."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# ResultArrayAsBoolArray function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Convert.ResultArrayAsBoolArray
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function ResultArrayAsBoolArray(input : Result[]) : Bool[]
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
## Summary
|
|
21
20
|
Converts a `Result[]` type to a `Bool[]` type, where `One`
|
|
22
21
|
is mapped to `true` and `Zero` is mapped to `false`.
|
|
23
22
|
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Convert.ResultArrayAsInt
|
|
3
3
|
title: ResultArrayAsInt function
|
|
4
|
-
ms.date: 09/
|
|
4
|
+
ms.date: 09/25/2024 12:00:00 AM
|
|
5
5
|
ms.topic: managed-reference
|
|
6
6
|
qsharp.kind: function
|
|
7
|
-
qsharp.namespace:
|
|
7
|
+
qsharp.namespace: Std.Convert
|
|
8
8
|
qsharp.name: ResultArrayAsInt
|
|
9
|
-
qsharp.summary: "Produces a non-negative integer from a string of Results in little-endian format."
|
|
9
|
+
qsharp.summary: "Produces a non-negative integer from a string of Results in little-endian format. # Input ## results Results in binary representation of number. # Output A non-negative integer # Example ```qsharp // The following returns 1 let int1 = ResultArrayAsInt([One,Zero]) ```"
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# ResultArrayAsInt function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Convert.ResultArrayAsInt
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function ResultArrayAsInt(results : Result[]) : Int
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
## Summary
|
|
21
20
|
Produces a non-negative integer from a string of Results in little-endian format.
|
|
22
21
|
|
|
23
22
|
## Input
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Convert.ResultAsBool
|
|
3
3
|
title: ResultAsBool function
|
|
4
|
-
ms.date: 09/
|
|
4
|
+
ms.date: 09/25/2024 12:00:00 AM
|
|
5
5
|
ms.topic: managed-reference
|
|
6
6
|
qsharp.kind: function
|
|
7
|
-
qsharp.namespace:
|
|
7
|
+
qsharp.namespace: Std.Convert
|
|
8
8
|
qsharp.name: ResultAsBool
|
|
9
|
-
qsharp.summary: "Converts a `Result` type to a `Bool` type, where `One` is mapped to `true` and `Zero` is mapped to `false`."
|
|
9
|
+
qsharp.summary: "Converts a `Result` type to a `Bool` type, where `One` is mapped to `true` and `Zero` is mapped to `false`. # Input ## input `Result` to be converted. # Output A `Bool` representing the `input`."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# ResultAsBool function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Convert.ResultAsBool
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function ResultAsBool(input : Result) : Bool
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
## Summary
|
|
21
20
|
Converts a `Result` type to a `Bool` type, where `One` is mapped to
|
|
22
21
|
`true` and `Zero` is mapped to `false`.
|
|
23
22
|
|