qsharp-lang 1.1.6-dev → 1.2.1-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/common.d.ts +1 -0
- package/dist/compiler/compiler.d.ts +26 -12
- package/dist/compiler/compiler.js +31 -15
- package/dist/compiler/events.d.ts +4 -5
- package/dist/compiler/events.js +6 -2
- package/dist/debug-service/debug-service.js +4 -1
- package/dist/katas-content.generated.js +2102 -1155
- package/dist/language-service/language-service.d.ts +2 -0
- package/dist/language-service/language-service.js +4 -0
- package/dist/workers/common.d.ts +19 -1
- package/dist/workers/common.js +49 -11
- package/docs/Microsoft.Quantum.Arrays/All.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Any.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Chunks.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/CircularlyShifted.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/ColumnAt.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Count.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Diagonal.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/DrawMany.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Enumerated.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Excluding.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Filtered.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/FlatMapped.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Flattened.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Fold.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/ForEach.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Head.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/HeadAndRest.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/IndexOf.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/IndexRange.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Interleaved.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/IsEmpty.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/IsRectangularArray.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/IsSorted.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/IsSquareArray.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Mapped.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/MappedByIndex.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/MappedOverRange.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Most.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/MostAndTail.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Padded.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Partitioned.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Rest.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Reversed.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/SequenceI.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/SequenceL.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Sorted.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Subarray.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Swapped.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Tail.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Transposed.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Unzipped.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Where.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Windows.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Zipped.md +1 -1
- package/docs/Microsoft.Quantum.Canon/ApplyCNOTChain.md +1 -1
- package/docs/Microsoft.Quantum.Canon/ApplyControlledOnBitString.md +1 -1
- package/docs/Microsoft.Quantum.Canon/ApplyControlledOnInt.md +1 -1
- package/docs/Microsoft.Quantum.Canon/ApplyP.md +1 -1
- package/docs/Microsoft.Quantum.Canon/ApplyPauli.md +1 -1
- package/docs/Microsoft.Quantum.Canon/ApplyPauliFromBitString.md +1 -1
- package/docs/Microsoft.Quantum.Canon/ApplyPauliFromInt.md +1 -1
- package/docs/Microsoft.Quantum.Canon/ApplyQFT.md +1 -1
- package/docs/Microsoft.Quantum.Canon/ApplyToEach.md +1 -1
- package/docs/Microsoft.Quantum.Canon/ApplyToEachA.md +1 -1
- package/docs/Microsoft.Quantum.Canon/ApplyToEachC.md +1 -1
- package/docs/Microsoft.Quantum.Canon/ApplyToEachCA.md +1 -1
- package/docs/Microsoft.Quantum.Canon/ApplyXorInPlace.md +1 -1
- package/docs/Microsoft.Quantum.Canon/ApplyXorInPlaceL.md +1 -1
- package/docs/Microsoft.Quantum.Canon/CX.md +1 -1
- package/docs/Microsoft.Quantum.Canon/CY.md +1 -1
- package/docs/Microsoft.Quantum.Canon/CZ.md +1 -1
- package/docs/Microsoft.Quantum.Canon/Fst.md +1 -1
- package/docs/Microsoft.Quantum.Canon/Snd.md +1 -1
- package/docs/Microsoft.Quantum.Canon/SwapReverseRegister.md +1 -1
- package/docs/Microsoft.Quantum.Convert/BigIntAsBoolArray.md +1 -1
- package/docs/Microsoft.Quantum.Convert/BoolArrayAsBigInt.md +1 -1
- package/docs/Microsoft.Quantum.Convert/BoolArrayAsInt.md +1 -1
- package/docs/Microsoft.Quantum.Convert/BoolArrayAsResultArray.md +1 -1
- package/docs/Microsoft.Quantum.Convert/BoolAsResult.md +1 -1
- package/docs/Microsoft.Quantum.Convert/ComplexAsComplexPolar.md +1 -1
- package/docs/Microsoft.Quantum.Convert/ComplexPolarAsComplex.md +1 -1
- package/docs/Microsoft.Quantum.Convert/IntAsBigInt.md +1 -1
- package/docs/Microsoft.Quantum.Convert/IntAsBoolArray.md +1 -1
- package/docs/Microsoft.Quantum.Convert/IntAsDouble.md +1 -1
- package/docs/Microsoft.Quantum.Convert/ResultArrayAsBoolArray.md +1 -1
- package/docs/Microsoft.Quantum.Convert/ResultArrayAsInt.md +1 -1
- package/docs/Microsoft.Quantum.Convert/ResultAsBool.md +1 -1
- 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.Diagnostics/CheckAllZero.md +1 -1
- package/docs/Microsoft.Quantum.Diagnostics/CheckOperationsAreEqual.md +1 -1
- package/docs/Microsoft.Quantum.Diagnostics/CheckZero.md +1 -1
- package/docs/Microsoft.Quantum.Diagnostics/DumpMachine.md +28 -2
- package/docs/Microsoft.Quantum.Diagnostics/DumpRegister.md +51 -0
- package/docs/Microsoft.Quantum.Diagnostics/Fact.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/CCNOT.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/CNOT.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/Exp.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/H.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/I.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/M.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/Measure.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/Message.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/R.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/R1.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/R1Frac.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/RFrac.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/Reset.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/ResetAll.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/Rx.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/Rxx.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/Ry.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/Ryy.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/Rz.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/Rzz.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/S.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/SWAP.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/T.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/X.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/Y.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/Z.md +1 -1
- package/docs/Microsoft.Quantum.Logical/Xor.md +1 -1
- package/docs/Microsoft.Quantum.Math/AbsComplex.md +1 -1
- package/docs/Microsoft.Quantum.Math/AbsComplexPolar.md +1 -1
- package/docs/Microsoft.Quantum.Math/AbsD.md +1 -1
- package/docs/Microsoft.Quantum.Math/AbsI.md +1 -1
- package/docs/Microsoft.Quantum.Math/AbsL.md +1 -1
- package/docs/Microsoft.Quantum.Math/AbsSquaredComplex.md +1 -1
- package/docs/Microsoft.Quantum.Math/AbsSquaredComplexPolar.md +1 -1
- package/docs/Microsoft.Quantum.Math/ApproximateFactorial.md +1 -1
- package/docs/Microsoft.Quantum.Math/ArcCos.md +1 -1
- package/docs/Microsoft.Quantum.Math/ArcCosh.md +1 -1
- package/docs/Microsoft.Quantum.Math/ArcSin.md +1 -1
- package/docs/Microsoft.Quantum.Math/ArcSinh.md +1 -1
- package/docs/Microsoft.Quantum.Math/ArcTan.md +1 -1
- package/docs/Microsoft.Quantum.Math/ArcTan2.md +1 -1
- package/docs/Microsoft.Quantum.Math/ArcTanh.md +1 -1
- package/docs/Microsoft.Quantum.Math/ArgComplex.md +1 -1
- package/docs/Microsoft.Quantum.Math/ArgComplexPolar.md +1 -1
- package/docs/Microsoft.Quantum.Math/Binom.md +1 -1
- package/docs/Microsoft.Quantum.Math/BitSizeI.md +1 -1
- package/docs/Microsoft.Quantum.Math/BitSizeL.md +1 -1
- package/docs/Microsoft.Quantum.Math/Ceiling.md +1 -1
- package/docs/Microsoft.Quantum.Math/Complex.md +1 -1
- package/docs/Microsoft.Quantum.Math/ComplexPolar.md +1 -1
- package/docs/Microsoft.Quantum.Math/ContinuedFractionConvergentI.md +1 -1
- package/docs/Microsoft.Quantum.Math/ContinuedFractionConvergentL.md +1 -1
- package/docs/Microsoft.Quantum.Math/Cos.md +1 -1
- package/docs/Microsoft.Quantum.Math/Cosh.md +1 -1
- package/docs/Microsoft.Quantum.Math/DivRemI.md +1 -1
- package/docs/Microsoft.Quantum.Math/DivRemL.md +1 -1
- package/docs/Microsoft.Quantum.Math/DividedByC.md +1 -1
- package/docs/Microsoft.Quantum.Math/DividedByCP.md +1 -1
- package/docs/Microsoft.Quantum.Math/E.md +1 -1
- package/docs/Microsoft.Quantum.Math/ExpModI.md +1 -1
- package/docs/Microsoft.Quantum.Math/ExpModL.md +1 -1
- package/docs/Microsoft.Quantum.Math/ExtendedGreatestCommonDivisorI.md +1 -1
- package/docs/Microsoft.Quantum.Math/ExtendedGreatestCommonDivisorL.md +1 -1
- package/docs/Microsoft.Quantum.Math/FactorialI.md +1 -1
- package/docs/Microsoft.Quantum.Math/FactorialL.md +1 -1
- package/docs/Microsoft.Quantum.Math/Floor.md +1 -1
- package/docs/Microsoft.Quantum.Math/GreatestCommonDivisorI.md +1 -1
- package/docs/Microsoft.Quantum.Math/GreatestCommonDivisorL.md +1 -1
- package/docs/Microsoft.Quantum.Math/HammingWeightI.md +1 -1
- package/docs/Microsoft.Quantum.Math/InverseModI.md +1 -1
- package/docs/Microsoft.Quantum.Math/InverseModL.md +1 -1
- package/docs/Microsoft.Quantum.Math/IsCoprimeI.md +1 -1
- package/docs/Microsoft.Quantum.Math/IsCoprimeL.md +1 -1
- package/docs/Microsoft.Quantum.Math/IsInfinite.md +1 -1
- package/docs/Microsoft.Quantum.Math/IsNaN.md +1 -1
- package/docs/Microsoft.Quantum.Math/LargestFixedPoint.md +1 -1
- package/docs/Microsoft.Quantum.Math/Lg.md +1 -1
- package/docs/Microsoft.Quantum.Math/Log.md +1 -1
- package/docs/Microsoft.Quantum.Math/Log10.md +1 -1
- package/docs/Microsoft.Quantum.Math/LogFactorialD.md +1 -1
- package/docs/Microsoft.Quantum.Math/LogGammaD.md +1 -1
- package/docs/Microsoft.Quantum.Math/LogOf2.md +1 -1
- package/docs/Microsoft.Quantum.Math/Max.md +1 -1
- package/docs/Microsoft.Quantum.Math/MaxD.md +1 -1
- package/docs/Microsoft.Quantum.Math/MaxI.md +1 -1
- package/docs/Microsoft.Quantum.Math/MaxL.md +1 -1
- package/docs/Microsoft.Quantum.Math/Min.md +1 -1
- package/docs/Microsoft.Quantum.Math/MinD.md +1 -1
- package/docs/Microsoft.Quantum.Math/MinI.md +1 -1
- package/docs/Microsoft.Quantum.Math/MinL.md +1 -1
- package/docs/Microsoft.Quantum.Math/MinusC.md +1 -1
- package/docs/Microsoft.Quantum.Math/MinusCP.md +1 -1
- package/docs/Microsoft.Quantum.Math/ModulusI.md +1 -1
- package/docs/Microsoft.Quantum.Math/ModulusL.md +1 -1
- package/docs/Microsoft.Quantum.Math/NegationC.md +1 -1
- package/docs/Microsoft.Quantum.Math/NegationCP.md +1 -1
- package/docs/Microsoft.Quantum.Math/PI.md +2 -2
- package/docs/Microsoft.Quantum.Math/PNorm.md +1 -1
- package/docs/Microsoft.Quantum.Math/PNormalized.md +1 -1
- package/docs/Microsoft.Quantum.Math/PlusC.md +1 -1
- package/docs/Microsoft.Quantum.Math/PlusCP.md +1 -1
- package/docs/Microsoft.Quantum.Math/PowC.md +1 -1
- package/docs/Microsoft.Quantum.Math/PowCP.md +1 -1
- package/docs/Microsoft.Quantum.Math/RealMod.md +1 -1
- package/docs/Microsoft.Quantum.Math/Round.md +1 -1
- package/docs/Microsoft.Quantum.Math/SignD.md +1 -1
- package/docs/Microsoft.Quantum.Math/SignI.md +1 -1
- package/docs/Microsoft.Quantum.Math/SignL.md +1 -1
- package/docs/Microsoft.Quantum.Math/Sin.md +1 -1
- package/docs/Microsoft.Quantum.Math/Sinh.md +1 -1
- package/docs/Microsoft.Quantum.Math/SmallestFixedPoint.md +1 -1
- package/docs/Microsoft.Quantum.Math/Sqrt.md +1 -1
- package/docs/Microsoft.Quantum.Math/SquaredNorm.md +1 -1
- package/docs/Microsoft.Quantum.Math/Tan.md +1 -1
- package/docs/Microsoft.Quantum.Math/Tanh.md +1 -1
- package/docs/Microsoft.Quantum.Math/TimesC.md +1 -1
- package/docs/Microsoft.Quantum.Math/TimesCP.md +1 -1
- package/docs/Microsoft.Quantum.Math/TrailingZeroCountI.md +1 -1
- package/docs/Microsoft.Quantum.Math/TrailingZeroCountL.md +1 -1
- package/docs/Microsoft.Quantum.Math/Truncate.md +1 -1
- package/docs/Microsoft.Quantum.Measurement/MResetEachZ.md +1 -1
- package/docs/Microsoft.Quantum.Measurement/MResetX.md +1 -1
- package/docs/Microsoft.Quantum.Measurement/MResetY.md +1 -1
- package/docs/Microsoft.Quantum.Measurement/MResetZ.md +1 -1
- package/docs/Microsoft.Quantum.Measurement/MeasureAllZ.md +1 -1
- package/docs/Microsoft.Quantum.Measurement/MeasureEachZ.md +1 -1
- package/docs/Microsoft.Quantum.Measurement/MeasureInteger.md +1 -1
- package/docs/Microsoft.Quantum.Random/DrawRandomDouble.md +1 -1
- package/docs/Microsoft.Quantum.Random/DrawRandomInt.md +1 -1
- package/docs/Microsoft.Quantum.ResourceEstimation/AccountForEstimates.md +1 -1
- package/docs/Microsoft.Quantum.ResourceEstimation/AuxQubitCount.md +1 -1
- package/docs/Microsoft.Quantum.ResourceEstimation/BeginEstimateCaching.md +1 -1
- package/docs/Microsoft.Quantum.ResourceEstimation/BeginRepeatEstimates.md +1 -1
- package/docs/Microsoft.Quantum.ResourceEstimation/CczCount.md +1 -1
- package/docs/Microsoft.Quantum.ResourceEstimation/EndEstimateCaching.md +1 -1
- package/docs/Microsoft.Quantum.ResourceEstimation/EndRepeatEstimates.md +1 -1
- package/docs/Microsoft.Quantum.ResourceEstimation/MeasurementCount.md +1 -1
- package/docs/Microsoft.Quantum.ResourceEstimation/PSSPCLayout.md +1 -1
- package/docs/Microsoft.Quantum.ResourceEstimation/RepeatEstimates.md +1 -1
- package/docs/Microsoft.Quantum.ResourceEstimation/RotationCount.md +1 -1
- package/docs/Microsoft.Quantum.ResourceEstimation/RotationDepth.md +1 -1
- package/docs/Microsoft.Quantum.ResourceEstimation/SingleVariant.md +1 -1
- package/docs/Microsoft.Quantum.ResourceEstimation/TCount.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 +2 -2
- 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 +2 -2
- 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/toc.yml +1 -0
- package/lib/node/qsc_wasm.cjs +173 -78
- package/lib/node/qsc_wasm.d.cts +6 -2
- package/lib/node/qsc_wasm_bg.wasm +0 -0
- package/lib/web/qsc_wasm.d.ts +7 -2
- package/lib/web/qsc_wasm.js +163 -75
- package/lib/web/qsc_wasm_bg.wasm +0 -0
- package/package.json +1 -1
- package/ux/output_data.md +1 -1
- package/ux/report.ts +1 -1
package/lib/web/qsc_wasm.js
CHANGED
|
@@ -64,6 +64,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
64
64
|
const ret = encodeString(arg, view);
|
|
65
65
|
|
|
66
66
|
offset += ret.written;
|
|
67
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
67
68
|
}
|
|
68
69
|
|
|
69
70
|
WASM_VECTOR_LEN = offset;
|
|
@@ -106,6 +107,15 @@ function takeObject(idx) {
|
|
|
106
107
|
return ret;
|
|
107
108
|
}
|
|
108
109
|
|
|
110
|
+
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
|
111
|
+
|
|
112
|
+
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
|
|
113
|
+
|
|
114
|
+
function getStringFromWasm0(ptr, len) {
|
|
115
|
+
ptr = ptr >>> 0;
|
|
116
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
117
|
+
}
|
|
118
|
+
|
|
109
119
|
function addHeapObject(obj) {
|
|
110
120
|
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
111
121
|
const idx = heap_next;
|
|
@@ -115,13 +125,13 @@ function addHeapObject(obj) {
|
|
|
115
125
|
return idx;
|
|
116
126
|
}
|
|
117
127
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
|
|
128
|
+
let cachedBigInt64Memory0 = null;
|
|
121
129
|
|
|
122
|
-
function
|
|
123
|
-
|
|
124
|
-
|
|
130
|
+
function getBigInt64Memory0() {
|
|
131
|
+
if (cachedBigInt64Memory0 === null || cachedBigInt64Memory0.byteLength === 0) {
|
|
132
|
+
cachedBigInt64Memory0 = new BigInt64Array(wasm.memory.buffer);
|
|
133
|
+
}
|
|
134
|
+
return cachedBigInt64Memory0;
|
|
125
135
|
}
|
|
126
136
|
|
|
127
137
|
function debugString(val) {
|
|
@@ -189,6 +199,12 @@ function debugString(val) {
|
|
|
189
199
|
return className;
|
|
190
200
|
}
|
|
191
201
|
|
|
202
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
203
|
+
? { register: () => {}, unregister: () => {} }
|
|
204
|
+
: new FinalizationRegistry(state => {
|
|
205
|
+
wasm.__wbindgen_export_2.get(state.dtor)(state.a, state.b)
|
|
206
|
+
});
|
|
207
|
+
|
|
192
208
|
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
193
209
|
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
194
210
|
const real = (...args) => {
|
|
@@ -203,17 +219,17 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
203
219
|
} finally {
|
|
204
220
|
if (--state.cnt === 0) {
|
|
205
221
|
wasm.__wbindgen_export_2.get(state.dtor)(a, state.b);
|
|
206
|
-
|
|
222
|
+
CLOSURE_DTORS.unregister(state);
|
|
207
223
|
} else {
|
|
208
224
|
state.a = a;
|
|
209
225
|
}
|
|
210
226
|
}
|
|
211
227
|
};
|
|
212
228
|
real.original = state;
|
|
213
|
-
|
|
229
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
214
230
|
return real;
|
|
215
231
|
}
|
|
216
|
-
function
|
|
232
|
+
function __wbg_adapter_54(arg0, arg1, arg2) {
|
|
217
233
|
wasm.__wbindgen_export_3(arg0, arg1, addHeapObject(arg2));
|
|
218
234
|
}
|
|
219
235
|
|
|
@@ -497,13 +513,17 @@ function handleError(f, args) {
|
|
|
497
513
|
wasm.__wbindgen_export_5(addHeapObject(e));
|
|
498
514
|
}
|
|
499
515
|
}
|
|
500
|
-
function
|
|
516
|
+
function __wbg_adapter_170(arg0, arg1, arg2, arg3) {
|
|
501
517
|
wasm.__wbindgen_export_6(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
502
518
|
}
|
|
503
519
|
|
|
504
520
|
/**
|
|
505
521
|
*/
|
|
506
522
|
export const StepResultId = Object.freeze({ BreakpointHit:0,"0":"BreakpointHit",Next:1,"1":"Next",StepIn:2,"2":"StepIn",StepOut:3,"3":"StepOut",Return:4,"4":"Return", });
|
|
523
|
+
|
|
524
|
+
const DebugServiceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
525
|
+
? { register: () => {}, unregister: () => {} }
|
|
526
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_debugservice_free(ptr >>> 0));
|
|
507
527
|
/**
|
|
508
528
|
*/
|
|
509
529
|
export class DebugService {
|
|
@@ -511,7 +531,7 @@ export class DebugService {
|
|
|
511
531
|
__destroy_into_raw() {
|
|
512
532
|
const ptr = this.__wbg_ptr;
|
|
513
533
|
this.__wbg_ptr = 0;
|
|
514
|
-
|
|
534
|
+
DebugServiceFinalization.unregister(this);
|
|
515
535
|
return ptr;
|
|
516
536
|
}
|
|
517
537
|
|
|
@@ -681,6 +701,10 @@ export class DebugService {
|
|
|
681
701
|
return takeObject(ret);
|
|
682
702
|
}
|
|
683
703
|
}
|
|
704
|
+
|
|
705
|
+
const LanguageServiceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
706
|
+
? { register: () => {}, unregister: () => {} }
|
|
707
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_languageservice_free(ptr >>> 0));
|
|
684
708
|
/**
|
|
685
709
|
*/
|
|
686
710
|
export class LanguageService {
|
|
@@ -688,7 +712,7 @@ export class LanguageService {
|
|
|
688
712
|
__destroy_into_raw() {
|
|
689
713
|
const ptr = this.__wbg_ptr;
|
|
690
714
|
this.__wbg_ptr = 0;
|
|
691
|
-
|
|
715
|
+
LanguageServiceFinalization.unregister(this);
|
|
692
716
|
return ptr;
|
|
693
717
|
}
|
|
694
718
|
|
|
@@ -810,6 +834,25 @@ export class LanguageService {
|
|
|
810
834
|
}
|
|
811
835
|
/**
|
|
812
836
|
* @param {string} uri
|
|
837
|
+
* @returns {(ITextEdit)[]}
|
|
838
|
+
*/
|
|
839
|
+
get_format_changes(uri) {
|
|
840
|
+
try {
|
|
841
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
842
|
+
const ptr0 = passStringToWasm0(uri, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
843
|
+
const len0 = WASM_VECTOR_LEN;
|
|
844
|
+
wasm.languageservice_get_format_changes(retptr, this.__wbg_ptr, ptr0, len0);
|
|
845
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
846
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
847
|
+
var v2 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
848
|
+
wasm.__wbindgen_export_4(r0, r1 * 4, 4);
|
|
849
|
+
return v2;
|
|
850
|
+
} finally {
|
|
851
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
/**
|
|
855
|
+
* @param {string} uri
|
|
813
856
|
* @param {IPosition} position
|
|
814
857
|
* @returns {IHover | undefined}
|
|
815
858
|
*/
|
|
@@ -875,6 +918,10 @@ export class LanguageService {
|
|
|
875
918
|
}
|
|
876
919
|
}
|
|
877
920
|
}
|
|
921
|
+
|
|
922
|
+
const ProjectLoaderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
923
|
+
? { register: () => {}, unregister: () => {} }
|
|
924
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_projectloader_free(ptr >>> 0));
|
|
878
925
|
/**
|
|
879
926
|
* a minimal implementation for interacting with async JS filesystem callbacks to
|
|
880
927
|
* load project files
|
|
@@ -884,7 +931,7 @@ export class ProjectLoader {
|
|
|
884
931
|
__destroy_into_raw() {
|
|
885
932
|
const ptr = this.__wbg_ptr;
|
|
886
933
|
this.__wbg_ptr = 0;
|
|
887
|
-
|
|
934
|
+
ProjectLoaderFinalization.unregister(this);
|
|
888
935
|
return ptr;
|
|
889
936
|
}
|
|
890
937
|
|
|
@@ -963,6 +1010,27 @@ function __wbg_get_imports() {
|
|
|
963
1010
|
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
964
1011
|
takeObject(arg0);
|
|
965
1012
|
};
|
|
1013
|
+
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
1014
|
+
const val = getObject(arg0);
|
|
1015
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
1016
|
+
return ret;
|
|
1017
|
+
};
|
|
1018
|
+
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
1019
|
+
const ret = getObject(arg0) === undefined;
|
|
1020
|
+
return ret;
|
|
1021
|
+
};
|
|
1022
|
+
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
|
1023
|
+
const ret = getObject(arg0) in getObject(arg1);
|
|
1024
|
+
return ret;
|
|
1025
|
+
};
|
|
1026
|
+
imports.wbg.__wbindgen_is_string = function(arg0) {
|
|
1027
|
+
const ret = typeof(getObject(arg0)) === 'string';
|
|
1028
|
+
return ret;
|
|
1029
|
+
};
|
|
1030
|
+
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
1031
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
1032
|
+
return addHeapObject(ret);
|
|
1033
|
+
};
|
|
966
1034
|
imports.wbg.__wbindgen_cb_drop = function(arg0) {
|
|
967
1035
|
const obj = takeObject(arg0).original;
|
|
968
1036
|
if (obj.cnt-- == 1) {
|
|
@@ -972,27 +1040,27 @@ function __wbg_get_imports() {
|
|
|
972
1040
|
const ret = false;
|
|
973
1041
|
return ret;
|
|
974
1042
|
};
|
|
975
|
-
imports.wbg.
|
|
976
|
-
const
|
|
977
|
-
const ret = typeof(
|
|
1043
|
+
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
|
1044
|
+
const v = getObject(arg0);
|
|
1045
|
+
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
978
1046
|
return ret;
|
|
979
1047
|
};
|
|
980
|
-
imports.wbg.
|
|
981
|
-
const ret = getObject(arg0) ===
|
|
1048
|
+
imports.wbg.__wbindgen_is_bigint = function(arg0) {
|
|
1049
|
+
const ret = typeof(getObject(arg0)) === 'bigint';
|
|
982
1050
|
return ret;
|
|
983
1051
|
};
|
|
984
|
-
imports.wbg.
|
|
985
|
-
const ret =
|
|
1052
|
+
imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
|
|
1053
|
+
const ret = arg0;
|
|
1054
|
+
return addHeapObject(ret);
|
|
1055
|
+
};
|
|
1056
|
+
imports.wbg.__wbindgen_jsval_eq = function(arg0, arg1) {
|
|
1057
|
+
const ret = getObject(arg0) === getObject(arg1);
|
|
986
1058
|
return ret;
|
|
987
1059
|
};
|
|
988
1060
|
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
989
1061
|
const ret = BigInt.asUintN(64, arg0);
|
|
990
1062
|
return addHeapObject(ret);
|
|
991
1063
|
};
|
|
992
|
-
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
993
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
994
|
-
return addHeapObject(ret);
|
|
995
|
-
};
|
|
996
1064
|
imports.wbg.__wbindgen_number_new = function(arg0) {
|
|
997
1065
|
const ret = arg0;
|
|
998
1066
|
return addHeapObject(ret);
|
|
@@ -1001,6 +1069,14 @@ function __wbg_get_imports() {
|
|
|
1001
1069
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
1002
1070
|
return addHeapObject(ret);
|
|
1003
1071
|
};
|
|
1072
|
+
imports.wbg.__wbg_getstacktracelimit_1795d5c8573c0904 = function(arg0) {
|
|
1073
|
+
const ret = Error.stackTraceLimit;
|
|
1074
|
+
getInt32Memory0()[arg0 / 4 + 1] = isLikeNone(ret) ? 0 : ret;
|
|
1075
|
+
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
1076
|
+
};
|
|
1077
|
+
imports.wbg.__wbg_setstacktracelimit_11f38865cc4ff17c = function(arg0) {
|
|
1078
|
+
Error.stackTraceLimit = arg0 >>> 0;
|
|
1079
|
+
};
|
|
1004
1080
|
imports.wbg.__wbg_new_0232637a3cb0b1a7 = function() {
|
|
1005
1081
|
const ret = new Error();
|
|
1006
1082
|
return addHeapObject(ret);
|
|
@@ -1032,26 +1108,21 @@ function __wbg_get_imports() {
|
|
|
1032
1108
|
const ret = getObject(arg0) == getObject(arg1);
|
|
1033
1109
|
return ret;
|
|
1034
1110
|
};
|
|
1035
|
-
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
|
1036
|
-
const v = getObject(arg0);
|
|
1037
|
-
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
1038
|
-
return ret;
|
|
1039
|
-
};
|
|
1040
1111
|
imports.wbg.__wbindgen_as_number = function(arg0) {
|
|
1041
1112
|
const ret = +getObject(arg0);
|
|
1042
1113
|
return ret;
|
|
1043
1114
|
};
|
|
1044
|
-
imports.wbg.
|
|
1115
|
+
imports.wbg.__wbg_getwithrefkey_edc2c8960f0f1191 = function(arg0, arg1) {
|
|
1045
1116
|
const ret = getObject(arg0)[getObject(arg1)];
|
|
1046
1117
|
return addHeapObject(ret);
|
|
1047
1118
|
};
|
|
1048
|
-
imports.wbg.
|
|
1119
|
+
imports.wbg.__wbg_set_f975102236d3c502 = function(arg0, arg1, arg2) {
|
|
1049
1120
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
1050
1121
|
};
|
|
1051
|
-
imports.wbg.
|
|
1122
|
+
imports.wbg.__wbg_queueMicrotask_481971b0d87f3dd4 = function(arg0) {
|
|
1052
1123
|
queueMicrotask(getObject(arg0));
|
|
1053
1124
|
};
|
|
1054
|
-
imports.wbg.
|
|
1125
|
+
imports.wbg.__wbg_queueMicrotask_3cbae2ec6b6cd3d6 = function(arg0) {
|
|
1055
1126
|
const ret = getObject(arg0).queueMicrotask;
|
|
1056
1127
|
return addHeapObject(ret);
|
|
1057
1128
|
};
|
|
@@ -1077,10 +1148,6 @@ function __wbg_get_imports() {
|
|
|
1077
1148
|
const ret = getObject(arg0).node;
|
|
1078
1149
|
return addHeapObject(ret);
|
|
1079
1150
|
};
|
|
1080
|
-
imports.wbg.__wbindgen_is_string = function(arg0) {
|
|
1081
|
-
const ret = typeof(getObject(arg0)) === 'string';
|
|
1082
|
-
return ret;
|
|
1083
|
-
};
|
|
1084
1151
|
imports.wbg.__wbg_msCrypto_10fc94afee92bd76 = function(arg0) {
|
|
1085
1152
|
const ret = getObject(arg0).msCrypto;
|
|
1086
1153
|
return addHeapObject(ret);
|
|
@@ -1089,66 +1156,66 @@ function __wbg_get_imports() {
|
|
|
1089
1156
|
const ret = module.require;
|
|
1090
1157
|
return addHeapObject(ret);
|
|
1091
1158
|
}, arguments) };
|
|
1092
|
-
imports.wbg.
|
|
1159
|
+
imports.wbg.__wbg_get_bd8e338fbd5f5cc8 = function(arg0, arg1) {
|
|
1093
1160
|
const ret = getObject(arg0)[arg1 >>> 0];
|
|
1094
1161
|
return addHeapObject(ret);
|
|
1095
1162
|
};
|
|
1096
|
-
imports.wbg.
|
|
1163
|
+
imports.wbg.__wbg_length_cd7af8117672b8b8 = function(arg0) {
|
|
1097
1164
|
const ret = getObject(arg0).length;
|
|
1098
1165
|
return ret;
|
|
1099
1166
|
};
|
|
1100
|
-
imports.wbg.
|
|
1167
|
+
imports.wbg.__wbg_new_16b304a2cfa7ff4a = function() {
|
|
1101
1168
|
const ret = new Array();
|
|
1102
1169
|
return addHeapObject(ret);
|
|
1103
1170
|
};
|
|
1104
|
-
imports.wbg.
|
|
1171
|
+
imports.wbg.__wbg_newnoargs_e258087cd0daa0ea = function(arg0, arg1) {
|
|
1105
1172
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
1106
1173
|
return addHeapObject(ret);
|
|
1107
1174
|
};
|
|
1108
|
-
imports.wbg.
|
|
1175
|
+
imports.wbg.__wbg_next_40fc327bfc8770e6 = function(arg0) {
|
|
1109
1176
|
const ret = getObject(arg0).next;
|
|
1110
1177
|
return addHeapObject(ret);
|
|
1111
1178
|
};
|
|
1112
|
-
imports.wbg.
|
|
1179
|
+
imports.wbg.__wbg_next_196c84450b364254 = function() { return handleError(function (arg0) {
|
|
1113
1180
|
const ret = getObject(arg0).next();
|
|
1114
1181
|
return addHeapObject(ret);
|
|
1115
1182
|
}, arguments) };
|
|
1116
|
-
imports.wbg.
|
|
1183
|
+
imports.wbg.__wbg_done_298b57d23c0fc80c = function(arg0) {
|
|
1117
1184
|
const ret = getObject(arg0).done;
|
|
1118
1185
|
return ret;
|
|
1119
1186
|
};
|
|
1120
|
-
imports.wbg.
|
|
1187
|
+
imports.wbg.__wbg_value_d93c65011f51a456 = function(arg0) {
|
|
1121
1188
|
const ret = getObject(arg0).value;
|
|
1122
1189
|
return addHeapObject(ret);
|
|
1123
1190
|
};
|
|
1124
|
-
imports.wbg.
|
|
1191
|
+
imports.wbg.__wbg_iterator_2cee6dadfd956dfa = function() {
|
|
1125
1192
|
const ret = Symbol.iterator;
|
|
1126
1193
|
return addHeapObject(ret);
|
|
1127
1194
|
};
|
|
1128
|
-
imports.wbg.
|
|
1195
|
+
imports.wbg.__wbg_get_e3c254076557e348 = function() { return handleError(function (arg0, arg1) {
|
|
1129
1196
|
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
1130
1197
|
return addHeapObject(ret);
|
|
1131
1198
|
}, arguments) };
|
|
1132
|
-
imports.wbg.
|
|
1199
|
+
imports.wbg.__wbg_call_27c0f87801dedf93 = function() { return handleError(function (arg0, arg1) {
|
|
1133
1200
|
const ret = getObject(arg0).call(getObject(arg1));
|
|
1134
1201
|
return addHeapObject(ret);
|
|
1135
1202
|
}, arguments) };
|
|
1136
|
-
imports.wbg.
|
|
1203
|
+
imports.wbg.__wbg_new_72fb9a18b5ae2624 = function() {
|
|
1137
1204
|
const ret = new Object();
|
|
1138
1205
|
return addHeapObject(ret);
|
|
1139
1206
|
};
|
|
1140
|
-
imports.wbg.
|
|
1207
|
+
imports.wbg.__wbg_set_d4638f722068f043 = function(arg0, arg1, arg2) {
|
|
1141
1208
|
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
1142
1209
|
};
|
|
1143
|
-
imports.wbg.
|
|
1210
|
+
imports.wbg.__wbg_isArray_2ab64d95e09ea0ae = function(arg0) {
|
|
1144
1211
|
const ret = Array.isArray(getObject(arg0));
|
|
1145
1212
|
return ret;
|
|
1146
1213
|
};
|
|
1147
|
-
imports.wbg.
|
|
1214
|
+
imports.wbg.__wbg_push_a5b05aedc7234f9f = function(arg0, arg1) {
|
|
1148
1215
|
const ret = getObject(arg0).push(getObject(arg1));
|
|
1149
1216
|
return ret;
|
|
1150
1217
|
};
|
|
1151
|
-
imports.wbg.
|
|
1218
|
+
imports.wbg.__wbg_instanceof_ArrayBuffer_836825be07d4c9d2 = function(arg0) {
|
|
1152
1219
|
let result;
|
|
1153
1220
|
try {
|
|
1154
1221
|
result = getObject(arg0) instanceof ArrayBuffer;
|
|
@@ -1158,30 +1225,44 @@ function __wbg_get_imports() {
|
|
|
1158
1225
|
const ret = result;
|
|
1159
1226
|
return ret;
|
|
1160
1227
|
};
|
|
1161
|
-
imports.wbg.
|
|
1228
|
+
imports.wbg.__wbg_call_b3ca7c6051f9bec1 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1162
1229
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
1163
1230
|
return addHeapObject(ret);
|
|
1164
1231
|
}, arguments) };
|
|
1165
|
-
imports.wbg.
|
|
1232
|
+
imports.wbg.__wbg_call_938992c832f74314 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1166
1233
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3), getObject(arg4));
|
|
1167
1234
|
return addHeapObject(ret);
|
|
1168
1235
|
}, arguments) };
|
|
1169
|
-
imports.wbg.
|
|
1236
|
+
imports.wbg.__wbg_instanceof_Map_87917e0a7aaf4012 = function(arg0) {
|
|
1237
|
+
let result;
|
|
1238
|
+
try {
|
|
1239
|
+
result = getObject(arg0) instanceof Map;
|
|
1240
|
+
} catch (_) {
|
|
1241
|
+
result = false;
|
|
1242
|
+
}
|
|
1243
|
+
const ret = result;
|
|
1244
|
+
return ret;
|
|
1245
|
+
};
|
|
1246
|
+
imports.wbg.__wbg_isSafeInteger_f7b04ef02296c4d2 = function(arg0) {
|
|
1170
1247
|
const ret = Number.isSafeInteger(getObject(arg0));
|
|
1171
1248
|
return ret;
|
|
1172
1249
|
};
|
|
1173
|
-
imports.wbg.
|
|
1250
|
+
imports.wbg.__wbg_entries_95cc2c823b285a09 = function(arg0) {
|
|
1251
|
+
const ret = Object.entries(getObject(arg0));
|
|
1252
|
+
return addHeapObject(ret);
|
|
1253
|
+
};
|
|
1254
|
+
imports.wbg.__wbg_buffer_12d079cc21e14bdb = function(arg0) {
|
|
1174
1255
|
const ret = getObject(arg0).buffer;
|
|
1175
1256
|
return addHeapObject(ret);
|
|
1176
1257
|
};
|
|
1177
|
-
imports.wbg.
|
|
1258
|
+
imports.wbg.__wbg_new_81740750da40724f = function(arg0, arg1) {
|
|
1178
1259
|
try {
|
|
1179
1260
|
var state0 = {a: arg0, b: arg1};
|
|
1180
1261
|
var cb0 = (arg0, arg1) => {
|
|
1181
1262
|
const a = state0.a;
|
|
1182
1263
|
state0.a = 0;
|
|
1183
1264
|
try {
|
|
1184
|
-
return
|
|
1265
|
+
return __wbg_adapter_170(a, state0.b, arg0, arg1);
|
|
1185
1266
|
} finally {
|
|
1186
1267
|
state0.a = a;
|
|
1187
1268
|
}
|
|
@@ -1192,50 +1273,50 @@ function __wbg_get_imports() {
|
|
|
1192
1273
|
state0.a = state0.b = 0;
|
|
1193
1274
|
}
|
|
1194
1275
|
};
|
|
1195
|
-
imports.wbg.
|
|
1276
|
+
imports.wbg.__wbg_resolve_b0083a7967828ec8 = function(arg0) {
|
|
1196
1277
|
const ret = Promise.resolve(getObject(arg0));
|
|
1197
1278
|
return addHeapObject(ret);
|
|
1198
1279
|
};
|
|
1199
|
-
imports.wbg.
|
|
1280
|
+
imports.wbg.__wbg_then_0c86a60e8fcfe9f6 = function(arg0, arg1) {
|
|
1200
1281
|
const ret = getObject(arg0).then(getObject(arg1));
|
|
1201
1282
|
return addHeapObject(ret);
|
|
1202
1283
|
};
|
|
1203
|
-
imports.wbg.
|
|
1284
|
+
imports.wbg.__wbg_then_a73caa9a87991566 = function(arg0, arg1, arg2) {
|
|
1204
1285
|
const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
|
|
1205
1286
|
return addHeapObject(ret);
|
|
1206
1287
|
};
|
|
1207
|
-
imports.wbg.
|
|
1288
|
+
imports.wbg.__wbg_self_ce0dbfc45cf2f5be = function() { return handleError(function () {
|
|
1208
1289
|
const ret = self.self;
|
|
1209
1290
|
return addHeapObject(ret);
|
|
1210
1291
|
}, arguments) };
|
|
1211
|
-
imports.wbg.
|
|
1292
|
+
imports.wbg.__wbg_window_c6fb939a7f436783 = function() { return handleError(function () {
|
|
1212
1293
|
const ret = window.window;
|
|
1213
1294
|
return addHeapObject(ret);
|
|
1214
1295
|
}, arguments) };
|
|
1215
|
-
imports.wbg.
|
|
1296
|
+
imports.wbg.__wbg_globalThis_d1e6af4856ba331b = function() { return handleError(function () {
|
|
1216
1297
|
const ret = globalThis.globalThis;
|
|
1217
1298
|
return addHeapObject(ret);
|
|
1218
1299
|
}, arguments) };
|
|
1219
|
-
imports.wbg.
|
|
1300
|
+
imports.wbg.__wbg_global_207b558942527489 = function() { return handleError(function () {
|
|
1220
1301
|
const ret = global.global;
|
|
1221
1302
|
return addHeapObject(ret);
|
|
1222
1303
|
}, arguments) };
|
|
1223
|
-
imports.wbg.
|
|
1304
|
+
imports.wbg.__wbg_newwithbyteoffsetandlength_aa4a17c33a06e5cb = function(arg0, arg1, arg2) {
|
|
1224
1305
|
const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
|
|
1225
1306
|
return addHeapObject(ret);
|
|
1226
1307
|
};
|
|
1227
|
-
imports.wbg.
|
|
1308
|
+
imports.wbg.__wbg_new_63b92bc8671ed464 = function(arg0) {
|
|
1228
1309
|
const ret = new Uint8Array(getObject(arg0));
|
|
1229
1310
|
return addHeapObject(ret);
|
|
1230
1311
|
};
|
|
1231
|
-
imports.wbg.
|
|
1312
|
+
imports.wbg.__wbg_set_a47bac70306a19a7 = function(arg0, arg1, arg2) {
|
|
1232
1313
|
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
1233
1314
|
};
|
|
1234
|
-
imports.wbg.
|
|
1315
|
+
imports.wbg.__wbg_length_c20a40f15020d68a = function(arg0) {
|
|
1235
1316
|
const ret = getObject(arg0).length;
|
|
1236
1317
|
return ret;
|
|
1237
1318
|
};
|
|
1238
|
-
imports.wbg.
|
|
1319
|
+
imports.wbg.__wbg_instanceof_Uint8Array_2b3bbecd033d19f6 = function(arg0) {
|
|
1239
1320
|
let result;
|
|
1240
1321
|
try {
|
|
1241
1322
|
result = getObject(arg0) instanceof Uint8Array;
|
|
@@ -1245,14 +1326,20 @@ function __wbg_get_imports() {
|
|
|
1245
1326
|
const ret = result;
|
|
1246
1327
|
return ret;
|
|
1247
1328
|
};
|
|
1248
|
-
imports.wbg.
|
|
1329
|
+
imports.wbg.__wbg_newwithlength_e9b4878cebadb3d3 = function(arg0) {
|
|
1249
1330
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
1250
1331
|
return addHeapObject(ret);
|
|
1251
1332
|
};
|
|
1252
|
-
imports.wbg.
|
|
1333
|
+
imports.wbg.__wbg_subarray_a1f73cd4b5b42fe1 = function(arg0, arg1, arg2) {
|
|
1253
1334
|
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1254
1335
|
return addHeapObject(ret);
|
|
1255
1336
|
};
|
|
1337
|
+
imports.wbg.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
|
|
1338
|
+
const v = getObject(arg1);
|
|
1339
|
+
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
1340
|
+
getBigInt64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? BigInt(0) : ret;
|
|
1341
|
+
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
1342
|
+
};
|
|
1256
1343
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
1257
1344
|
const ret = debugString(getObject(arg1));
|
|
1258
1345
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
@@ -1267,8 +1354,8 @@ function __wbg_get_imports() {
|
|
|
1267
1354
|
const ret = wasm.memory;
|
|
1268
1355
|
return addHeapObject(ret);
|
|
1269
1356
|
};
|
|
1270
|
-
imports.wbg.
|
|
1271
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1357
|
+
imports.wbg.__wbindgen_closure_wrapper659 = function(arg0, arg1, arg2) {
|
|
1358
|
+
const ret = makeMutClosure(arg0, arg1, 233, __wbg_adapter_54);
|
|
1272
1359
|
return addHeapObject(ret);
|
|
1273
1360
|
};
|
|
1274
1361
|
|
|
@@ -1282,6 +1369,7 @@ function __wbg_init_memory(imports, maybe_memory) {
|
|
|
1282
1369
|
function __wbg_finalize_init(instance, module) {
|
|
1283
1370
|
wasm = instance.exports;
|
|
1284
1371
|
__wbg_init.__wbindgen_wasm_module = module;
|
|
1372
|
+
cachedBigInt64Memory0 = null;
|
|
1285
1373
|
cachedFloat64Memory0 = null;
|
|
1286
1374
|
cachedInt32Memory0 = null;
|
|
1287
1375
|
cachedUint32Memory0 = null;
|
package/lib/web/qsc_wasm_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/ux/output_data.md
CHANGED
|
@@ -134,7 +134,7 @@ The minimum T state error rate is obtained by dividing the T distillation error
|
|
|
134
134
|
|
|
135
135
|
_Number of T states to implement a rotation with an arbitrary angle_
|
|
136
136
|
|
|
137
|
-
The number of T states to implement a rotation with an arbitrary angle is $\lceil 0.53 \log_2(\mathtt{logicalCounts/rotationCount} / \mathtt{errorBudget/rotations}) +
|
|
137
|
+
The number of T states to implement a rotation with an arbitrary angle is $\lceil 0.53 \log_2(\mathtt{logicalCounts/rotationCount} / \mathtt{errorBudget/rotations}) + 4.86\rceil$ [[arXiv:2203.10064](https://arxiv.org/abs/2203.10064)]. For simplicity, we use this formula for all single-qubit arbitrary angle rotations, and do not distinguish between best, worst, and average cases.
|
|
138
138
|
|
|
139
139
|
## Logical qubit parameters
|
|
140
140
|
|
package/ux/report.ts
CHANGED
|
@@ -221,7 +221,7 @@ export function CreateReport(result: SingleEstimateResult): ReportData {
|
|
|
221
221
|
result.logicalCounts.rotationCount,
|
|
222
222
|
)} / ${
|
|
223
223
|
result.errorBudget.rotations
|
|
224
|
-
}) +
|
|
224
|
+
}) + 4.86\\rceil$ [[arXiv:2203.10064](https://arxiv.org/abs/2203.10064)]. For simplicity, we use this formula for all single-qubit arbitrary angle rotations, and do not distinguish between best, worst, and average cases.`,
|
|
225
225
|
});
|
|
226
226
|
groups.push({
|
|
227
227
|
title: "Resource estimates breakdown",
|