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,23 +1,22 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Math.FactorialL
|
|
3
3
|
title: FactorialL 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.Math
|
|
8
8
|
qsharp.name: FactorialL
|
|
9
|
-
qsharp.summary: "Returns the factorial of a given number."
|
|
9
|
+
qsharp.summary: "Returns the factorial of a given number. # Input ## n The number to take the factorial of. # Output The factorial of `n`. # See Also - Microsoft.Quantum.Math.FactorialI - Microsoft.Quantum.Math.ApproximateFactorial"
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# FactorialL function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Math.FactorialL
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function FactorialL(n : Int) : BigInt
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
## Summary
|
|
21
20
|
Returns the factorial of a given number.
|
|
22
21
|
|
|
23
22
|
## Input
|
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Math.Floor
|
|
3
3
|
title: Floor 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.Math
|
|
8
8
|
qsharp.name: Floor
|
|
9
9
|
qsharp.summary: "Returns the largest integer less than or equal to the specified number. For example: Floor(3.7) = 3; Floor(-3.1) = -4"
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# Floor function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Math.Floor
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function Floor(value : Double) : Int
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
## Summary
|
|
21
20
|
Returns the largest integer less than or equal to the specified number.
|
|
22
21
|
For example: Floor(3.7) = 3; Floor(-3.1) = -4
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Math.GreatestCommonDivisorI
|
|
3
3
|
title: GreatestCommonDivisorI 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.Math
|
|
8
8
|
qsharp.name: GreatestCommonDivisorI
|
|
9
9
|
qsharp.summary: "Computes the greatest common divisor of two integers. Note: GCD is always positive except that GCD(0,0)=0."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# GreatestCommonDivisorI function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Math.GreatestCommonDivisorI
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function GreatestCommonDivisorI(a : Int, b : Int) : Int
|
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Math.GreatestCommonDivisorL
|
|
3
3
|
title: GreatestCommonDivisorL 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.Math
|
|
8
8
|
qsharp.name: GreatestCommonDivisorL
|
|
9
9
|
qsharp.summary: "Computes the greatest common divisor of two integers. Note: GCD is always positive except that GCD(0,0)=0."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# GreatestCommonDivisorL function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Math.GreatestCommonDivisorL
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function GreatestCommonDivisorL(a : BigInt, b : BigInt) : BigInt
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
## Summary
|
|
21
20
|
Computes the greatest common divisor of two integers.
|
|
22
21
|
Note: GCD is always positive except that GCD(0,0)=0.
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Math.HammingWeightI
|
|
3
3
|
title: HammingWeightI 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.Math
|
|
8
8
|
qsharp.name: HammingWeightI
|
|
9
9
|
qsharp.summary: "Returns the number of 1 bits in the binary representation of integer `n`."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# HammingWeightI function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Math.HammingWeightI
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function HammingWeightI(n : Int) : Int
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
## Summary
|
|
21
20
|
Returns the number of 1 bits in the binary representation of integer `n`.
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Math.InverseModI
|
|
3
3
|
title: InverseModI 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.Math
|
|
8
8
|
qsharp.name: InverseModI
|
|
9
|
-
qsharp.summary: "Returns the multiplicative inverse of a modular integer."
|
|
9
|
+
qsharp.summary: "Returns the multiplicative inverse of a modular integer. # Description This will calculate the multiplicative inverse of a modular integer `b` such that `a • b = 1 (mod modulus)`."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# InverseModI function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Math.InverseModI
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function InverseModI(a : Int, modulus : Int) : Int
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
## Summary
|
|
21
20
|
Returns the multiplicative inverse of a modular integer.
|
|
22
21
|
|
|
23
22
|
## Description
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Math.InverseModL
|
|
3
3
|
title: InverseModL 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.Math
|
|
8
8
|
qsharp.name: InverseModL
|
|
9
|
-
qsharp.summary: "Returns the multiplicative inverse of a modular integer."
|
|
9
|
+
qsharp.summary: "Returns the multiplicative inverse of a modular integer. # Description This will calculate the multiplicative inverse of a modular integer `b` such that `a • b = 1 (mod modulus)`."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# InverseModL function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Math.InverseModL
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function InverseModL(a : BigInt, modulus : BigInt) : BigInt
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
## Summary
|
|
21
20
|
Returns the multiplicative inverse of a modular integer.
|
|
22
21
|
|
|
23
22
|
## Description
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Math.IsCoprimeI
|
|
3
3
|
title: IsCoprimeI 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.Math
|
|
8
8
|
qsharp.name: IsCoprimeI
|
|
9
|
-
qsharp.summary: "Returns if two integers are co-prime."
|
|
9
|
+
qsharp.summary: "Returns if two integers are co-prime. # Description Returns true if a and b are co-prime and false otherwise. # Input ## a the first number of which co-primality is being tested ## b the second number of which co-primality is being tested # Output True, if a and b are co-prime (e.g. their greatest common divisor is 1), and false otherwise"
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# IsCoprimeI function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Math.IsCoprimeI
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function IsCoprimeI(a : Int, b : Int) : Bool
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
## Summary
|
|
21
20
|
Returns if two integers are co-prime.
|
|
22
21
|
|
|
23
22
|
## Description
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Math.IsCoprimeL
|
|
3
3
|
title: IsCoprimeL 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.Math
|
|
8
8
|
qsharp.name: IsCoprimeL
|
|
9
|
-
qsharp.summary: "Returns if two integers are co-prime."
|
|
9
|
+
qsharp.summary: "Returns if two integers are co-prime. # Description Returns true if a and b are co-prime and false otherwise. # Input ## a the first number of which co-primality is being tested ## b the second number of which co-primality is being tested # Output True, if a and b are co-prime (e.g. their greatest common divisor is 1), and false otherwise"
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# IsCoprimeL function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Math.IsCoprimeL
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function IsCoprimeL(a : BigInt, b : BigInt) : Bool
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
## Summary
|
|
21
20
|
Returns if two integers are co-prime.
|
|
22
21
|
|
|
23
22
|
## Description
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Math.IsInfinite
|
|
3
3
|
title: IsInfinite 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.Math
|
|
8
8
|
qsharp.name: IsInfinite
|
|
9
|
-
qsharp.summary: "Returns whether a given floating-point value is either positive or negative infinity."
|
|
9
|
+
qsharp.summary: "Returns whether a given floating-point value is either positive or negative infinity. # Input ## d The floating-point value to be checked. # Output `true` if and only if `d` is either positive or negative infinity. # Remarks `NaN` is not a number, and is thus neither a finite number nor is it infinite. As such, `IsInfinite(0.0 / 0.0)` returns `false`. To check if a value is `NaN`, use `IsNaN(d)`. Note that even though this function returns `true` for both positive and negative infinities, these values can still be discriminated by checking `d > 0.0` and `d < 0.0`. # Example ```qsharp Message($"{IsInfinite(42.0)}"); // false Message($"{IsInfinite(0.0 / 0.0)}"); // false Message($"{IsInfinite(-1.0 / 0.0}"); // true ``` # See Also - Microsoft.Quantum.Math.IsNaN"
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# IsInfinite function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Math.IsInfinite
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function IsInfinite(d : Double) : Bool
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
## Summary
|
|
21
20
|
Returns whether a given floating-point value is either positive or
|
|
22
21
|
negative infinity.
|
|
23
22
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Math.IsNaN
|
|
3
3
|
title: IsNaN 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.Math
|
|
8
8
|
qsharp.name: IsNaN
|
|
9
9
|
qsharp.summary: "Returns whether a given floating-point value is not a number (i.e. is NaN)."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# IsNaN function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Math.IsNaN
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function IsNaN(d : Double) : Bool
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Math.LargestFixedPoint
|
|
3
3
|
title: LargestFixedPoint 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.Math
|
|
8
8
|
qsharp.name: LargestFixedPoint
|
|
9
|
-
qsharp.summary: "Returns the largest representable number for specific fixed point dimensions."
|
|
9
|
+
qsharp.summary: "Returns the largest representable number for specific fixed point dimensions. # Input ## integerBits Number of integer bits (including the sign bit). ## fractionalBits Number of fractional bits. # Remark The value can be computed as 2^(p-1) - 2^(-q), where p is the number of integer bits and q is the number of fractional bits."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# LargestFixedPoint function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Math.LargestFixedPoint
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function LargestFixedPoint(integerBits : Int, fractionalBits : Int) : Double
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
## Summary
|
|
21
20
|
Returns the largest representable number for specific fixed point dimensions.
|
|
22
21
|
|
|
23
22
|
## Input
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Math.Lg
|
|
3
3
|
title: Lg 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.Math
|
|
8
8
|
qsharp.name: Lg
|
|
9
9
|
qsharp.summary: "Computes the base-2 logarithm of a number."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# Lg function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Math.Lg
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function Lg(input : Double) : Double
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
## Summary
|
|
21
20
|
Computes the base-2 logarithm of a number.
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Math.Log
|
|
3
3
|
title: Log 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.Math
|
|
8
8
|
qsharp.name: Log
|
|
9
9
|
qsharp.summary: "Returns the natural (base _e_) logarithm of a specified number."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# Log function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Math.Log
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function Log(input : Double) : Double
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
## Summary
|
|
21
20
|
Returns the natural (base _e_) logarithm of a specified number.
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Math.Log10
|
|
3
3
|
title: Log10 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.Math
|
|
8
8
|
qsharp.name: Log10
|
|
9
9
|
qsharp.summary: "Returns the base-10 logarithm of a specified number."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# Log10 function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Math.Log10
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function Log10(input : Double) : Double
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
## Summary
|
|
21
20
|
Returns the base-10 logarithm of a specified number.
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Math.LogFactorialD
|
|
3
3
|
title: LogFactorialD 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.Math
|
|
8
8
|
qsharp.name: LogFactorialD
|
|
9
|
-
qsharp.summary: "Returns the approximate natural logarithm of the factorial of a given integer."
|
|
9
|
+
qsharp.summary: "Returns the approximate natural logarithm of the factorial of a given integer. # Input ## n The number to take the log-factorial of. # Output The natural logarithm of the factorial of the provided input. # See Also - Microsoft.Quantum.Math.ApproximateFactorial - Microsoft.Quantum.Math.FactorialI - Microsoft.Quantum.Math.FactorialL"
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# LogFactorialD function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Math.LogFactorialD
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function LogFactorialD(n : Int) : Double
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
## Summary
|
|
21
20
|
Returns the approximate natural logarithm of the factorial of a given
|
|
22
21
|
integer.
|
|
23
22
|
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Math.LogGammaD
|
|
3
3
|
title: LogGammaD 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.Math
|
|
8
8
|
qsharp.name: LogGammaD
|
|
9
|
-
qsharp.summary: "Returns the natural logarithm of the gamma function (aka the log-gamma function)."
|
|
9
|
+
qsharp.summary: "Returns the natural logarithm of the gamma function (aka the log-gamma function). # Description The gamma function Γ(x) generalizes the factorial function to the positive real numbers and is defined as integral from 0 to ∞ of t¹⁻ˣ⋅e⁻ᵗ𝑑t The gamma function has the property that for all positive real numbers x, Γ(x + 1) = x⋅Γ(x), such that the factorial function is a special case of Γ, n! = Γ(n + 1) for all natural numbers n. # Input ## x The point x at which the log-gamma function is to be evaluated. # Output The value ㏑(Γ(x))."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# LogGammaD function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Math.LogGammaD
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function LogGammaD(x : Double) : Double
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
## Summary
|
|
21
20
|
Returns the natural logarithm of the gamma function (aka the log-gamma
|
|
22
21
|
function).
|
|
23
22
|
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Math.LogOf2
|
|
3
3
|
title: LogOf2 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.Math
|
|
8
8
|
qsharp.name: LogOf2
|
|
9
|
-
qsharp.summary: "Returns a double-precision approximation of the constant ㏑2 ≈ 0.6931471805599453"
|
|
9
|
+
qsharp.summary: "Returns a double-precision approximation of the constant ㏑2 ≈ 0.6931471805599453 # Remarks ㏑2 is the natural logarithm of 2, or the logarithm of 2 base 𝒆. # References [Wikipedia article - Natural logarithm](https://en.wikipedia.org/wiki/Natural_logarithm)"
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# LogOf2 function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Math.LogOf2
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function LogOf2() : Double
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
## Summary
|
|
21
20
|
Returns a double-precision approximation of the constant
|
|
22
21
|
㏑2 ≈ 0.6931471805599453
|
|
23
22
|
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Math.Max
|
|
3
3
|
title: Max 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.Math
|
|
8
8
|
qsharp.name: Max
|
|
9
|
-
qsharp.summary: "Given an array of integers, returns the largest element."
|
|
9
|
+
qsharp.summary: "Given an array of integers, returns the largest element. # Input ## values An array to take the maximum of. # Output The largest element of `values`."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# Max function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Math.Max
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function Max(values : Int[]) : Int
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
## Summary
|
|
21
20
|
Given an array of integers, returns the largest element.
|
|
22
21
|
|
|
23
22
|
## Input
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Math.MaxD
|
|
3
3
|
title: MaxD 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.Math
|
|
8
8
|
qsharp.name: MaxD
|
|
9
9
|
qsharp.summary: "Returns the larger of two specified numbers."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# MaxD function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Math.MaxD
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function MaxD(a : Double, b : Double) : Double
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
## Summary
|
|
21
20
|
Returns the larger of two specified numbers.
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Math.MaxI
|
|
3
3
|
title: MaxI 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.Math
|
|
8
8
|
qsharp.name: MaxI
|
|
9
9
|
qsharp.summary: "Returns the larger of two specified numbers."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# MaxI function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Math.MaxI
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function MaxI(a : Int, b : Int) : Int
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
## Summary
|
|
21
20
|
Returns the larger of two specified numbers.
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Math.MaxL
|
|
3
3
|
title: MaxL 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.Math
|
|
8
8
|
qsharp.name: MaxL
|
|
9
9
|
qsharp.summary: "Returns the larger of two specified numbers."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# MaxL function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Math.MaxL
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function MaxL(a : BigInt, b : BigInt) : BigInt
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
## Summary
|
|
21
20
|
Returns the larger of two specified numbers.
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Math.Min
|
|
3
3
|
title: Min 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.Math
|
|
8
8
|
qsharp.name: Min
|
|
9
|
-
qsharp.summary: "Given an array of integers, returns the smallest element."
|
|
9
|
+
qsharp.summary: "Given an array of integers, returns the smallest element. # Input ## values An array to take the minimum of. # Output The smallest element of `values`."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# Min function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Math.Min
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function Min(values : Int[]) : Int
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
## Summary
|
|
21
20
|
Given an array of integers, returns the smallest element.
|
|
22
21
|
|
|
23
22
|
## Input
|