qsharp-lang 1.8.3-dev → 1.8.5-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/Length.md +5 -20
- package/docs/Microsoft.Quantum.Core/Repeated.md +5 -30
- 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/Std.Core/Length.md +33 -0
- package/docs/Std.Core/Repeated.md +43 -0
- 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.Core → Std.Range}/IsRangeEmpty.md +4 -4
- package/docs/{Microsoft.Quantum.Core → Std.Range}/RangeEnd.md +4 -4
- package/docs/{Microsoft.Quantum.Core → Std.Range}/RangeReverse.md +4 -4
- package/docs/{Microsoft.Quantum.Core → Std.Range}/RangeStart.md +4 -4
- package/docs/{Microsoft.Quantum.Core → Std.Range}/RangeStep.md +4 -4
- 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 +265 -256
- 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,21 +1,20 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Math.SignD
|
|
3
3
|
title: SignD function
|
|
4
|
-
ms.date: 09/
|
|
4
|
+
ms.date: 09/26/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: SignD
|
|
9
9
|
qsharp.summary: "Returns -1, 0 or +1 that indicates the sign of a number."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# SignD function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Math.SignD
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function SignD(a : Double) : Int
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
## Summary
|
|
21
20
|
Returns -1, 0 or +1 that indicates the sign of a number.
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Math.SignI
|
|
3
3
|
title: SignI function
|
|
4
|
-
ms.date: 09/
|
|
4
|
+
ms.date: 09/26/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: SignI
|
|
9
9
|
qsharp.summary: "Returns -1, 0 or +1 that indicates the sign of a number."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# SignI function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Math.SignI
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function SignI(a : Int) : Int
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Math.SignL
|
|
3
3
|
title: SignL function
|
|
4
|
-
ms.date: 09/
|
|
4
|
+
ms.date: 09/26/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: SignL
|
|
9
9
|
qsharp.summary: "Returns -1, 0 or +1 that indicates the sign of a number."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# SignL function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Math.SignL
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function SignL(a : BigInt) : Int
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
## Summary
|
|
21
20
|
Returns -1, 0 or +1 that indicates the sign of a number.
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Math.Sin
|
|
3
3
|
title: Sin function
|
|
4
|
-
ms.date: 09/
|
|
4
|
+
ms.date: 09/26/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: Sin
|
|
9
9
|
qsharp.summary: "Returns the sine of the specified angle."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# Sin function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Math.Sin
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function Sin(theta : Double) : Double
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
## Summary
|
|
21
20
|
Returns the sine of the specified angle.
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Math.Sinh
|
|
3
3
|
title: Sinh function
|
|
4
|
-
ms.date: 09/
|
|
4
|
+
ms.date: 09/26/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: Sinh
|
|
9
9
|
qsharp.summary: "Returns the hyperbolic sine of the specified angle."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# Sinh function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Math.Sinh
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function Sinh(d : Double) : Double
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
## Summary
|
|
21
20
|
Returns the hyperbolic sine of the specified angle.
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Math.SmallestFixedPoint
|
|
3
3
|
title: SmallestFixedPoint function
|
|
4
|
-
ms.date: 09/
|
|
4
|
+
ms.date: 09/26/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: SmallestFixedPoint
|
|
9
9
|
qsharp.summary: "Returns the smallest representable number for specific fixed point dimensions."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# SmallestFixedPoint function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Math.SmallestFixedPoint
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function SmallestFixedPoint(integerBits : Int, fractionalBits : Int) : Double
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Math.Sqrt
|
|
3
3
|
title: Sqrt function
|
|
4
|
-
ms.date: 09/
|
|
4
|
+
ms.date: 09/26/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: Sqrt
|
|
9
9
|
qsharp.summary: "Returns the square root of a specified number."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# Sqrt function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Math.Sqrt
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function Sqrt(d : Double) : Double
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Math.SquaredNorm
|
|
3
3
|
title: SquaredNorm function
|
|
4
|
-
ms.date: 09/
|
|
4
|
+
ms.date: 09/26/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: SquaredNorm
|
|
9
9
|
qsharp.summary: "Returns the squared 2-norm of a vector."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# SquaredNorm function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Math.SquaredNorm
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function SquaredNorm(array : Double[]) : Double
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Math.Tan
|
|
3
3
|
title: Tan function
|
|
4
|
-
ms.date: 09/
|
|
4
|
+
ms.date: 09/26/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: Tan
|
|
9
9
|
qsharp.summary: "Returns the tangent of the specified angle."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# Tan function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Math.Tan
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function Tan(d : Double) : Double
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
## Summary
|
|
21
20
|
Returns the tangent of the specified angle.
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Math.Tanh
|
|
3
3
|
title: Tanh function
|
|
4
|
-
ms.date: 09/
|
|
4
|
+
ms.date: 09/26/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: Tanh
|
|
9
9
|
qsharp.summary: "Returns the hyperbolic tangent of the specified angle."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# Tanh function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Math.Tanh
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function Tanh(d : Double) : Double
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
## Summary
|
|
21
20
|
Returns the hyperbolic tangent of the specified angle.
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Math.TimesC
|
|
3
3
|
title: TimesC function
|
|
4
|
-
ms.date: 09/
|
|
4
|
+
ms.date: 09/26/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: TimesC
|
|
9
|
-
qsharp.summary: "Returns the product of two inputs of type `Complex`."
|
|
9
|
+
qsharp.summary: "Returns the product of two inputs of type `Complex`. # Input ## a The first input a to be multiplied. ## b The second input b to be multiplied. # Output The product a⋅b."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# TimesC function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Math.TimesC
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function TimesC(a : Complex, b : Complex) : Complex
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
## Summary
|
|
21
20
|
Returns the product of two inputs of type `Complex`.
|
|
22
21
|
|
|
23
22
|
## Input
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Math.TimesCP
|
|
3
3
|
title: TimesCP function
|
|
4
|
-
ms.date: 09/
|
|
4
|
+
ms.date: 09/26/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: TimesCP
|
|
9
|
-
qsharp.summary: "Returns the product of two inputs of type `ComplexPolar`."
|
|
9
|
+
qsharp.summary: "Returns the product of two inputs of type `ComplexPolar`. # Input ## a The first input a to be multiplied. ## b The second input b to be multiplied. # Output The product a⋅b."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# TimesCP function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Math.TimesCP
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function TimesCP(a : ComplexPolar, b : ComplexPolar) : ComplexPolar
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
## Summary
|
|
21
20
|
Returns the product of two inputs of type `ComplexPolar`.
|
|
22
21
|
|
|
23
22
|
## Input
|
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Math.TrailingZeroCountI
|
|
3
3
|
title: TrailingZeroCountI function
|
|
4
|
-
ms.date: 09/
|
|
4
|
+
ms.date: 09/26/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: TrailingZeroCountI
|
|
9
9
|
qsharp.summary: "For a non-zero integer `a`, returns the number of trailing zero bits in the binary representation of `a`."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# TrailingZeroCountI function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Math.TrailingZeroCountI
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function TrailingZeroCountI(a : Int) : Int
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
## Summary
|
|
21
20
|
For a non-zero integer `a`, returns the number of trailing zero bits
|
|
22
21
|
in the binary representation of `a`.
|
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Math.TrailingZeroCountL
|
|
3
3
|
title: TrailingZeroCountL function
|
|
4
|
-
ms.date: 09/
|
|
4
|
+
ms.date: 09/26/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: TrailingZeroCountL
|
|
9
9
|
qsharp.summary: "For a non-zero integer `a`, returns the number of trailing zero bits in the binary representation of `a`."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# TrailingZeroCountL function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Math.TrailingZeroCountL
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function TrailingZeroCountL(a : BigInt) : Int
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
## Summary
|
|
21
20
|
For a non-zero integer `a`, returns the number of trailing zero bits
|
|
22
21
|
in the binary representation of `a`.
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Math.Truncate
|
|
3
3
|
title: Truncate function
|
|
4
|
-
ms.date: 09/
|
|
4
|
+
ms.date: 09/26/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: Truncate
|
|
9
9
|
qsharp.summary: "Returns the integral part of a number. For example: Truncate(3.7) = 3; Truncate(-3.7) = -3"
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# Truncate function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Math.Truncate
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function Truncate(value : Double) : Int
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Measurement.MResetEachZ
|
|
3
3
|
title: MResetEachZ operation
|
|
4
|
-
ms.date: 09/
|
|
4
|
+
ms.date: 09/26/2024 12:00:00 AM
|
|
5
5
|
ms.topic: managed-reference
|
|
6
6
|
qsharp.kind: operation
|
|
7
|
-
qsharp.namespace:
|
|
7
|
+
qsharp.namespace: Std.Measurement
|
|
8
8
|
qsharp.name: MResetEachZ
|
|
9
|
-
qsharp.summary: "Measures each qubit in a given array in the Z basis and resets them to a fixed initial state."
|
|
9
|
+
qsharp.summary: "Measures each qubit in a given array in the Z basis and resets them to a fixed initial state. # Input ## targets An array of qubits to be measured. # Output An array of measurement results. # See also - Microsoft.Quantum.Measurement.MeasureEachZ"
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# MResetEachZ operation
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Measurement.MResetEachZ
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
operation MResetEachZ(register : Qubit[]) : Result[]
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
## Summary
|
|
21
20
|
Measures each qubit in a given array in the Z basis
|
|
22
21
|
and resets them to a fixed initial state.
|
|
23
22
|
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Measurement.MResetX
|
|
3
3
|
title: MResetX operation
|
|
4
|
-
ms.date: 09/
|
|
4
|
+
ms.date: 09/26/2024 12:00:00 AM
|
|
5
5
|
ms.topic: managed-reference
|
|
6
6
|
qsharp.kind: operation
|
|
7
|
-
qsharp.namespace:
|
|
7
|
+
qsharp.namespace: Std.Measurement
|
|
8
8
|
qsharp.name: MResetX
|
|
9
|
-
qsharp.summary: "Measures a single qubit in the X basis, and resets it to a fixed initial state following the measurement."
|
|
9
|
+
qsharp.summary: "Measures a single qubit in the X basis, and resets it to a fixed initial state following the measurement. # Description Performs a single-qubit measurement in the X-basis, and ensures that the qubit is returned to |0⟩ following the measurement. # Input ## target A single qubit to be measured. # Output The result of measuring `target` in the Pauli X basis."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# MResetX operation
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Measurement.MResetX
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
operation MResetX(target : Qubit) : Result
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
## Summary
|
|
21
20
|
Measures a single qubit in the X basis,
|
|
22
21
|
and resets it to a fixed initial state
|
|
23
22
|
following the measurement.
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Measurement.MResetY
|
|
3
3
|
title: MResetY operation
|
|
4
|
-
ms.date: 09/
|
|
4
|
+
ms.date: 09/26/2024 12:00:00 AM
|
|
5
5
|
ms.topic: managed-reference
|
|
6
6
|
qsharp.kind: operation
|
|
7
|
-
qsharp.namespace:
|
|
7
|
+
qsharp.namespace: Std.Measurement
|
|
8
8
|
qsharp.name: MResetY
|
|
9
|
-
qsharp.summary: "Measures a single qubit in the Y basis, and resets it to a fixed initial state following the measurement."
|
|
9
|
+
qsharp.summary: "Measures a single qubit in the Y basis, and resets it to a fixed initial state following the measurement. # Description Performs a single-qubit measurement in the Y-basis, and ensures that the qubit is returned to |0⟩ following the measurement. # Input ## target A single qubit to be measured. # Output The result of measuring `target` in the Pauli Y basis."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# MResetY operation
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Measurement.MResetY
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
operation MResetY(target : Qubit) : Result
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
## Summary
|
|
21
20
|
Measures a single qubit in the Y basis,
|
|
22
21
|
and resets it to a fixed initial state
|
|
23
22
|
following the measurement.
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Measurement.MResetZ
|
|
3
3
|
title: MResetZ operation
|
|
4
|
-
ms.date: 09/
|
|
4
|
+
ms.date: 09/26/2024 12:00:00 AM
|
|
5
5
|
ms.topic: managed-reference
|
|
6
6
|
qsharp.kind: operation
|
|
7
|
-
qsharp.namespace:
|
|
7
|
+
qsharp.namespace: Std.Measurement
|
|
8
8
|
qsharp.name: MResetZ
|
|
9
|
-
qsharp.summary: "Measures a single qubit in the Z basis, and resets it to a fixed initial state following the measurement."
|
|
9
|
+
qsharp.summary: "Measures a single qubit in the Z basis, and resets it to a fixed initial state following the measurement. # Description Performs a single-qubit measurement in the Z-basis, and ensures that the qubit is returned to |0⟩ following the measurement. # Input ## target A single qubit to be measured. # Output The result of measuring `target` in the Pauli Z basis."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# MResetZ operation
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Measurement.MResetZ
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
operation MResetZ(target : Qubit) : Result
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
## Summary
|
|
21
20
|
Measures a single qubit in the Z basis,
|
|
22
21
|
and resets it to a fixed initial state
|
|
23
22
|
following the measurement.
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Measurement.MeasureAllZ
|
|
3
3
|
title: MeasureAllZ operation
|
|
4
|
-
ms.date: 09/
|
|
4
|
+
ms.date: 09/26/2024 12:00:00 AM
|
|
5
5
|
ms.topic: managed-reference
|
|
6
6
|
qsharp.kind: operation
|
|
7
|
-
qsharp.namespace:
|
|
7
|
+
qsharp.namespace: Std.Measurement
|
|
8
8
|
qsharp.name: MeasureAllZ
|
|
9
9
|
qsharp.summary: "Jointly measures a register of qubits in the Pauli Z basis."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# MeasureAllZ operation
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Measurement.MeasureAllZ
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
operation MeasureAllZ(register : Qubit[]) : Result
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Measurement.MeasureEachZ
|
|
3
3
|
title: MeasureEachZ operation
|
|
4
|
-
ms.date: 09/
|
|
4
|
+
ms.date: 09/26/2024 12:00:00 AM
|
|
5
5
|
ms.topic: managed-reference
|
|
6
6
|
qsharp.kind: operation
|
|
7
|
-
qsharp.namespace:
|
|
7
|
+
qsharp.namespace: Std.Measurement
|
|
8
8
|
qsharp.name: MeasureEachZ
|
|
9
|
-
qsharp.summary: "Measures each qubit in a given array in the standard basis."
|
|
9
|
+
qsharp.summary: "Measures each qubit in a given array in the standard basis. # Description Measures each qubit in a register in the `Z` basis and retuns the result of each measurement. This operation does not reset the measured qubits to the |0⟩ state, leaving them in the state that corresponds to the measurement results. # Input ## targets An array of qubits to be measured. # Output An array of measurement results. # Remarks Please note the following differences: - Operation `MeasureEachZ` performs one measurement for each qubit and retuns an array of results. The operation does not reset the qubits. - Operation `MResetEachZ` performs one measurement for each qubit and retuns an array of results. The operation resets all qubits to |0⟩ state. - Operation `MeasureAllZ` performs a joint measurement on all qubits and returns one result. The operation does not reset the qubits. # See also - Microsoft.Quantum.Measurement.MeasureAllZ - Microsoft.Quantum.Measurement.MResetEachZ"
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# MeasureEachZ operation
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Measurement.MeasureEachZ
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
operation MeasureEachZ(register : Qubit[]) : Result[]
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
## Summary
|
|
21
20
|
Measures each qubit in a given array in the standard basis.
|
|
22
21
|
|
|
23
22
|
## Description
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Measurement.MeasureInteger
|
|
3
3
|
title: MeasureInteger operation
|
|
4
|
-
ms.date: 09/
|
|
4
|
+
ms.date: 09/26/2024 12:00:00 AM
|
|
5
5
|
ms.topic: managed-reference
|
|
6
6
|
qsharp.kind: operation
|
|
7
|
-
qsharp.namespace:
|
|
7
|
+
qsharp.namespace: Std.Measurement
|
|
8
8
|
qsharp.name: MeasureInteger
|
|
9
|
-
qsharp.summary: "Measures the content of a quantum register and converts it to an integer. The measurement is performed with respect to the standard computational basis, i.e., the eigenbasis of `PauliZ`."
|
|
9
|
+
qsharp.summary: "Measures the content of a quantum register and converts it to an integer. The measurement is performed with respect to the standard computational basis, i.e., the eigenbasis of `PauliZ`. # Input ## target A quantum register in the little-endian encoding. # Output An unsigned integer that contains the measured value of `target`. # Remarks This operation resets its input register to the |00...0> state, suitable for releasing back to a target machine."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# MeasureInteger operation
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Measurement.MeasureInteger
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
operation MeasureInteger(target : Qubit[]) : Int
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
## Summary
|
|
21
20
|
Measures the content of a quantum register and converts
|
|
22
21
|
it to an integer. The measurement is performed with respect
|
|
23
22
|
to the standard computational basis, i.e., the eigenbasis of `PauliZ`.
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Range.IsRangeEmpty
|
|
3
3
|
title: IsRangeEmpty function
|
|
4
|
-
ms.date: 09/
|
|
4
|
+
ms.date: 09/26/2024 12:00:00 AM
|
|
5
5
|
ms.topic: managed-reference
|
|
6
6
|
qsharp.kind: function
|
|
7
|
-
qsharp.namespace:
|
|
7
|
+
qsharp.namespace: Std.Range
|
|
8
8
|
qsharp.name: IsRangeEmpty
|
|
9
9
|
qsharp.summary: "Returns true if and only if the input range is empty."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# IsRangeEmpty function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Range.IsRangeEmpty
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function IsRangeEmpty(rng : Range) : Bool
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Range.RangeEnd
|
|
3
3
|
title: RangeEnd function
|
|
4
|
-
ms.date: 09/
|
|
4
|
+
ms.date: 09/26/2024 12:00:00 AM
|
|
5
5
|
ms.topic: managed-reference
|
|
6
6
|
qsharp.kind: function
|
|
7
|
-
qsharp.namespace:
|
|
7
|
+
qsharp.namespace: Std.Range
|
|
8
8
|
qsharp.name: RangeEnd
|
|
9
9
|
qsharp.summary: "Returns the defined end value of the given range, which is not necessarily the last element in the sequence."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# RangeEnd function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Range.RangeEnd
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function RangeEnd(r : Range) : Int
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
---
|
|
2
|
-
uid: Qdk.
|
|
2
|
+
uid: Qdk.Std.Range.RangeReverse
|
|
3
3
|
title: RangeReverse function
|
|
4
|
-
ms.date: 09/
|
|
4
|
+
ms.date: 09/26/2024 12:00:00 AM
|
|
5
5
|
ms.topic: managed-reference
|
|
6
6
|
qsharp.kind: function
|
|
7
|
-
qsharp.namespace:
|
|
7
|
+
qsharp.namespace: Std.Range
|
|
8
8
|
qsharp.name: RangeReverse
|
|
9
9
|
qsharp.summary: "Returns a new range which is the reverse of the input range."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# RangeReverse function
|
|
13
13
|
|
|
14
|
-
Fully qualified name:
|
|
14
|
+
Fully qualified name: Std.Range.RangeReverse
|
|
15
15
|
|
|
16
16
|
```qsharp
|
|
17
17
|
function RangeReverse(r : Range) : Range
|