qsharp-lang 1.1.5-dev → 1.1.6-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/compiler/compiler.d.ts +25 -7
- package/dist/compiler/compiler.js +28 -8
- package/dist/debug-service/debug-service.d.ts +2 -2
- package/dist/debug-service/debug-service.js +2 -2
- package/dist/katas-content.generated.js +59 -59
- package/docs/Microsoft.Quantum.Arrays/All.md +2 -2
- package/docs/Microsoft.Quantum.Arrays/Any.md +2 -2
- package/docs/Microsoft.Quantum.Arrays/Chunks.md +2 -2
- package/docs/Microsoft.Quantum.Arrays/CircularlyShifted.md +2 -2
- package/docs/Microsoft.Quantum.Arrays/ColumnAt.md +2 -2
- package/docs/Microsoft.Quantum.Arrays/Count.md +2 -2
- package/docs/Microsoft.Quantum.Arrays/Diagonal.md +2 -2
- package/docs/Microsoft.Quantum.Arrays/DrawMany.md +2 -2
- package/docs/Microsoft.Quantum.Arrays/Enumerated.md +2 -2
- package/docs/Microsoft.Quantum.Arrays/Excluding.md +2 -2
- package/docs/Microsoft.Quantum.Arrays/Filtered.md +2 -2
- package/docs/Microsoft.Quantum.Arrays/FlatMapped.md +2 -2
- package/docs/Microsoft.Quantum.Arrays/Flattened.md +2 -2
- package/docs/Microsoft.Quantum.Arrays/Fold.md +2 -2
- package/docs/Microsoft.Quantum.Arrays/ForEach.md +2 -2
- package/docs/Microsoft.Quantum.Arrays/Head.md +2 -2
- package/docs/Microsoft.Quantum.Arrays/HeadAndRest.md +2 -2
- package/docs/Microsoft.Quantum.Arrays/IndexOf.md +2 -2
- package/docs/Microsoft.Quantum.Arrays/IndexRange.md +2 -2
- package/docs/Microsoft.Quantum.Arrays/Interleaved.md +2 -2
- package/docs/Microsoft.Quantum.Arrays/IsEmpty.md +2 -2
- package/docs/Microsoft.Quantum.Arrays/IsRectangularArray.md +2 -2
- package/docs/Microsoft.Quantum.Arrays/IsSorted.md +2 -2
- package/docs/Microsoft.Quantum.Arrays/IsSquareArray.md +2 -2
- package/docs/Microsoft.Quantum.Arrays/Mapped.md +2 -2
- package/docs/Microsoft.Quantum.Arrays/MappedByIndex.md +2 -2
- package/docs/Microsoft.Quantum.Arrays/MappedOverRange.md +2 -2
- package/docs/Microsoft.Quantum.Arrays/Most.md +2 -2
- package/docs/Microsoft.Quantum.Arrays/MostAndTail.md +2 -2
- package/docs/Microsoft.Quantum.Arrays/Padded.md +2 -2
- package/docs/Microsoft.Quantum.Arrays/Partitioned.md +2 -2
- package/docs/Microsoft.Quantum.Arrays/Rest.md +2 -2
- package/docs/Microsoft.Quantum.Arrays/Reversed.md +2 -2
- package/docs/Microsoft.Quantum.Arrays/SequenceI.md +2 -2
- package/docs/Microsoft.Quantum.Arrays/SequenceL.md +2 -2
- package/docs/Microsoft.Quantum.Arrays/Sorted.md +2 -2
- package/docs/Microsoft.Quantum.Arrays/Subarray.md +2 -2
- package/docs/Microsoft.Quantum.Arrays/Swapped.md +2 -2
- package/docs/Microsoft.Quantum.Arrays/Tail.md +2 -2
- package/docs/Microsoft.Quantum.Arrays/Transposed.md +2 -2
- package/docs/Microsoft.Quantum.Arrays/Unzipped.md +2 -2
- package/docs/Microsoft.Quantum.Arrays/Where.md +2 -2
- package/docs/Microsoft.Quantum.Arrays/Windows.md +2 -2
- package/docs/Microsoft.Quantum.Arrays/Zipped.md +2 -2
- package/docs/Microsoft.Quantum.Canon/ApplyCNOTChain.md +2 -2
- package/docs/Microsoft.Quantum.Canon/ApplyControlledOnBitString.md +2 -2
- package/docs/Microsoft.Quantum.Canon/ApplyControlledOnInt.md +2 -2
- package/docs/Microsoft.Quantum.Canon/ApplyP.md +2 -2
- package/docs/Microsoft.Quantum.Canon/ApplyPauli.md +2 -2
- package/docs/Microsoft.Quantum.Canon/ApplyPauliFromBitString.md +2 -2
- package/docs/Microsoft.Quantum.Canon/ApplyPauliFromInt.md +2 -2
- package/docs/Microsoft.Quantum.Canon/ApplyQFT.md +2 -2
- package/docs/Microsoft.Quantum.Canon/ApplyToEach.md +2 -2
- package/docs/Microsoft.Quantum.Canon/ApplyToEachA.md +2 -2
- package/docs/Microsoft.Quantum.Canon/ApplyToEachC.md +2 -2
- package/docs/Microsoft.Quantum.Canon/ApplyToEachCA.md +2 -2
- package/docs/Microsoft.Quantum.Canon/ApplyXorInPlace.md +2 -2
- package/docs/Microsoft.Quantum.Canon/ApplyXorInPlaceL.md +2 -2
- package/docs/Microsoft.Quantum.Canon/CX.md +2 -2
- package/docs/Microsoft.Quantum.Canon/CY.md +2 -2
- package/docs/Microsoft.Quantum.Canon/CZ.md +2 -2
- package/docs/Microsoft.Quantum.Canon/Fst.md +2 -2
- package/docs/Microsoft.Quantum.Canon/Snd.md +2 -2
- package/docs/Microsoft.Quantum.Canon/SwapReverseRegister.md +2 -2
- package/docs/Microsoft.Quantum.Convert/BigIntAsBoolArray.md +2 -2
- package/docs/Microsoft.Quantum.Convert/BoolArrayAsBigInt.md +2 -2
- package/docs/Microsoft.Quantum.Convert/BoolArrayAsInt.md +2 -2
- package/docs/Microsoft.Quantum.Convert/BoolArrayAsResultArray.md +2 -2
- package/docs/Microsoft.Quantum.Convert/BoolAsResult.md +2 -2
- package/docs/Microsoft.Quantum.Convert/ComplexAsComplexPolar.md +2 -2
- package/docs/Microsoft.Quantum.Convert/ComplexPolarAsComplex.md +2 -2
- package/docs/Microsoft.Quantum.Convert/IntAsBigInt.md +2 -2
- package/docs/Microsoft.Quantum.Convert/IntAsBoolArray.md +2 -2
- package/docs/Microsoft.Quantum.Convert/IntAsDouble.md +2 -2
- package/docs/Microsoft.Quantum.Convert/ResultArrayAsBoolArray.md +2 -2
- package/docs/Microsoft.Quantum.Convert/ResultArrayAsInt.md +2 -2
- package/docs/Microsoft.Quantum.Convert/ResultAsBool.md +2 -2
- package/docs/Microsoft.Quantum.Core/IsRangeEmpty.md +2 -2
- package/docs/Microsoft.Quantum.Core/Length.md +2 -2
- package/docs/Microsoft.Quantum.Core/RangeEnd.md +2 -2
- package/docs/Microsoft.Quantum.Core/RangeReverse.md +2 -2
- package/docs/Microsoft.Quantum.Core/RangeStart.md +2 -2
- package/docs/Microsoft.Quantum.Core/RangeStep.md +2 -2
- package/docs/Microsoft.Quantum.Core/Repeated.md +2 -2
- package/docs/Microsoft.Quantum.Diagnostics/CheckAllZero.md +2 -2
- package/docs/Microsoft.Quantum.Diagnostics/CheckOperationsAreEqual.md +2 -2
- package/docs/Microsoft.Quantum.Diagnostics/CheckZero.md +2 -2
- package/docs/Microsoft.Quantum.Diagnostics/DumpMachine.md +2 -2
- package/docs/Microsoft.Quantum.Diagnostics/Fact.md +2 -2
- package/docs/Microsoft.Quantum.Intrinsic/CCNOT.md +2 -2
- package/docs/Microsoft.Quantum.Intrinsic/CNOT.md +2 -2
- package/docs/Microsoft.Quantum.Intrinsic/Exp.md +2 -2
- package/docs/Microsoft.Quantum.Intrinsic/H.md +8 -5
- package/docs/Microsoft.Quantum.Intrinsic/I.md +2 -2
- package/docs/Microsoft.Quantum.Intrinsic/M.md +2 -2
- package/docs/Microsoft.Quantum.Intrinsic/Measure.md +2 -2
- package/docs/Microsoft.Quantum.Intrinsic/Message.md +2 -2
- package/docs/Microsoft.Quantum.Intrinsic/R.md +2 -2
- package/docs/Microsoft.Quantum.Intrinsic/R1.md +2 -2
- package/docs/Microsoft.Quantum.Intrinsic/R1Frac.md +2 -2
- package/docs/Microsoft.Quantum.Intrinsic/RFrac.md +2 -2
- package/docs/Microsoft.Quantum.Intrinsic/Reset.md +2 -2
- package/docs/Microsoft.Quantum.Intrinsic/ResetAll.md +2 -2
- package/docs/Microsoft.Quantum.Intrinsic/Rx.md +2 -2
- package/docs/Microsoft.Quantum.Intrinsic/Rxx.md +2 -2
- package/docs/Microsoft.Quantum.Intrinsic/Ry.md +2 -2
- package/docs/Microsoft.Quantum.Intrinsic/Ryy.md +2 -2
- package/docs/Microsoft.Quantum.Intrinsic/Rz.md +2 -2
- package/docs/Microsoft.Quantum.Intrinsic/Rzz.md +2 -2
- package/docs/Microsoft.Quantum.Intrinsic/S.md +2 -2
- package/docs/Microsoft.Quantum.Intrinsic/SWAP.md +2 -2
- package/docs/Microsoft.Quantum.Intrinsic/T.md +2 -2
- package/docs/Microsoft.Quantum.Intrinsic/X.md +2 -2
- package/docs/Microsoft.Quantum.Intrinsic/Y.md +2 -2
- package/docs/Microsoft.Quantum.Intrinsic/Z.md +2 -2
- package/docs/Microsoft.Quantum.Logical/Xor.md +2 -2
- package/docs/Microsoft.Quantum.Math/AbsComplex.md +2 -2
- package/docs/Microsoft.Quantum.Math/AbsComplexPolar.md +2 -2
- package/docs/Microsoft.Quantum.Math/AbsD.md +2 -2
- package/docs/Microsoft.Quantum.Math/AbsI.md +2 -2
- package/docs/Microsoft.Quantum.Math/AbsL.md +2 -2
- package/docs/Microsoft.Quantum.Math/AbsSquaredComplex.md +2 -2
- package/docs/Microsoft.Quantum.Math/AbsSquaredComplexPolar.md +2 -2
- package/docs/Microsoft.Quantum.Math/ApproximateFactorial.md +2 -2
- package/docs/Microsoft.Quantum.Math/ArcCos.md +2 -2
- package/docs/Microsoft.Quantum.Math/ArcCosh.md +2 -2
- package/docs/Microsoft.Quantum.Math/ArcSin.md +2 -2
- package/docs/Microsoft.Quantum.Math/ArcSinh.md +2 -2
- package/docs/Microsoft.Quantum.Math/ArcTan.md +2 -2
- package/docs/Microsoft.Quantum.Math/ArcTan2.md +2 -2
- package/docs/Microsoft.Quantum.Math/ArcTanh.md +2 -2
- package/docs/Microsoft.Quantum.Math/ArgComplex.md +2 -2
- package/docs/Microsoft.Quantum.Math/ArgComplexPolar.md +2 -2
- package/docs/Microsoft.Quantum.Math/Binom.md +2 -2
- package/docs/Microsoft.Quantum.Math/BitSizeI.md +2 -2
- package/docs/Microsoft.Quantum.Math/BitSizeL.md +2 -2
- package/docs/Microsoft.Quantum.Math/Ceiling.md +2 -2
- package/docs/Microsoft.Quantum.Math/Complex.md +2 -2
- package/docs/Microsoft.Quantum.Math/ComplexPolar.md +2 -2
- package/docs/Microsoft.Quantum.Math/ContinuedFractionConvergentI.md +2 -2
- package/docs/Microsoft.Quantum.Math/ContinuedFractionConvergentL.md +2 -2
- package/docs/Microsoft.Quantum.Math/Cos.md +2 -2
- package/docs/Microsoft.Quantum.Math/Cosh.md +2 -2
- package/docs/Microsoft.Quantum.Math/DivRemI.md +2 -2
- package/docs/Microsoft.Quantum.Math/DivRemL.md +2 -2
- package/docs/Microsoft.Quantum.Math/DividedByC.md +2 -2
- package/docs/Microsoft.Quantum.Math/DividedByCP.md +2 -2
- package/docs/Microsoft.Quantum.Math/E.md +2 -2
- package/docs/Microsoft.Quantum.Math/ExpModI.md +2 -2
- package/docs/Microsoft.Quantum.Math/ExpModL.md +2 -2
- package/docs/Microsoft.Quantum.Math/ExtendedGreatestCommonDivisorI.md +2 -2
- package/docs/Microsoft.Quantum.Math/ExtendedGreatestCommonDivisorL.md +2 -2
- package/docs/Microsoft.Quantum.Math/FactorialI.md +2 -2
- package/docs/Microsoft.Quantum.Math/FactorialL.md +2 -2
- package/docs/Microsoft.Quantum.Math/Floor.md +2 -2
- package/docs/Microsoft.Quantum.Math/GreatestCommonDivisorI.md +2 -2
- package/docs/Microsoft.Quantum.Math/GreatestCommonDivisorL.md +2 -2
- package/docs/Microsoft.Quantum.Math/HammingWeightI.md +2 -2
- package/docs/Microsoft.Quantum.Math/InverseModI.md +2 -2
- package/docs/Microsoft.Quantum.Math/InverseModL.md +2 -2
- package/docs/Microsoft.Quantum.Math/IsCoprimeI.md +2 -2
- package/docs/Microsoft.Quantum.Math/IsCoprimeL.md +2 -2
- package/docs/Microsoft.Quantum.Math/IsInfinite.md +2 -2
- package/docs/Microsoft.Quantum.Math/IsNaN.md +2 -2
- package/docs/Microsoft.Quantum.Math/LargestFixedPoint.md +2 -2
- package/docs/Microsoft.Quantum.Math/Lg.md +2 -2
- package/docs/Microsoft.Quantum.Math/Log.md +2 -2
- package/docs/Microsoft.Quantum.Math/Log10.md +2 -2
- package/docs/Microsoft.Quantum.Math/LogFactorialD.md +2 -2
- package/docs/Microsoft.Quantum.Math/LogGammaD.md +2 -2
- package/docs/Microsoft.Quantum.Math/LogOf2.md +2 -2
- package/docs/Microsoft.Quantum.Math/Max.md +2 -2
- package/docs/Microsoft.Quantum.Math/MaxD.md +2 -2
- package/docs/Microsoft.Quantum.Math/MaxI.md +2 -2
- package/docs/Microsoft.Quantum.Math/MaxL.md +2 -2
- package/docs/Microsoft.Quantum.Math/Min.md +2 -2
- package/docs/Microsoft.Quantum.Math/MinD.md +2 -2
- package/docs/Microsoft.Quantum.Math/MinI.md +2 -2
- package/docs/Microsoft.Quantum.Math/MinL.md +2 -2
- package/docs/Microsoft.Quantum.Math/MinusC.md +2 -2
- package/docs/Microsoft.Quantum.Math/MinusCP.md +2 -2
- package/docs/Microsoft.Quantum.Math/ModulusI.md +2 -2
- package/docs/Microsoft.Quantum.Math/ModulusL.md +2 -2
- package/docs/Microsoft.Quantum.Math/NegationC.md +2 -2
- package/docs/Microsoft.Quantum.Math/NegationCP.md +2 -2
- package/docs/Microsoft.Quantum.Math/PI.md +2 -2
- package/docs/Microsoft.Quantum.Math/PNorm.md +2 -2
- package/docs/Microsoft.Quantum.Math/PNormalized.md +2 -2
- package/docs/Microsoft.Quantum.Math/PlusC.md +2 -2
- package/docs/Microsoft.Quantum.Math/PlusCP.md +2 -2
- package/docs/Microsoft.Quantum.Math/PowC.md +2 -2
- package/docs/Microsoft.Quantum.Math/PowCP.md +2 -2
- package/docs/Microsoft.Quantum.Math/RealMod.md +2 -2
- package/docs/Microsoft.Quantum.Math/Round.md +2 -2
- package/docs/Microsoft.Quantum.Math/SignD.md +2 -2
- package/docs/Microsoft.Quantum.Math/SignI.md +2 -2
- package/docs/Microsoft.Quantum.Math/SignL.md +2 -2
- package/docs/Microsoft.Quantum.Math/Sin.md +2 -2
- package/docs/Microsoft.Quantum.Math/Sinh.md +2 -2
- package/docs/Microsoft.Quantum.Math/SmallestFixedPoint.md +2 -2
- package/docs/Microsoft.Quantum.Math/Sqrt.md +2 -2
- package/docs/Microsoft.Quantum.Math/SquaredNorm.md +2 -2
- package/docs/Microsoft.Quantum.Math/Tan.md +2 -2
- package/docs/Microsoft.Quantum.Math/Tanh.md +2 -2
- package/docs/Microsoft.Quantum.Math/TimesC.md +2 -2
- package/docs/Microsoft.Quantum.Math/TimesCP.md +2 -2
- package/docs/Microsoft.Quantum.Math/TrailingZeroCountI.md +2 -2
- package/docs/Microsoft.Quantum.Math/TrailingZeroCountL.md +2 -2
- package/docs/Microsoft.Quantum.Math/Truncate.md +2 -2
- package/docs/Microsoft.Quantum.Measurement/MResetEachZ.md +2 -2
- package/docs/Microsoft.Quantum.Measurement/MResetX.md +2 -2
- package/docs/Microsoft.Quantum.Measurement/MResetY.md +2 -2
- package/docs/Microsoft.Quantum.Measurement/MResetZ.md +2 -2
- package/docs/Microsoft.Quantum.Measurement/MeasureAllZ.md +2 -2
- package/docs/Microsoft.Quantum.Measurement/MeasureEachZ.md +2 -2
- package/docs/Microsoft.Quantum.Measurement/MeasureInteger.md +2 -2
- package/docs/Microsoft.Quantum.Random/DrawRandomDouble.md +2 -2
- package/docs/Microsoft.Quantum.Random/DrawRandomInt.md +2 -2
- package/docs/Microsoft.Quantum.ResourceEstimation/AccountForEstimates.md +2 -2
- package/docs/Microsoft.Quantum.ResourceEstimation/AuxQubitCount.md +2 -2
- package/docs/Microsoft.Quantum.ResourceEstimation/BeginEstimateCaching.md +2 -2
- package/docs/Microsoft.Quantum.ResourceEstimation/BeginRepeatEstimates.md +2 -2
- package/docs/Microsoft.Quantum.ResourceEstimation/CczCount.md +2 -2
- package/docs/Microsoft.Quantum.ResourceEstimation/EndEstimateCaching.md +2 -2
- package/docs/Microsoft.Quantum.ResourceEstimation/EndRepeatEstimates.md +2 -2
- package/docs/Microsoft.Quantum.ResourceEstimation/MeasurementCount.md +2 -2
- package/docs/Microsoft.Quantum.ResourceEstimation/PSSPCLayout.md +2 -2
- package/docs/Microsoft.Quantum.ResourceEstimation/RepeatEstimates.md +2 -2
- package/docs/Microsoft.Quantum.ResourceEstimation/RotationCount.md +2 -2
- package/docs/Microsoft.Quantum.ResourceEstimation/RotationDepth.md +2 -2
- package/docs/Microsoft.Quantum.ResourceEstimation/SingleVariant.md +2 -2
- package/docs/Microsoft.Quantum.ResourceEstimation/TCount.md +2 -2
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/AddLE.md +2 -2
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyIfEqualL.md +2 -2
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyIfEqualLE.md +2 -2
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyIfGreaterL.md +2 -2
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyIfGreaterLE.md +2 -2
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyIfGreaterOrEqualL.md +2 -2
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyIfGreaterOrEqualLE.md +2 -2
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyIfLessL.md +2 -2
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyIfLessLE.md +2 -2
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyIfLessOrEqualL.md +2 -2
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyIfLessOrEqualLE.md +2 -2
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/FourierTDIncByLE.md +2 -2
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/IncByI.md +2 -2
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/IncByIUsingIncByLE.md +2 -2
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/IncByL.md +2 -2
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/IncByLE.md +2 -2
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/IncByLEUsingAddLE.md +2 -2
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/IncByLUsingIncByLE.md +2 -2
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/LookAheadDKRSAddLE.md +2 -2
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/MAJ.md +2 -2
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/ReflectAboutInteger.md +2 -2
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/RippleCarryCGAddLE.md +2 -2
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/RippleCarryCGIncByLE.md +2 -2
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/RippleCarryTTKIncByLE.md +2 -2
- package/docs/Microsoft.Quantum.Unstable.StatePreparation/ApproximatelyPreparePureStateCP.md +2 -2
- package/docs/Microsoft.Quantum.Unstable.StatePreparation/PreparePureStateD.md +2 -2
- package/docs/Microsoft.Quantum.Unstable.TableLookup/Select.md +2 -2
- package/lib/node/qsc_wasm.cjs +74 -51
- package/lib/node/qsc_wasm.d.cts +12 -6
- package/lib/node/qsc_wasm_bg.wasm +0 -0
- package/lib/web/qsc_wasm.d.ts +17 -11
- package/lib/web/qsc_wasm.js +72 -49
- package/lib/web/qsc_wasm_bg.wasm +0 -0
- package/package.json +1 -1
- package/ux/estimatesOverview.tsx +6 -2
- package/ux/scatterChart.tsx +31 -10
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
uid: Qdk.Microsoft.Quantum.Unstable.Arithmetic.ApplyIfLessL
|
|
3
3
|
title: ApplyIfLessL operation
|
|
4
|
-
ms.date: 02/
|
|
4
|
+
ms.date: 02/28/2024 12:00:00 AM
|
|
5
5
|
ms.topic: managed-reference
|
|
6
6
|
qsharp.kind: operation
|
|
7
7
|
qsharp.namespace: Microsoft.Quantum.Unstable.Arithmetic
|
|
8
8
|
qsharp.name: ApplyIfLessL
|
|
9
|
-
qsharp.summary: Computes `if (c < x) { action(target) }`, that is, applies `action` to `target` if a BigInt value `c` is less than the little-endian qubit register `x`
|
|
9
|
+
qsharp.summary: "Computes `if (c < x) { action(target) }`, that is, applies `action` to `target` if a BigInt value `c` is less than the little-endian qubit register `x`"
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# ApplyIfLessL operation
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
uid: Qdk.Microsoft.Quantum.Unstable.Arithmetic.ApplyIfLessLE
|
|
3
3
|
title: ApplyIfLessLE operation
|
|
4
|
-
ms.date: 02/
|
|
4
|
+
ms.date: 02/28/2024 12:00:00 AM
|
|
5
5
|
ms.topic: managed-reference
|
|
6
6
|
qsharp.kind: operation
|
|
7
7
|
qsharp.namespace: Microsoft.Quantum.Unstable.Arithmetic
|
|
8
8
|
qsharp.name: ApplyIfLessLE
|
|
9
|
-
qsharp.summary: Computes `if x < y { action(target) }`, that is, applies `action` to `target` if register `x` is less than the register `y`. Both qubit registers should be in a little-endian format.
|
|
9
|
+
qsharp.summary: "Computes `if x < y { action(target) }`, that is, applies `action` to `target` if register `x` is less than the register `y`. Both qubit registers should be in a little-endian format."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# ApplyIfLessLE operation
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
uid: Qdk.Microsoft.Quantum.Unstable.Arithmetic.ApplyIfLessOrEqualL
|
|
3
3
|
title: ApplyIfLessOrEqualL operation
|
|
4
|
-
ms.date: 02/
|
|
4
|
+
ms.date: 02/28/2024 12:00:00 AM
|
|
5
5
|
ms.topic: managed-reference
|
|
6
6
|
qsharp.kind: operation
|
|
7
7
|
qsharp.namespace: Microsoft.Quantum.Unstable.Arithmetic
|
|
8
8
|
qsharp.name: ApplyIfLessOrEqualL
|
|
9
|
-
qsharp.summary: Computes `if (c <= x) { action(target) }`, that is, applies `action` to `target` if a BigInt value `c` is less or equal to the little-endian qubit register `x`
|
|
9
|
+
qsharp.summary: "Computes `if (c <= x) { action(target) }`, that is, applies `action` to `target` if a BigInt value `c` is less or equal to the little-endian qubit register `x`"
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# ApplyIfLessOrEqualL operation
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
uid: Qdk.Microsoft.Quantum.Unstable.Arithmetic.ApplyIfLessOrEqualLE
|
|
3
3
|
title: ApplyIfLessOrEqualLE operation
|
|
4
|
-
ms.date: 02/
|
|
4
|
+
ms.date: 02/28/2024 12:00:00 AM
|
|
5
5
|
ms.topic: managed-reference
|
|
6
6
|
qsharp.kind: operation
|
|
7
7
|
qsharp.namespace: Microsoft.Quantum.Unstable.Arithmetic
|
|
8
8
|
qsharp.name: ApplyIfLessOrEqualLE
|
|
9
|
-
qsharp.summary: Computes `if x <= y { action(target) }`, that is, applies `action` to `target` if register `x` is less or equal to the register `y`. Both qubit registers should be in a little-endian format.
|
|
9
|
+
qsharp.summary: "Computes `if x <= y { action(target) }`, that is, applies `action` to `target` if register `x` is less or equal to the register `y`. Both qubit registers should be in a little-endian format."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# ApplyIfLessOrEqualLE operation
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
uid: Qdk.Microsoft.Quantum.Unstable.Arithmetic.FourierTDIncByLE
|
|
3
3
|
title: FourierTDIncByLE operation
|
|
4
|
-
ms.date: 02/
|
|
4
|
+
ms.date: 02/28/2024 12:00:00 AM
|
|
5
5
|
ms.topic: managed-reference
|
|
6
6
|
qsharp.kind: operation
|
|
7
7
|
qsharp.namespace: Microsoft.Quantum.Unstable.Arithmetic
|
|
8
8
|
qsharp.name: FourierTDIncByLE
|
|
9
|
-
qsharp.summary: Increments a little-endian register ys by a little-endian register xs using Quantum Fourier Transform.
|
|
9
|
+
qsharp.summary: "Increments a little-endian register ys by a little-endian register xs using Quantum Fourier Transform."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# FourierTDIncByLE operation
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
uid: Qdk.Microsoft.Quantum.Unstable.Arithmetic.IncByI
|
|
3
3
|
title: IncByI operation
|
|
4
|
-
ms.date: 02/
|
|
4
|
+
ms.date: 02/28/2024 12:00:00 AM
|
|
5
5
|
ms.topic: managed-reference
|
|
6
6
|
qsharp.kind: operation
|
|
7
7
|
qsharp.namespace: Microsoft.Quantum.Unstable.Arithmetic
|
|
8
8
|
qsharp.name: IncByI
|
|
9
|
-
qsharp.summary: Increments a little-endian register ys by an integer number c
|
|
9
|
+
qsharp.summary: "Increments a little-endian register ys by an integer number c"
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# IncByI operation
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
uid: Qdk.Microsoft.Quantum.Unstable.Arithmetic.IncByIUsingIncByLE
|
|
3
3
|
title: IncByIUsingIncByLE operation
|
|
4
|
-
ms.date: 02/
|
|
4
|
+
ms.date: 02/28/2024 12:00:00 AM
|
|
5
5
|
ms.topic: managed-reference
|
|
6
6
|
qsharp.kind: operation
|
|
7
7
|
qsharp.namespace: Microsoft.Quantum.Unstable.Arithmetic
|
|
8
8
|
qsharp.name: IncByIUsingIncByLE
|
|
9
|
-
qsharp.summary: Increments a little-endian register ys by an Int number c using provided adder.
|
|
9
|
+
qsharp.summary: "Increments a little-endian register ys by an Int number c using provided adder."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# IncByIUsingIncByLE operation
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
uid: Qdk.Microsoft.Quantum.Unstable.Arithmetic.IncByL
|
|
3
3
|
title: IncByL operation
|
|
4
|
-
ms.date: 02/
|
|
4
|
+
ms.date: 02/28/2024 12:00:00 AM
|
|
5
5
|
ms.topic: managed-reference
|
|
6
6
|
qsharp.kind: operation
|
|
7
7
|
qsharp.namespace: Microsoft.Quantum.Unstable.Arithmetic
|
|
8
8
|
qsharp.name: IncByL
|
|
9
|
-
qsharp.summary: Increments a little-endian register ys by a BigInt number c
|
|
9
|
+
qsharp.summary: "Increments a little-endian register ys by a BigInt number c"
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# IncByL operation
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
uid: Qdk.Microsoft.Quantum.Unstable.Arithmetic.IncByLE
|
|
3
3
|
title: IncByLE operation
|
|
4
|
-
ms.date: 02/
|
|
4
|
+
ms.date: 02/28/2024 12:00:00 AM
|
|
5
5
|
ms.topic: managed-reference
|
|
6
6
|
qsharp.kind: operation
|
|
7
7
|
qsharp.namespace: Microsoft.Quantum.Unstable.Arithmetic
|
|
8
8
|
qsharp.name: IncByLE
|
|
9
|
-
qsharp.summary: Increments a little-endian register ys by a little-endian register xs
|
|
9
|
+
qsharp.summary: "Increments a little-endian register ys by a little-endian register xs"
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# IncByLE operation
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
uid: Qdk.Microsoft.Quantum.Unstable.Arithmetic.IncByLEUsingAddLE
|
|
3
3
|
title: IncByLEUsingAddLE operation
|
|
4
|
-
ms.date: 02/
|
|
4
|
+
ms.date: 02/28/2024 12:00:00 AM
|
|
5
5
|
ms.topic: managed-reference
|
|
6
6
|
qsharp.kind: operation
|
|
7
7
|
qsharp.namespace: Microsoft.Quantum.Unstable.Arithmetic
|
|
8
8
|
qsharp.name: IncByLEUsingAddLE
|
|
9
|
-
qsharp.summary: Generic operation to turn two out-place adders into one in-place adder
|
|
9
|
+
qsharp.summary: "Generic operation to turn two out-place adders into one in-place adder"
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# IncByLEUsingAddLE operation
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
uid: Qdk.Microsoft.Quantum.Unstable.Arithmetic.IncByLUsingIncByLE
|
|
3
3
|
title: IncByLUsingIncByLE operation
|
|
4
|
-
ms.date: 02/
|
|
4
|
+
ms.date: 02/28/2024 12:00:00 AM
|
|
5
5
|
ms.topic: managed-reference
|
|
6
6
|
qsharp.kind: operation
|
|
7
7
|
qsharp.namespace: Microsoft.Quantum.Unstable.Arithmetic
|
|
8
8
|
qsharp.name: IncByLUsingIncByLE
|
|
9
|
-
qsharp.summary: Increments a little-endian register ys by a BigInt number c using provided adder.
|
|
9
|
+
qsharp.summary: "Increments a little-endian register ys by a BigInt number c using provided adder."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# IncByLUsingIncByLE operation
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
uid: Qdk.Microsoft.Quantum.Unstable.Arithmetic.LookAheadDKRSAddLE
|
|
3
3
|
title: LookAheadDKRSAddLE operation
|
|
4
|
-
ms.date: 02/
|
|
4
|
+
ms.date: 02/28/2024 12:00:00 AM
|
|
5
5
|
ms.topic: managed-reference
|
|
6
6
|
qsharp.kind: operation
|
|
7
7
|
qsharp.namespace: Microsoft.Quantum.Unstable.Arithmetic
|
|
8
8
|
qsharp.name: LookAheadDKRSAddLE
|
|
9
|
-
qsharp.summary: Sets a zero-initialized little-endian register zs to the sum of little-endian registers xs and ys using the carry-lookahead algorithm.
|
|
9
|
+
qsharp.summary: "Sets a zero-initialized little-endian register zs to the sum of little-endian registers xs and ys using the carry-lookahead algorithm."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# LookAheadDKRSAddLE operation
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
uid: Qdk.Microsoft.Quantum.Unstable.Arithmetic.MAJ
|
|
3
3
|
title: MAJ operation
|
|
4
|
-
ms.date: 02/
|
|
4
|
+
ms.date: 02/28/2024 12:00:00 AM
|
|
5
5
|
ms.topic: managed-reference
|
|
6
6
|
qsharp.kind: operation
|
|
7
7
|
qsharp.namespace: Microsoft.Quantum.Unstable.Arithmetic
|
|
8
8
|
qsharp.name: MAJ
|
|
9
|
-
qsharp.summary: This applies the in-place majority operation to 3 qubits.
|
|
9
|
+
qsharp.summary: "This applies the in-place majority operation to 3 qubits."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# MAJ operation
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
uid: Qdk.Microsoft.Quantum.Unstable.Arithmetic.ReflectAboutInteger
|
|
3
3
|
title: ReflectAboutInteger operation
|
|
4
|
-
ms.date: 02/
|
|
4
|
+
ms.date: 02/28/2024 12:00:00 AM
|
|
5
5
|
ms.topic: managed-reference
|
|
6
6
|
qsharp.kind: operation
|
|
7
7
|
qsharp.namespace: Microsoft.Quantum.Unstable.Arithmetic
|
|
8
8
|
qsharp.name: ReflectAboutInteger
|
|
9
|
-
qsharp.summary: Reflects a quantum register about a given classical integer.
|
|
9
|
+
qsharp.summary: "Reflects a quantum register about a given classical integer."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# ReflectAboutInteger operation
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
uid: Qdk.Microsoft.Quantum.Unstable.Arithmetic.RippleCarryCGAddLE
|
|
3
3
|
title: RippleCarryCGAddLE operation
|
|
4
|
-
ms.date: 02/
|
|
4
|
+
ms.date: 02/28/2024 12:00:00 AM
|
|
5
5
|
ms.topic: managed-reference
|
|
6
6
|
qsharp.kind: operation
|
|
7
7
|
qsharp.namespace: Microsoft.Quantum.Unstable.Arithmetic
|
|
8
8
|
qsharp.name: RippleCarryCGAddLE
|
|
9
|
-
qsharp.summary: Sets a zero-initialized little-endian register zs to the sum of little-endian registers xs and ys using the ripple-carry algorithm.
|
|
9
|
+
qsharp.summary: "Sets a zero-initialized little-endian register zs to the sum of little-endian registers xs and ys using the ripple-carry algorithm."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# RippleCarryCGAddLE operation
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
uid: Qdk.Microsoft.Quantum.Unstable.Arithmetic.RippleCarryCGIncByLE
|
|
3
3
|
title: RippleCarryCGIncByLE operation
|
|
4
|
-
ms.date: 02/
|
|
4
|
+
ms.date: 02/28/2024 12:00:00 AM
|
|
5
5
|
ms.topic: managed-reference
|
|
6
6
|
qsharp.kind: operation
|
|
7
7
|
qsharp.namespace: Microsoft.Quantum.Unstable.Arithmetic
|
|
8
8
|
qsharp.name: RippleCarryCGIncByLE
|
|
9
|
-
qsharp.summary: Increments a little-endian register ys by a little-endian register xs using the ripple-carry algorithm.
|
|
9
|
+
qsharp.summary: "Increments a little-endian register ys by a little-endian register xs using the ripple-carry algorithm."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# RippleCarryCGIncByLE operation
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
uid: Qdk.Microsoft.Quantum.Unstable.Arithmetic.RippleCarryTTKIncByLE
|
|
3
3
|
title: RippleCarryTTKIncByLE operation
|
|
4
|
-
ms.date: 02/
|
|
4
|
+
ms.date: 02/28/2024 12:00:00 AM
|
|
5
5
|
ms.topic: managed-reference
|
|
6
6
|
qsharp.kind: operation
|
|
7
7
|
qsharp.namespace: Microsoft.Quantum.Unstable.Arithmetic
|
|
8
8
|
qsharp.name: RippleCarryTTKIncByLE
|
|
9
|
-
qsharp.summary: Reversible, in-place ripple-carry addition of two integers.
|
|
9
|
+
qsharp.summary: "Reversible, in-place ripple-carry addition of two integers."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# RippleCarryTTKIncByLE operation
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
uid: Qdk.Microsoft.Quantum.Unstable.StatePreparation.ApproximatelyPreparePureStateCP
|
|
3
3
|
title: ApproximatelyPreparePureStateCP operation
|
|
4
|
-
ms.date: 02/
|
|
4
|
+
ms.date: 02/28/2024 12:00:00 AM
|
|
5
5
|
ms.topic: managed-reference
|
|
6
6
|
qsharp.kind: operation
|
|
7
7
|
qsharp.namespace: Microsoft.Quantum.Unstable.StatePreparation
|
|
8
8
|
qsharp.name: ApproximatelyPreparePureStateCP
|
|
9
|
-
qsharp.summary: Given a set of coefficients and a big-endian quantum register, prepares a state on that register described by the given coefficients, up to a given approximation tolerance.
|
|
9
|
+
qsharp.summary: "Given a set of coefficients and a big-endian quantum register, prepares a state on that register described by the given coefficients, up to a given approximation tolerance."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# ApproximatelyPreparePureStateCP operation
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
uid: Qdk.Microsoft.Quantum.Unstable.StatePreparation.PreparePureStateD
|
|
3
3
|
title: PreparePureStateD operation
|
|
4
|
-
ms.date: 02/
|
|
4
|
+
ms.date: 02/28/2024 12:00:00 AM
|
|
5
5
|
ms.topic: managed-reference
|
|
6
6
|
qsharp.kind: operation
|
|
7
7
|
qsharp.namespace: Microsoft.Quantum.Unstable.StatePreparation
|
|
8
8
|
qsharp.name: PreparePureStateD
|
|
9
|
-
qsharp.summary: Given a set of coefficients and a big-endian quantum register, prepares a state on that register described by the given coefficients.
|
|
9
|
+
qsharp.summary: "Given a set of coefficients and a big-endian quantum register, prepares a state on that register described by the given coefficients."
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# PreparePureStateD operation
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
uid: Qdk.Microsoft.Quantum.Unstable.TableLookup.Select
|
|
3
3
|
title: Select operation
|
|
4
|
-
ms.date: 02/
|
|
4
|
+
ms.date: 02/28/2024 12:00:00 AM
|
|
5
5
|
ms.topic: managed-reference
|
|
6
6
|
qsharp.kind: operation
|
|
7
7
|
qsharp.namespace: Microsoft.Quantum.Unstable.TableLookup
|
|
8
8
|
qsharp.name: Select
|
|
9
|
-
qsharp.summary: Performs table lookup using a SELECT network
|
|
9
|
+
qsharp.summary: "Performs table lookup using a SELECT network"
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# Select operation
|
package/lib/node/qsc_wasm.cjs
CHANGED
|
@@ -311,66 +311,72 @@ module.exports.git_hash = function() {
|
|
|
311
311
|
|
|
312
312
|
/**
|
|
313
313
|
* @param {(Array<any>)[]} sources
|
|
314
|
+
* @param {(string)[]} language_features
|
|
314
315
|
* @returns {string}
|
|
315
316
|
*/
|
|
316
|
-
module.exports.get_qir = function(sources) {
|
|
317
|
-
let
|
|
318
|
-
let
|
|
317
|
+
module.exports.get_qir = function(sources, language_features) {
|
|
318
|
+
let deferred4_0;
|
|
319
|
+
let deferred4_1;
|
|
319
320
|
try {
|
|
320
321
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
321
322
|
const ptr0 = passArrayJsValueToWasm0(sources, wasm.__wbindgen_export_0);
|
|
322
323
|
const len0 = WASM_VECTOR_LEN;
|
|
323
|
-
|
|
324
|
+
const ptr1 = passArrayJsValueToWasm0(language_features, wasm.__wbindgen_export_0);
|
|
325
|
+
const len1 = WASM_VECTOR_LEN;
|
|
326
|
+
wasm.get_qir(retptr, ptr0, len0, ptr1, len1);
|
|
324
327
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
325
328
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
326
329
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
327
330
|
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
328
|
-
var
|
|
329
|
-
var
|
|
331
|
+
var ptr3 = r0;
|
|
332
|
+
var len3 = r1;
|
|
330
333
|
if (r3) {
|
|
331
|
-
|
|
334
|
+
ptr3 = 0; len3 = 0;
|
|
332
335
|
throw takeObject(r2);
|
|
333
336
|
}
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
return getStringFromWasm0(
|
|
337
|
+
deferred4_0 = ptr3;
|
|
338
|
+
deferred4_1 = len3;
|
|
339
|
+
return getStringFromWasm0(ptr3, len3);
|
|
337
340
|
} finally {
|
|
338
341
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
339
|
-
wasm.__wbindgen_export_4(
|
|
342
|
+
wasm.__wbindgen_export_4(deferred4_0, deferred4_1, 1);
|
|
340
343
|
}
|
|
341
344
|
};
|
|
342
345
|
|
|
343
346
|
/**
|
|
344
347
|
* @param {(Array<any>)[]} sources
|
|
345
348
|
* @param {string} params
|
|
349
|
+
* @param {(string)[]} language_features
|
|
346
350
|
* @returns {string}
|
|
347
351
|
*/
|
|
348
|
-
module.exports.get_estimates = function(sources, params) {
|
|
349
|
-
let
|
|
350
|
-
let
|
|
352
|
+
module.exports.get_estimates = function(sources, params, language_features) {
|
|
353
|
+
let deferred5_0;
|
|
354
|
+
let deferred5_1;
|
|
351
355
|
try {
|
|
352
356
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
353
357
|
const ptr0 = passArrayJsValueToWasm0(sources, wasm.__wbindgen_export_0);
|
|
354
358
|
const len0 = WASM_VECTOR_LEN;
|
|
355
359
|
const ptr1 = passStringToWasm0(params, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
356
360
|
const len1 = WASM_VECTOR_LEN;
|
|
357
|
-
|
|
361
|
+
const ptr2 = passArrayJsValueToWasm0(language_features, wasm.__wbindgen_export_0);
|
|
362
|
+
const len2 = WASM_VECTOR_LEN;
|
|
363
|
+
wasm.get_estimates(retptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
358
364
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
359
365
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
360
366
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
361
367
|
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
362
|
-
var
|
|
363
|
-
var
|
|
368
|
+
var ptr4 = r0;
|
|
369
|
+
var len4 = r1;
|
|
364
370
|
if (r3) {
|
|
365
|
-
|
|
371
|
+
ptr4 = 0; len4 = 0;
|
|
366
372
|
throw takeObject(r2);
|
|
367
373
|
}
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
return getStringFromWasm0(
|
|
374
|
+
deferred5_0 = ptr4;
|
|
375
|
+
deferred5_1 = len4;
|
|
376
|
+
return getStringFromWasm0(ptr4, len4);
|
|
371
377
|
} finally {
|
|
372
378
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
373
|
-
wasm.__wbindgen_export_4(
|
|
379
|
+
wasm.__wbindgen_export_4(deferred5_0, deferred5_1, 1);
|
|
374
380
|
}
|
|
375
381
|
};
|
|
376
382
|
|
|
@@ -399,24 +405,35 @@ module.exports.get_library_source_content = function(name) {
|
|
|
399
405
|
|
|
400
406
|
/**
|
|
401
407
|
* @param {string} code
|
|
408
|
+
* @param {(string)[]} language_features
|
|
402
409
|
* @returns {string}
|
|
403
410
|
*/
|
|
404
|
-
module.exports.get_hir = function(code) {
|
|
405
|
-
let
|
|
406
|
-
let
|
|
411
|
+
module.exports.get_hir = function(code, language_features) {
|
|
412
|
+
let deferred4_0;
|
|
413
|
+
let deferred4_1;
|
|
407
414
|
try {
|
|
408
415
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
409
416
|
const ptr0 = passStringToWasm0(code, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
410
417
|
const len0 = WASM_VECTOR_LEN;
|
|
411
|
-
|
|
418
|
+
const ptr1 = passArrayJsValueToWasm0(language_features, wasm.__wbindgen_export_0);
|
|
419
|
+
const len1 = WASM_VECTOR_LEN;
|
|
420
|
+
wasm.get_hir(retptr, ptr0, len0, ptr1, len1);
|
|
412
421
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
413
422
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
423
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
424
|
+
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
425
|
+
var ptr3 = r0;
|
|
426
|
+
var len3 = r1;
|
|
427
|
+
if (r3) {
|
|
428
|
+
ptr3 = 0; len3 = 0;
|
|
429
|
+
throw takeObject(r2);
|
|
430
|
+
}
|
|
431
|
+
deferred4_0 = ptr3;
|
|
432
|
+
deferred4_1 = len3;
|
|
433
|
+
return getStringFromWasm0(ptr3, len3);
|
|
417
434
|
} finally {
|
|
418
435
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
419
|
-
wasm.__wbindgen_export_4(
|
|
436
|
+
wasm.__wbindgen_export_4(deferred4_0, deferred4_1, 1);
|
|
420
437
|
}
|
|
421
438
|
};
|
|
422
439
|
|
|
@@ -425,16 +442,19 @@ module.exports.get_hir = function(code) {
|
|
|
425
442
|
* @param {string} expr
|
|
426
443
|
* @param {Function} event_cb
|
|
427
444
|
* @param {number} shots
|
|
445
|
+
* @param {(string)[]} language_features
|
|
428
446
|
* @returns {boolean}
|
|
429
447
|
*/
|
|
430
|
-
module.exports.run = function(sources, expr, event_cb, shots) {
|
|
448
|
+
module.exports.run = function(sources, expr, event_cb, shots, language_features) {
|
|
431
449
|
try {
|
|
432
450
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
433
451
|
const ptr0 = passArrayJsValueToWasm0(sources, wasm.__wbindgen_export_0);
|
|
434
452
|
const len0 = WASM_VECTOR_LEN;
|
|
435
453
|
const ptr1 = passStringToWasm0(expr, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
436
454
|
const len1 = WASM_VECTOR_LEN;
|
|
437
|
-
|
|
455
|
+
const ptr2 = passArrayJsValueToWasm0(language_features, wasm.__wbindgen_export_0);
|
|
456
|
+
const len2 = WASM_VECTOR_LEN;
|
|
457
|
+
wasm.run(retptr, ptr0, len0, ptr1, len1, addBorrowedObject(event_cb), shots, ptr2, len2);
|
|
438
458
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
439
459
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
440
460
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -512,12 +532,13 @@ class DebugService {
|
|
|
512
532
|
/**
|
|
513
533
|
* @param {(Array<any>)[]} sources
|
|
514
534
|
* @param {string} target_profile
|
|
515
|
-
* @param {string | undefined}
|
|
535
|
+
* @param {string | undefined} entry
|
|
536
|
+
* @param {(string)[]} language_features
|
|
516
537
|
* @returns {string}
|
|
517
538
|
*/
|
|
518
|
-
load_source(sources, target_profile, entry) {
|
|
519
|
-
let
|
|
520
|
-
let
|
|
539
|
+
load_source(sources, target_profile, entry, language_features) {
|
|
540
|
+
let deferred5_0;
|
|
541
|
+
let deferred5_1;
|
|
521
542
|
try {
|
|
522
543
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
523
544
|
const ptr0 = passArrayJsValueToWasm0(sources, wasm.__wbindgen_export_0);
|
|
@@ -526,15 +547,17 @@ class DebugService {
|
|
|
526
547
|
const len1 = WASM_VECTOR_LEN;
|
|
527
548
|
var ptr2 = isLikeNone(entry) ? 0 : passStringToWasm0(entry, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
528
549
|
var len2 = WASM_VECTOR_LEN;
|
|
529
|
-
|
|
550
|
+
const ptr3 = passArrayJsValueToWasm0(language_features, wasm.__wbindgen_export_0);
|
|
551
|
+
const len3 = WASM_VECTOR_LEN;
|
|
552
|
+
wasm.debugservice_load_source(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
530
553
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
531
554
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
532
|
-
|
|
533
|
-
|
|
555
|
+
deferred5_0 = r0;
|
|
556
|
+
deferred5_1 = r1;
|
|
534
557
|
return getStringFromWasm0(r0, r1);
|
|
535
558
|
} finally {
|
|
536
559
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
537
|
-
wasm.__wbindgen_export_4(
|
|
560
|
+
wasm.__wbindgen_export_4(deferred5_0, deferred5_1, 1);
|
|
538
561
|
}
|
|
539
562
|
}
|
|
540
563
|
/**
|
|
@@ -925,16 +948,6 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
|
|
|
925
948
|
return ret;
|
|
926
949
|
};
|
|
927
950
|
|
|
928
|
-
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
929
|
-
const ret = BigInt.asUintN(64, arg0);
|
|
930
|
-
return addHeapObject(ret);
|
|
931
|
-
};
|
|
932
|
-
|
|
933
|
-
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
934
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
935
|
-
return addHeapObject(ret);
|
|
936
|
-
};
|
|
937
|
-
|
|
938
951
|
module.exports.__wbindgen_is_object = function(arg0) {
|
|
939
952
|
const val = getObject(arg0);
|
|
940
953
|
const ret = typeof(val) === 'object' && val !== null;
|
|
@@ -951,6 +964,16 @@ module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
|
951
964
|
return ret;
|
|
952
965
|
};
|
|
953
966
|
|
|
967
|
+
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
968
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
969
|
+
return addHeapObject(ret);
|
|
970
|
+
};
|
|
971
|
+
|
|
972
|
+
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
973
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
974
|
+
return addHeapObject(ret);
|
|
975
|
+
};
|
|
976
|
+
|
|
954
977
|
module.exports.__wbindgen_number_new = function(arg0) {
|
|
955
978
|
const ret = arg0;
|
|
956
979
|
return addHeapObject(ret);
|
|
@@ -1287,7 +1310,7 @@ module.exports.__wbindgen_memory = function() {
|
|
|
1287
1310
|
return addHeapObject(ret);
|
|
1288
1311
|
};
|
|
1289
1312
|
|
|
1290
|
-
module.exports.
|
|
1313
|
+
module.exports.__wbindgen_closure_wrapper611 = function(arg0, arg1, arg2) {
|
|
1291
1314
|
const ret = makeMutClosure(arg0, arg1, 219, __wbg_adapter_46);
|
|
1292
1315
|
return addHeapObject(ret);
|
|
1293
1316
|
};
|
package/lib/node/qsc_wasm.d.cts
CHANGED
|
@@ -15,15 +15,17 @@ export function setLogLevel(level: number): void;
|
|
|
15
15
|
export function git_hash(): string;
|
|
16
16
|
/**
|
|
17
17
|
* @param {(Array<any>)[]} sources
|
|
18
|
+
* @param {(string)[]} language_features
|
|
18
19
|
* @returns {string}
|
|
19
20
|
*/
|
|
20
|
-
export function get_qir(sources: (Array<any>)[]): string;
|
|
21
|
+
export function get_qir(sources: (Array<any>)[], language_features: (string)[]): string;
|
|
21
22
|
/**
|
|
22
23
|
* @param {(Array<any>)[]} sources
|
|
23
24
|
* @param {string} params
|
|
25
|
+
* @param {(string)[]} language_features
|
|
24
26
|
* @returns {string}
|
|
25
27
|
*/
|
|
26
|
-
export function get_estimates(sources: (Array<any>)[], params: string): string;
|
|
28
|
+
export function get_estimates(sources: (Array<any>)[], params: string, language_features: (string)[]): string;
|
|
27
29
|
/**
|
|
28
30
|
* @param {string} name
|
|
29
31
|
* @returns {string | undefined}
|
|
@@ -31,17 +33,19 @@ export function get_estimates(sources: (Array<any>)[], params: string): string;
|
|
|
31
33
|
export function get_library_source_content(name: string): string | undefined;
|
|
32
34
|
/**
|
|
33
35
|
* @param {string} code
|
|
36
|
+
* @param {(string)[]} language_features
|
|
34
37
|
* @returns {string}
|
|
35
38
|
*/
|
|
36
|
-
export function get_hir(code: string): string;
|
|
39
|
+
export function get_hir(code: string, language_features: (string)[]): string;
|
|
37
40
|
/**
|
|
38
41
|
* @param {(Array<any>)[]} sources
|
|
39
42
|
* @param {string} expr
|
|
40
43
|
* @param {Function} event_cb
|
|
41
44
|
* @param {number} shots
|
|
45
|
+
* @param {(string)[]} language_features
|
|
42
46
|
* @returns {boolean}
|
|
43
47
|
*/
|
|
44
|
-
export function run(sources: (Array<any>)[], expr: string, event_cb: Function, shots: number): boolean;
|
|
48
|
+
export function run(sources: (Array<any>)[], expr: string, event_cb: Function, shots: number, language_features: (string)[]): boolean;
|
|
45
49
|
/**
|
|
46
50
|
* @param {string} solution_code
|
|
47
51
|
* @param {any} exercise_sources_js
|
|
@@ -194,6 +198,7 @@ export interface ICell {
|
|
|
194
198
|
|
|
195
199
|
export interface INotebookMetadata {
|
|
196
200
|
targetProfile?: "unrestricted" | "base";
|
|
201
|
+
languageFeatures?: "v2-preview-syntax"[];
|
|
197
202
|
}
|
|
198
203
|
|
|
199
204
|
export interface IPosition {
|
|
@@ -225,10 +230,11 @@ export class DebugService {
|
|
|
225
230
|
/**
|
|
226
231
|
* @param {(Array<any>)[]} sources
|
|
227
232
|
* @param {string} target_profile
|
|
228
|
-
* @param {string | undefined}
|
|
233
|
+
* @param {string | undefined} entry
|
|
234
|
+
* @param {(string)[]} language_features
|
|
229
235
|
* @returns {string}
|
|
230
236
|
*/
|
|
231
|
-
load_source(sources: (Array<any>)[], target_profile: string, entry
|
|
237
|
+
load_source(sources: (Array<any>)[], target_profile: string, entry: string | undefined, language_features: (string)[]): string;
|
|
232
238
|
/**
|
|
233
239
|
* @returns {IQuantumStateList}
|
|
234
240
|
*/
|
|
Binary file
|