@holoscript/core 8.0.6 → 8.0.7
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/README.md +34 -34
- package/bin/holoscript.cjs +1 -1
- package/dist/GLTFPipeline-3EJLL3TS.cjs +38 -0
- package/dist/GLTFPipeline-3OWJV2VK.js +17 -0
- package/dist/{HoloScriptPlusParser-A2W7OCN2.cjs → HoloScriptPlusParser-ADWRY5OS.cjs} +15 -15
- package/dist/{HoloScriptPlusParser-7FBIFUFC.js → HoloScriptPlusParser-JLJDXHSC.js} +4 -4
- package/dist/HoloScriptPlusParser-QCGFPWIL.cjs +27 -0
- package/dist/{HoloScriptPlusParser-F2Z56FJR.js → HoloScriptPlusParser-WENAFEFV.js} +5 -5
- package/dist/HoloScriptRuntime-GGRVEU4T.cjs +19 -0
- package/dist/HoloScriptRuntime-GJK6VJPH.js +10 -0
- package/dist/{USDZExporter-3FWJ25JI.cjs → USDZExporter-AUHZODOF.cjs} +15 -4
- package/dist/{USDZExporter-D2HQLQYK.js → USDZExporter-GXB4AUSG.js} +15 -4
- package/dist/{chunk-2GQHTXOK.js → chunk-22Q5A6RV.js} +3 -3
- package/dist/{chunk-XHZCF3AS.cjs → chunk-2BZHWUSR.cjs} +27 -15
- package/dist/{chunk-XJAN7CZG.cjs → chunk-2GCNOI2U.cjs} +2 -2
- package/dist/{chunk-DBPGNHFS.js → chunk-2OWDB4FB.js} +13 -25
- package/dist/{chunk-N75IH2HY.js → chunk-2Y3V22SG.js} +5 -14
- package/dist/{chunk-MXFUTKCO.js → chunk-33YHE7HX.js} +3 -7
- package/dist/{chunk-RCZHLCX2.js → chunk-3GWWJT7L.js} +4 -4
- package/dist/{chunk-EK7L4DW7.js → chunk-3NGDZZR4.js} +4 -4
- package/dist/{chunk-WRLUBRKS.cjs → chunk-3SKLAUDD.cjs} +2 -2
- package/dist/{chunk-KKFZ3B6J.cjs → chunk-3VBO3IYQ.cjs} +2 -2
- package/dist/{chunk-YF2I3MV3.js → chunk-47RUFYKR.js} +2 -2
- package/dist/{chunk-VHAONJBY.js → chunk-4JGRWHZJ.js} +7 -5
- package/dist/{chunk-2J5WZLF5.cjs → chunk-4W5G5QVL.cjs} +26 -26
- package/dist/{chunk-GQHQOPXZ.cjs → chunk-4YNYPHH3.cjs} +186 -17
- package/dist/{chunk-H5PUZHJV.cjs → chunk-56VOWURB.cjs} +61 -40
- package/dist/{chunk-DQRQZB33.cjs → chunk-5A4TCHOC.cjs} +3 -3
- package/dist/{chunk-M56JSP4A.js → chunk-5EDVCNRT.js} +2 -2
- package/dist/{chunk-YU5RJQPE.js → chunk-5ET6L4NS.js} +3 -3
- package/dist/{chunk-A3GFOZAF.cjs → chunk-63ZGNR2T.cjs} +43 -39
- package/dist/{chunk-NG77ATEW.cjs → chunk-6PRZIHGL.cjs} +6 -6
- package/dist/{chunk-OXGPGQXN.cjs → chunk-7DMMMBCY.cjs} +7 -7
- package/dist/{chunk-FHP6LXJS.js → chunk-7E7GCQCK.js} +2 -2
- package/dist/{chunk-P4AIF7OQ.js → chunk-7VMGP2FW.js} +44 -28
- package/dist/{chunk-7MVLEZB2.js → chunk-7X5PNIQJ.js} +3 -3
- package/dist/{chunk-X7QB5PL5.cjs → chunk-7ZHYEITD.cjs} +11 -11
- package/dist/{chunk-KPJL34Y7.cjs → chunk-ACVWFGBI.cjs} +2 -2
- package/dist/{chunk-QWSB553J.cjs → chunk-AWB7QYY6.cjs} +6 -6
- package/dist/{chunk-VATGR4EM.js → chunk-B4EKV6HQ.js} +61 -40
- package/dist/{chunk-HBEN5TQR.js → chunk-BRNUPDHJ.js} +5 -5
- package/dist/{chunk-F63LYRVE.js → chunk-BTKZGHAV.js} +23 -11
- package/dist/{chunk-YTR32ZEB.cjs → chunk-C4GSLCHE.cjs} +300 -125
- package/dist/{chunk-CXS3DUKD.js → chunk-C7ZBSV2Q.js} +3 -3
- package/dist/{chunk-WOH6LKYT.cjs → chunk-CCPSNT6B.cjs} +12 -7
- package/dist/{chunk-NW5G5FBQ.js → chunk-DD2JQ7TS.js} +4 -3
- package/dist/{chunk-JD7CIZ33.js → chunk-DUCB6LGL.js} +8 -10
- package/dist/{chunk-D63CGNJU.js → chunk-DY72BMU5.js} +3 -3
- package/dist/{chunk-AIA52I7T.cjs → chunk-EBS32AJI.cjs} +6 -4
- package/dist/{chunk-DCE3LDO3.cjs → chunk-EDPYCLRC.cjs} +52 -62
- package/dist/{chunk-NDUX553L.js → chunk-F2G6CWFT.js} +240 -65
- package/dist/{chunk-X7LYK5TX.cjs → chunk-F5LKJ6F5.cjs} +43 -31
- package/dist/{chunk-LAUFLPB6.js → chunk-FGMDMJM7.js} +10 -5
- package/dist/{chunk-P52PPB5R.js → chunk-FHQFPYV4.js} +4 -4
- package/dist/{chunk-YIMN575O.js → chunk-FNHJRI32.js} +8 -5
- package/dist/{chunk-EXUP2BUM.cjs → chunk-FT6TDR2O.cjs} +27 -27
- package/dist/{chunk-BRQJKJGT.cjs → chunk-FWVYAMNW.cjs} +4 -4
- package/dist/{chunk-PGANYCAG.cjs → chunk-G25QVBA5.cjs} +4 -3
- package/dist/{chunk-5BLWXOIP.cjs → chunk-G6PNEASF.cjs} +13 -13
- package/dist/{chunk-2BSMSUCE.js → chunk-GASCWJK5.js} +2 -2
- package/dist/{chunk-2VL6SJ33.cjs → chunk-GH6C2QGW.cjs} +12 -21
- package/dist/{chunk-JEB5UU3E.js → chunk-GSOUNWEL.js} +35 -27
- package/dist/{chunk-QPOQ7VPI.js → chunk-GTA4Q3A3.js} +2 -2
- package/dist/{chunk-JIYN45TV.cjs → chunk-GVFJ6T4S.cjs} +3 -7
- package/dist/{chunk-IVY74O6C.js → chunk-GVOKJNUN.js} +50 -11
- package/dist/{chunk-GZG4KA4E.js → chunk-GW3LKD5C.js} +6 -4
- package/dist/{chunk-IBXT6UP3.cjs → chunk-HFSVMKM3.cjs} +14 -14
- package/dist/{chunk-E767PVC6.cjs → chunk-HLFDZ35S.cjs} +5 -5
- package/dist/{chunk-ZXZ2AL2J.cjs → chunk-I76GIKN7.cjs} +20 -16
- package/dist/{chunk-4FDL7JLJ.cjs → chunk-KAIVDEIG.cjs} +145 -60
- package/dist/{chunk-X4EBCG4K.js → chunk-KCPHASCO.js} +18 -6
- package/dist/{chunk-T5J7ZKP3.cjs → chunk-KOUAQL2B.cjs} +16 -13
- package/dist/{chunk-GMP623FG.cjs → chunk-KQU64CIX.cjs} +2 -2
- package/dist/{chunk-4DO425P5.js → chunk-L5U4W6JC.js} +4 -4
- package/dist/{chunk-HBLKLLG5.cjs → chunk-LMJ5EBV7.cjs} +10 -10
- package/dist/{chunk-QWAR3GY6.cjs → chunk-LODTHGST.cjs} +8 -8
- package/dist/{chunk-TFUMBR7G.cjs → chunk-LPS5AMQD.cjs} +8 -8
- package/dist/{chunk-ISG3TQ2O.js → chunk-LWUOUCYL.js} +9 -5
- package/dist/{chunk-6CTRH7HT.cjs → chunk-LYJJI7ZK.cjs} +12 -14
- package/dist/{chunk-GTU2Z2WW.cjs → chunk-M7K4LE66.cjs} +5 -14
- package/dist/{chunk-URG2SJLK.js → chunk-MDR235RZ.js} +3 -7
- package/dist/{chunk-ULXWSPCK.js → chunk-MSYSQ2AJ.js} +101 -16
- package/dist/{chunk-TCBJMNXS.cjs → chunk-NGBXXZLL.cjs} +50 -62
- package/dist/{chunk-RXU4PQKA.js → chunk-NHJLP37F.js} +6 -6
- package/dist/{chunk-NTGBEMYL.cjs → chunk-NHYRRAGI.cjs} +5 -5
- package/dist/{chunk-YG3OAHJZ.cjs → chunk-O3MGZDCT.cjs} +89 -52
- package/dist/{chunk-GIOYPNTH.js → chunk-OABEO6HH.js} +185 -16
- package/dist/{chunk-N5YOAFNA.cjs → chunk-OS533P33.cjs} +37 -29
- package/dist/{chunk-IIUFMUTV.js → chunk-PABONWKI.js} +24 -11
- package/dist/{chunk-5BQIJG3O.js → chunk-PXNZ6TME.js} +47 -57
- package/dist/{chunk-KDZRD6EI.js → chunk-Q2Q34NF3.js} +63 -26
- package/dist/{chunk-IS4AEGLU.js → chunk-QBWNJXNR.js} +10 -6
- package/dist/{chunk-5IHG2LGT.js → chunk-QFU53KRH.js} +4 -4
- package/dist/{chunk-NTJZJ5IP.cjs → chunk-QGMUTVVH.cjs} +17 -17
- package/dist/{chunk-MYY4PMWX.cjs → chunk-RUVBFAF7.cjs} +50 -11
- package/dist/{chunk-E64LOLJU.js → chunk-S762UEV5.js} +5 -5
- package/dist/{chunk-3SBVODUP.cjs → chunk-SH5PPVK7.cjs} +61 -45
- package/dist/{chunk-LY4DMQOW.cjs → chunk-SKZPC5AG.cjs} +5 -5
- package/dist/{chunk-TJHVSBP2.js → chunk-SLHLXUMO.js} +10 -4
- package/dist/{chunk-S6OVFUXD.js → chunk-SSSN7VAM.js} +3 -3
- package/dist/{chunk-K5UGRXKR.js → chunk-SXOSDZD6.js} +6 -6
- package/dist/{chunk-J32ZJZJH.js → chunk-SYTRBGDS.js} +2 -2
- package/dist/{chunk-CIWWXYHZ.cjs → chunk-T6W3Z3SH.cjs} +2 -2
- package/dist/{chunk-U36W76U7.js → chunk-TEVX443G.js} +44 -51
- package/dist/{chunk-6DOKCECB.cjs → chunk-TQ377OLB.cjs} +23 -21
- package/dist/{chunk-YAPPQYJH.cjs → chunk-TRCGG42I.cjs} +195 -152
- package/dist/{chunk-H652NHX5.js → chunk-TVANHNJ7.js} +30 -23
- package/dist/{chunk-EKBKLK7P.js → chunk-UDE4OZMR.js} +3 -3
- package/dist/{chunk-3OIZJNVT.cjs → chunk-UGXHYIWT.cjs} +5 -5
- package/dist/{chunk-44GM3P4G.cjs → chunk-ULMSSHCJ.cjs} +21 -21
- package/dist/{chunk-3B5NVDHJ.cjs → chunk-UOL6Y5TD.cjs} +18 -18
- package/dist/{chunk-5S7RKFGR.cjs → chunk-UVFI7XIR.cjs} +10 -4
- package/dist/{chunk-5TIZXMED.cjs → chunk-V7AKE5VT.cjs} +10 -10
- package/dist/{chunk-3B7AY37W.js → chunk-VEPGBETF.js} +6 -6
- package/dist/{chunk-BKCK3IU6.js → chunk-VF257YKO.js} +4 -4
- package/dist/{chunk-4N4SXXWF.js → chunk-VSACG2AR.js} +3 -3
- package/dist/{chunk-ZDSYWBIE.cjs → chunk-VW5CRJBE.cjs} +3 -7
- package/dist/{chunk-PVWNU4QT.cjs → chunk-WFKVS2K4.cjs} +64 -26
- package/dist/{chunk-TDCJ7YPA.js → chunk-WXQ57LAO.js} +3 -3
- package/dist/{chunk-NE5CZ2NC.cjs → chunk-X27QRG4C.cjs} +38 -38
- package/dist/{chunk-TVHSPJ4N.cjs → chunk-X2AVEAZM.cjs} +30 -23
- package/dist/{chunk-C34AJIJO.js → chunk-XQ5MWMP2.js} +4 -4
- package/dist/{chunk-TFWYKOOB.cjs → chunk-XW6IXEQH.cjs} +26 -13
- package/dist/{chunk-YIVFJNYV.js → chunk-Y3ZFVUUU.js} +2 -2
- package/dist/{chunk-TJIMBJ6L.cjs → chunk-Y57W2CT5.cjs} +2 -2
- package/dist/{chunk-BFROVZOF.cjs → chunk-YCM6QQRT.cjs} +46 -53
- package/dist/{chunk-MBOOR7X4.js → chunk-YFVQWSNJ.js} +3 -3
- package/dist/{chunk-ISM4NX6N.js → chunk-YFWRJW4B.js} +2 -2
- package/dist/{chunk-6OTFG3EB.js → chunk-YN6IETRZ.js} +179 -136
- package/dist/{chunk-NPDNFPTU.js → chunk-YRRAUB35.js} +4 -4
- package/dist/{chunk-GCYR3D2K.js → chunk-Z6PMDS4G.js} +61 -23
- package/dist/{chunk-DPZXVDGM.js → chunk-ZA34AN3R.js} +8 -17
- package/dist/{chunk-EKYL4PE3.cjs → chunk-ZLF4YF3U.cjs} +2 -2
- package/dist/{chunk-VFKXK4GR.cjs → chunk-ZPZAVHXL.cjs} +20 -20
- package/dist/cli/holoscript-runner.cjs +39 -22
- package/dist/cli/holoscript-runner.js +32 -15
- package/dist/compiler/GasOptimizationAnalyzer.d.ts +73 -0
- package/dist/compiler/NFTMarketplaceCompiler.d.ts +23 -0
- package/dist/compiler/agent-inference.cjs +7 -7
- package/dist/compiler/agent-inference.js +3 -3
- package/dist/compiler/android-xr.cjs +8 -8
- package/dist/compiler/android-xr.js +6 -6
- package/dist/compiler/android.cjs +6 -6
- package/dist/compiler/android.js +4 -4
- package/dist/compiler/ar.cjs +6 -6
- package/dist/compiler/ar.js +4 -4
- package/dist/compiler/babylon.cjs +8 -8
- package/dist/compiler/babylon.js +7 -7
- package/dist/compiler/business-quest.cjs +9 -9
- package/dist/compiler/business-quest.js +1 -1
- package/dist/compiler/context.cjs +6 -6
- package/dist/compiler/context.js +3 -3
- package/dist/compiler/domain-block-utils.cjs +153 -153
- package/dist/compiler/domain-block-utils.js +4 -4
- package/dist/compiler/dtdl.cjs +7 -7
- package/dist/compiler/dtdl.js +4 -4
- package/dist/compiler/gltf-pipeline.cjs +8 -8
- package/dist/compiler/gltf-pipeline.js +1 -1
- package/dist/compiler/godot.cjs +6 -6
- package/dist/compiler/godot.js +5 -5
- package/dist/compiler/incremental.cjs +8 -8
- package/dist/compiler/incremental.js +3 -3
- package/dist/compiler/index.cjs +347 -362
- package/dist/compiler/index.d.ts +20 -0
- package/dist/compiler/index.js +200 -215
- package/dist/compiler/ios.cjs +6 -6
- package/dist/compiler/ios.js +4 -4
- package/dist/compiler/llm-provider-capabilities.cjs +6 -6
- package/dist/compiler/llm-provider-capabilities.js +3 -3
- package/dist/compiler/multi-layer.cjs +10 -10
- package/dist/compiler/multi-layer.js +9 -9
- package/dist/compiler/openxr.cjs +7 -7
- package/dist/compiler/openxr.js +6 -6
- package/dist/compiler/playcanvas.cjs +6 -6
- package/dist/compiler/playcanvas.js +5 -5
- package/dist/compiler/r3f.cjs +13 -13
- package/dist/compiler/r3f.js +8 -8
- package/dist/compiler/sdf.cjs +7 -7
- package/dist/compiler/sdf.js +5 -5
- package/dist/compiler/state.cjs +6 -6
- package/dist/compiler/state.js +4 -4
- package/dist/compiler/trait-composition.cjs +8 -8
- package/dist/compiler/trait-composition.js +4 -4
- package/dist/compiler/unity.cjs +7 -7
- package/dist/compiler/unity.js +6 -6
- package/dist/compiler/unreal.cjs +8 -8
- package/dist/compiler/unreal.js +6 -6
- package/dist/compiler/urdf.cjs +14 -14
- package/dist/compiler/urdf.js +5 -5
- package/dist/compiler/usd-physics.cjs +7 -7
- package/dist/compiler/usd-physics.js +4 -4
- package/dist/compiler/visionos.cjs +7 -7
- package/dist/compiler/visionos.js +6 -6
- package/dist/compiler/vrchat.cjs +7 -7
- package/dist/compiler/vrchat.js +5 -5
- package/dist/compiler/vrr.cjs +7 -7
- package/dist/compiler/vrr.js +5 -5
- package/dist/compiler/wasm.cjs +10 -10
- package/dist/compiler/wasm.js +5 -5
- package/dist/compiler/webgpu.cjs +6 -6
- package/dist/compiler/webgpu.js +5 -5
- package/dist/coordinators/index.cjs +27 -10
- package/dist/coordinators/index.js +27 -10
- package/dist/debugger.cjs +6 -6
- package/dist/debugger.js +4 -4
- package/dist/entries/scripting.cjs +6 -6
- package/dist/entries/scripting.js +2 -2
- package/dist/hololand/index.cjs +36 -36
- package/dist/hololand/index.js +2 -2
- package/dist/index.cjs +1056 -796
- package/dist/index.js +440 -180
- package/dist/math/tropical-spmv.cjs +10 -10
- package/dist/math/tropical-spmv.js +1 -1
- package/dist/math/vec3.cjs +13 -13
- package/dist/math/vec3.js +1 -1
- package/dist/parser/NFTMarketplaceTypes.d.ts +191 -0
- package/dist/parser.cjs +16 -16
- package/dist/parser.js +5 -5
- package/dist/reconstruction/index.cjs +37 -37
- package/dist/reconstruction/index.js +4 -4
- package/dist/runtime.cjs +274 -76
- package/dist/runtime.d.ts +10 -1
- package/dist/runtime.js +268 -70
- package/dist/self-improvement/index.cjs +12 -4
- package/dist/self-improvement/index.js +12 -4
- package/dist/{src-HCCCSYP7.js → src-J6CM4AUR.js} +91 -33
- package/dist/{src-4ROC227P.cjs → src-PT2FERDV.cjs} +93 -35
- package/dist/testing.cjs +5 -5
- package/dist/testing.js +1 -1
- package/dist/traits/botanical-lotus.cjs +49 -49
- package/dist/traits/botanical-lotus.js +2 -2
- package/dist/traits/engines/index.cjs +39 -39
- package/dist/traits/engines/index.d.ts +279 -0
- package/dist/traits/engines/index.js +4 -4
- package/dist/traits/index.cjs +881 -773
- package/dist/traits/index.js +366 -258
- package/dist/world/index.cjs +21 -18
- package/dist/world/index.js +21 -18
- package/dist/world-model/index.cjs +11 -5
- package/dist/world-model/index.d.ts +8 -0
- package/dist/world-model/index.js +11 -5
- package/package.json +74 -68
- package/LICENSE +0 -21
- package/dist/GLTFPipeline-PVLTKDBD.cjs +0 -38
- package/dist/GLTFPipeline-QPI4I7DL.js +0 -17
- package/dist/HoloScriptPlusParser-WKHRIH6T.cjs +0 -27
- package/dist/HoloScriptRuntime-6ZGLUCFS.js +0 -10
- package/dist/HoloScriptRuntime-ALUASIL2.cjs +0 -19
|
@@ -120,7 +120,9 @@ var init_ibm_quantum = __esm({
|
|
|
120
120
|
getField(name) {
|
|
121
121
|
if (name === "total_energy") {
|
|
122
122
|
if (this.lastEnergy === null) {
|
|
123
|
-
throw new Error(
|
|
123
|
+
throw new Error(
|
|
124
|
+
"[ibm-quantum] No energy computed yet. Call computeEnergy or runVQE first."
|
|
125
|
+
);
|
|
124
126
|
}
|
|
125
127
|
return new Float64Array([this.lastEnergy]);
|
|
126
128
|
}
|
|
@@ -770,7 +772,13 @@ var Psi4Backend = class {
|
|
|
770
772
|
// ── Capability implementations ────────────────────────────────────────
|
|
771
773
|
async computeEnergy(molecule) {
|
|
772
774
|
const startTime = performance.now();
|
|
773
|
-
const input = generatePsi4Input(
|
|
775
|
+
const input = generatePsi4Input(
|
|
776
|
+
molecule,
|
|
777
|
+
this.qmConfig.method,
|
|
778
|
+
this.qmConfig.basis,
|
|
779
|
+
"energy",
|
|
780
|
+
this.qmConfig
|
|
781
|
+
);
|
|
774
782
|
const raw = await this.runPsi4(input);
|
|
775
783
|
const wallTime = (performance.now() - startTime) / 1e3;
|
|
776
784
|
const result = {
|
|
@@ -787,7 +795,13 @@ var Psi4Backend = class {
|
|
|
787
795
|
}
|
|
788
796
|
async optimizeGeometry(molecule) {
|
|
789
797
|
const startTime = performance.now();
|
|
790
|
-
const input = generatePsi4Input(
|
|
798
|
+
const input = generatePsi4Input(
|
|
799
|
+
molecule,
|
|
800
|
+
this.qmConfig.method,
|
|
801
|
+
this.qmConfig.basis,
|
|
802
|
+
"optimize",
|
|
803
|
+
this.qmConfig
|
|
804
|
+
);
|
|
791
805
|
const raw = await this.runPsi4(input);
|
|
792
806
|
const wallTime = (performance.now() - startTime) / 1e3;
|
|
793
807
|
return {
|
|
@@ -803,7 +817,13 @@ var Psi4Backend = class {
|
|
|
803
817
|
}
|
|
804
818
|
async computeVibrations(molecule) {
|
|
805
819
|
const startTime = performance.now();
|
|
806
|
-
const input = generatePsi4Input(
|
|
820
|
+
const input = generatePsi4Input(
|
|
821
|
+
molecule,
|
|
822
|
+
this.qmConfig.method,
|
|
823
|
+
this.qmConfig.basis,
|
|
824
|
+
"frequency",
|
|
825
|
+
this.qmConfig
|
|
826
|
+
);
|
|
807
827
|
const raw = await this.runPsi4(input);
|
|
808
828
|
const wallTime = (performance.now() - startTime) / 1e3;
|
|
809
829
|
return {
|
|
@@ -837,7 +857,9 @@ var Psi4Backend = class {
|
|
|
837
857
|
};
|
|
838
858
|
}
|
|
839
859
|
async computeBandStructure() {
|
|
840
|
-
throw new Error(
|
|
860
|
+
throw new Error(
|
|
861
|
+
"[qm-bridge] Psi4 does not support periodic/band structure calculations. Use quantum-espresso backend."
|
|
862
|
+
);
|
|
841
863
|
}
|
|
842
864
|
async computeDipoleMoment(molecule) {
|
|
843
865
|
const energyResult = await this.computeEnergy(molecule);
|
|
@@ -845,12 +867,20 @@ var Psi4Backend = class {
|
|
|
845
867
|
return this.lastDipole;
|
|
846
868
|
}
|
|
847
869
|
async computeDftMaterials() {
|
|
848
|
-
throw new Error(
|
|
870
|
+
throw new Error(
|
|
871
|
+
"[qm-bridge] Psi4 does not support periodic/materials DFT. Use quantum-espresso backend."
|
|
872
|
+
);
|
|
849
873
|
}
|
|
850
874
|
async computeNmrSpectrum(molecule) {
|
|
851
875
|
requireCapability("psi4", "nmrGiao");
|
|
852
876
|
const startTime = performance.now();
|
|
853
|
-
const input = generatePsi4Input(
|
|
877
|
+
const input = generatePsi4Input(
|
|
878
|
+
molecule,
|
|
879
|
+
this.qmConfig.method,
|
|
880
|
+
this.qmConfig.basis,
|
|
881
|
+
"nmr",
|
|
882
|
+
this.qmConfig
|
|
883
|
+
);
|
|
854
884
|
const raw = await this.runPsi4(input);
|
|
855
885
|
const wallTime = (performance.now() - startTime) / 1e3;
|
|
856
886
|
const tmsReference = {
|
|
@@ -875,7 +905,9 @@ var Psi4Backend = class {
|
|
|
875
905
|
};
|
|
876
906
|
}
|
|
877
907
|
async computeSemiEmpiricalEnergy() {
|
|
878
|
-
throw new Error(
|
|
908
|
+
throw new Error(
|
|
909
|
+
"[qm-bridge] Psi4 does not support semi-empirical methods. Use tblite backend."
|
|
910
|
+
);
|
|
879
911
|
}
|
|
880
912
|
async computeTransitionState(reactant, product, numImages = 7) {
|
|
881
913
|
requireCapability("psi4", "transitionStates");
|
|
@@ -883,7 +915,9 @@ var Psi4Backend = class {
|
|
|
883
915
|
const midpointAtoms = reactant.atoms.map((a, i) => {
|
|
884
916
|
const productAtom = product.atoms[i];
|
|
885
917
|
if (!productAtom) {
|
|
886
|
-
throw new Error(
|
|
918
|
+
throw new Error(
|
|
919
|
+
"[qm-bridge] Reactant/product atom counts must match for transition state search."
|
|
920
|
+
);
|
|
887
921
|
}
|
|
888
922
|
return {
|
|
889
923
|
symbol: a.symbol,
|
|
@@ -1114,13 +1148,19 @@ var QuantumEspressoBackend = class {
|
|
|
1114
1148
|
}
|
|
1115
1149
|
// ── Capability implementations ────────────────────────────────────────
|
|
1116
1150
|
async computeEnergy(_molecule) {
|
|
1117
|
-
throw new Error(
|
|
1151
|
+
throw new Error(
|
|
1152
|
+
"[qm-bridge] Quantum ESPRESSO does not support molecular energy calculations. Use psi4 backend."
|
|
1153
|
+
);
|
|
1118
1154
|
}
|
|
1119
1155
|
async optimizeGeometry(_molecule) {
|
|
1120
|
-
throw new Error(
|
|
1156
|
+
throw new Error(
|
|
1157
|
+
"[qm-bridge] Quantum ESPRESSO does not support molecular geometry optimization. Use psi4 backend."
|
|
1158
|
+
);
|
|
1121
1159
|
}
|
|
1122
1160
|
async computeVibrations(_molecule) {
|
|
1123
|
-
throw new Error(
|
|
1161
|
+
throw new Error(
|
|
1162
|
+
"[qm-bridge] Quantum ESPRESSO does not support molecular vibrational analysis. Use psi4 backend."
|
|
1163
|
+
);
|
|
1124
1164
|
}
|
|
1125
1165
|
async computeChargeDensity() {
|
|
1126
1166
|
throw new Error("[qm-bridge] Quantum ESPRESSO charge density not yet implemented (stage 2).");
|
|
@@ -1128,7 +1168,11 @@ var QuantumEspressoBackend = class {
|
|
|
1128
1168
|
async computeBandStructure(crystal) {
|
|
1129
1169
|
requireCapability("quantum-espresso", "periodic");
|
|
1130
1170
|
const startTime = performance.now();
|
|
1131
|
-
const input = generateQeScfInput(
|
|
1171
|
+
const input = generateQeScfInput(
|
|
1172
|
+
crystal,
|
|
1173
|
+
this.qmConfig.method,
|
|
1174
|
+
this.qmConfig
|
|
1175
|
+
);
|
|
1132
1176
|
const raw = await this.runQe(input);
|
|
1133
1177
|
const wallTime = (performance.now() - startTime) / 1e3;
|
|
1134
1178
|
const result = {
|
|
@@ -1144,12 +1188,18 @@ var QuantumEspressoBackend = class {
|
|
|
1144
1188
|
return result;
|
|
1145
1189
|
}
|
|
1146
1190
|
async computeDipoleMoment() {
|
|
1147
|
-
throw new Error(
|
|
1191
|
+
throw new Error(
|
|
1192
|
+
"[qm-bridge] Quantum ESPRESSO does not support molecular dipole calculations. Use psi4 backend."
|
|
1193
|
+
);
|
|
1148
1194
|
}
|
|
1149
1195
|
async computeDftMaterials(crystal) {
|
|
1150
1196
|
requireCapability("quantum-espresso", "periodic");
|
|
1151
1197
|
const startTime = performance.now();
|
|
1152
|
-
const scfInput = generateQeScfInput(
|
|
1198
|
+
const scfInput = generateQeScfInput(
|
|
1199
|
+
crystal,
|
|
1200
|
+
this.qmConfig.method,
|
|
1201
|
+
this.qmConfig
|
|
1202
|
+
);
|
|
1153
1203
|
const raw = await this.runQe(scfInput);
|
|
1154
1204
|
const wallTimeEnergy = (performance.now() - startTime) / 1e3;
|
|
1155
1205
|
const bandResult = await this.computeBandStructure(crystal);
|
|
@@ -1169,10 +1219,14 @@ var QuantumEspressoBackend = class {
|
|
|
1169
1219
|
throw new Error("[qm-bridge] Quantum ESPRESSO does not support NMR GIAO. Use psi4 backend.");
|
|
1170
1220
|
}
|
|
1171
1221
|
async computeSemiEmpiricalEnergy() {
|
|
1172
|
-
throw new Error(
|
|
1222
|
+
throw new Error(
|
|
1223
|
+
"[qm-bridge] Quantum ESPRESSO does not support semi-empirical. Use tblite backend."
|
|
1224
|
+
);
|
|
1173
1225
|
}
|
|
1174
1226
|
async computeTransitionState() {
|
|
1175
|
-
throw new Error(
|
|
1227
|
+
throw new Error(
|
|
1228
|
+
"[qm-bridge] Quantum ESPRESSO does not support NEB/TS search. Use psi4 backend."
|
|
1229
|
+
);
|
|
1176
1230
|
}
|
|
1177
1231
|
async computeQmMm() {
|
|
1178
1232
|
throw new Error("[qm-bridge] Quantum ESPRESSO does not support QM/MM. Use psi4 backend.");
|
|
@@ -1252,20 +1306,26 @@ var TBLiteBackend = class {
|
|
|
1252
1306
|
};
|
|
1253
1307
|
}
|
|
1254
1308
|
async computeVibrations() {
|
|
1255
|
-
throw new Error(
|
|
1309
|
+
throw new Error(
|
|
1310
|
+
"[qm-bridge] TBLite vibrational analysis not yet implemented (stage 2). Use psi4 for accurate frequencies."
|
|
1311
|
+
);
|
|
1256
1312
|
}
|
|
1257
1313
|
async computeChargeDensity() {
|
|
1258
1314
|
throw new Error("[qm-bridge] TBLite does not support charge density grids. Use psi4 backend.");
|
|
1259
1315
|
}
|
|
1260
1316
|
async computeBandStructure() {
|
|
1261
|
-
throw new Error(
|
|
1317
|
+
throw new Error(
|
|
1318
|
+
"[qm-bridge] TBLite does not support band structure calculations. Use quantum-espresso backend."
|
|
1319
|
+
);
|
|
1262
1320
|
}
|
|
1263
1321
|
async computeDipoleMoment(molecule) {
|
|
1264
1322
|
const result = await this.computeSemiEmpiricalEnergy(molecule);
|
|
1265
1323
|
return result.dipoleMoment ?? [0, 0, 0];
|
|
1266
1324
|
}
|
|
1267
1325
|
async computeDftMaterials() {
|
|
1268
|
-
throw new Error(
|
|
1326
|
+
throw new Error(
|
|
1327
|
+
"[qm-bridge] TBLite does not support periodic/materials DFT. Use quantum-espresso backend."
|
|
1328
|
+
);
|
|
1269
1329
|
}
|
|
1270
1330
|
async computeNmrSpectrum() {
|
|
1271
1331
|
throw new Error("[qm-bridge] TBLite does not support NMR GIAO. Use psi4 backend.");
|
|
@@ -1648,7 +1708,9 @@ var PySCFBackend = class {
|
|
|
1648
1708
|
return { energy: energyResult, bandStructure: bandResult };
|
|
1649
1709
|
}
|
|
1650
1710
|
async computeNmrSpectrum() {
|
|
1651
|
-
throw new Error(
|
|
1711
|
+
throw new Error(
|
|
1712
|
+
"[pyscf] NMR GIAO is not a primary target for PySCF backend. Use psi4 backend."
|
|
1713
|
+
);
|
|
1652
1714
|
}
|
|
1653
1715
|
async computeSemiEmpiricalEnergy() {
|
|
1654
1716
|
throw new Error("[pyscf] PySCF does not support semi-empirical methods. Use tblite backend.");
|
|
@@ -1659,7 +1721,9 @@ var PySCFBackend = class {
|
|
|
1659
1721
|
const midpointAtoms = reactant.atoms.map((a, i) => {
|
|
1660
1722
|
const productAtom = product.atoms[i];
|
|
1661
1723
|
if (!productAtom) {
|
|
1662
|
-
throw new Error(
|
|
1724
|
+
throw new Error(
|
|
1725
|
+
"[pyscf] Reactant/product atom counts must match for transition state search."
|
|
1726
|
+
);
|
|
1663
1727
|
}
|
|
1664
1728
|
return {
|
|
1665
1729
|
symbol: a.symbol,
|
|
@@ -1772,11 +1836,8 @@ var PySCFBackend = class {
|
|
|
1772
1836
|
totalDos: raw.dos_total ?? [],
|
|
1773
1837
|
projectedDos: raw.dos_projected,
|
|
1774
1838
|
fermiEnergy: raw.fermi_energy ?? 0,
|
|
1775
|
-
energyRange: [
|
|
1776
|
-
|
|
1777
|
-
Math.max(...raw.dos_energies ?? [0])
|
|
1778
|
-
],
|
|
1779
|
-
numPoints: raw.dos_num_points ?? (raw.dos_energies?.length ?? 0),
|
|
1839
|
+
energyRange: [Math.min(...raw.dos_energies ?? [0]), Math.max(...raw.dos_energies ?? [0])],
|
|
1840
|
+
numPoints: raw.dos_num_points ?? raw.dos_energies?.length ?? 0,
|
|
1780
1841
|
solverConfig: this.qmConfig,
|
|
1781
1842
|
wallTimeSeconds: wallTime
|
|
1782
1843
|
};
|
|
@@ -1952,10 +2013,7 @@ var PySCFBackend = class {
|
|
|
1952
2013
|
};
|
|
1953
2014
|
}
|
|
1954
2015
|
if (task === "hamiltonian") {
|
|
1955
|
-
const numQubits = atoms.reduce(
|
|
1956
|
-
(sum, a) => sum + (ORBITAL_MAP[a.symbol] ?? 9) * 2,
|
|
1957
|
-
0
|
|
1958
|
-
) || 10;
|
|
2016
|
+
const numQubits = atoms.reduce((sum, a) => sum + (ORBITAL_MAP[a.symbol] ?? 9) * 2, 0) || 10;
|
|
1959
2017
|
return {
|
|
1960
2018
|
total_energy: -340.5,
|
|
1961
2019
|
converged: true,
|
|
@@ -2069,5 +2127,5 @@ function getDefaultQmConfig(backend, questionType) {
|
|
|
2069
2127
|
var VERSION = "0.1.0";
|
|
2070
2128
|
|
|
2071
2129
|
export { IBMQuantumBackend, Psi4Backend, PySCFBackend, QM_ACCEPTANCE_CRITERIA, QM_BACKEND_CAPABILITIES, QuantumEspressoBackend, TBLiteBackend, VERSION, computeMeasurementBasis, createIBMQuantumBackend, createQmSolver, estimateMeasurementCost, getDefaultQmConfig, groupPauliTerms, parsePauliList, paulisCommute, qmConfigToCael, qmResultToCaelSummary, requireCapability, selectQmBackend, verifyQmAcceptance };
|
|
2072
|
-
//# sourceMappingURL=src-
|
|
2073
|
-
//# sourceMappingURL=src-
|
|
2130
|
+
//# sourceMappingURL=src-J6CM4AUR.js.map
|
|
2131
|
+
//# sourceMappingURL=src-J6CM4AUR.js.map
|
|
@@ -123,7 +123,9 @@ var init_ibm_quantum = chunkHCCQLAA4_cjs.__esm({
|
|
|
123
123
|
getField(name) {
|
|
124
124
|
if (name === "total_energy") {
|
|
125
125
|
if (this.lastEnergy === null) {
|
|
126
|
-
throw new Error(
|
|
126
|
+
throw new Error(
|
|
127
|
+
"[ibm-quantum] No energy computed yet. Call computeEnergy or runVQE first."
|
|
128
|
+
);
|
|
127
129
|
}
|
|
128
130
|
return new Float64Array([this.lastEnergy]);
|
|
129
131
|
}
|
|
@@ -353,7 +355,7 @@ var init_ibm_quantum = chunkHCCQLAA4_cjs.__esm({
|
|
|
353
355
|
const { execFile } = await import('child_process');
|
|
354
356
|
const { promisify } = await import('util');
|
|
355
357
|
const execFileAsync = promisify(execFile);
|
|
356
|
-
const scriptPath = this.config.scriptPath ?? new URL("../../../../../../scripts/quantum_execute.py", (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('src-
|
|
358
|
+
const scriptPath = this.config.scriptPath ?? new URL("../../../../../../scripts/quantum_execute.py", (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('src-PT2FERDV.cjs', document.baseURI).href))).pathname;
|
|
357
359
|
const pythonExe = process.env.QISKIT_PYTHON ?? (process.platform === "win32" ? "C:\\Python314\\python.exe" : "python3");
|
|
358
360
|
const bridgeInput = { ...input };
|
|
359
361
|
delete bridgeInput["api_token"];
|
|
@@ -773,7 +775,13 @@ var Psi4Backend = class {
|
|
|
773
775
|
// ── Capability implementations ────────────────────────────────────────
|
|
774
776
|
async computeEnergy(molecule) {
|
|
775
777
|
const startTime = performance.now();
|
|
776
|
-
const input = generatePsi4Input(
|
|
778
|
+
const input = generatePsi4Input(
|
|
779
|
+
molecule,
|
|
780
|
+
this.qmConfig.method,
|
|
781
|
+
this.qmConfig.basis,
|
|
782
|
+
"energy",
|
|
783
|
+
this.qmConfig
|
|
784
|
+
);
|
|
777
785
|
const raw = await this.runPsi4(input);
|
|
778
786
|
const wallTime = (performance.now() - startTime) / 1e3;
|
|
779
787
|
const result = {
|
|
@@ -790,7 +798,13 @@ var Psi4Backend = class {
|
|
|
790
798
|
}
|
|
791
799
|
async optimizeGeometry(molecule) {
|
|
792
800
|
const startTime = performance.now();
|
|
793
|
-
const input = generatePsi4Input(
|
|
801
|
+
const input = generatePsi4Input(
|
|
802
|
+
molecule,
|
|
803
|
+
this.qmConfig.method,
|
|
804
|
+
this.qmConfig.basis,
|
|
805
|
+
"optimize",
|
|
806
|
+
this.qmConfig
|
|
807
|
+
);
|
|
794
808
|
const raw = await this.runPsi4(input);
|
|
795
809
|
const wallTime = (performance.now() - startTime) / 1e3;
|
|
796
810
|
return {
|
|
@@ -806,7 +820,13 @@ var Psi4Backend = class {
|
|
|
806
820
|
}
|
|
807
821
|
async computeVibrations(molecule) {
|
|
808
822
|
const startTime = performance.now();
|
|
809
|
-
const input = generatePsi4Input(
|
|
823
|
+
const input = generatePsi4Input(
|
|
824
|
+
molecule,
|
|
825
|
+
this.qmConfig.method,
|
|
826
|
+
this.qmConfig.basis,
|
|
827
|
+
"frequency",
|
|
828
|
+
this.qmConfig
|
|
829
|
+
);
|
|
810
830
|
const raw = await this.runPsi4(input);
|
|
811
831
|
const wallTime = (performance.now() - startTime) / 1e3;
|
|
812
832
|
return {
|
|
@@ -840,7 +860,9 @@ var Psi4Backend = class {
|
|
|
840
860
|
};
|
|
841
861
|
}
|
|
842
862
|
async computeBandStructure() {
|
|
843
|
-
throw new Error(
|
|
863
|
+
throw new Error(
|
|
864
|
+
"[qm-bridge] Psi4 does not support periodic/band structure calculations. Use quantum-espresso backend."
|
|
865
|
+
);
|
|
844
866
|
}
|
|
845
867
|
async computeDipoleMoment(molecule) {
|
|
846
868
|
const energyResult = await this.computeEnergy(molecule);
|
|
@@ -848,12 +870,20 @@ var Psi4Backend = class {
|
|
|
848
870
|
return this.lastDipole;
|
|
849
871
|
}
|
|
850
872
|
async computeDftMaterials() {
|
|
851
|
-
throw new Error(
|
|
873
|
+
throw new Error(
|
|
874
|
+
"[qm-bridge] Psi4 does not support periodic/materials DFT. Use quantum-espresso backend."
|
|
875
|
+
);
|
|
852
876
|
}
|
|
853
877
|
async computeNmrSpectrum(molecule) {
|
|
854
878
|
requireCapability("psi4", "nmrGiao");
|
|
855
879
|
const startTime = performance.now();
|
|
856
|
-
const input = generatePsi4Input(
|
|
880
|
+
const input = generatePsi4Input(
|
|
881
|
+
molecule,
|
|
882
|
+
this.qmConfig.method,
|
|
883
|
+
this.qmConfig.basis,
|
|
884
|
+
"nmr",
|
|
885
|
+
this.qmConfig
|
|
886
|
+
);
|
|
857
887
|
const raw = await this.runPsi4(input);
|
|
858
888
|
const wallTime = (performance.now() - startTime) / 1e3;
|
|
859
889
|
const tmsReference = {
|
|
@@ -878,7 +908,9 @@ var Psi4Backend = class {
|
|
|
878
908
|
};
|
|
879
909
|
}
|
|
880
910
|
async computeSemiEmpiricalEnergy() {
|
|
881
|
-
throw new Error(
|
|
911
|
+
throw new Error(
|
|
912
|
+
"[qm-bridge] Psi4 does not support semi-empirical methods. Use tblite backend."
|
|
913
|
+
);
|
|
882
914
|
}
|
|
883
915
|
async computeTransitionState(reactant, product, numImages = 7) {
|
|
884
916
|
requireCapability("psi4", "transitionStates");
|
|
@@ -886,7 +918,9 @@ var Psi4Backend = class {
|
|
|
886
918
|
const midpointAtoms = reactant.atoms.map((a, i) => {
|
|
887
919
|
const productAtom = product.atoms[i];
|
|
888
920
|
if (!productAtom) {
|
|
889
|
-
throw new Error(
|
|
921
|
+
throw new Error(
|
|
922
|
+
"[qm-bridge] Reactant/product atom counts must match for transition state search."
|
|
923
|
+
);
|
|
890
924
|
}
|
|
891
925
|
return {
|
|
892
926
|
symbol: a.symbol,
|
|
@@ -1117,13 +1151,19 @@ var QuantumEspressoBackend = class {
|
|
|
1117
1151
|
}
|
|
1118
1152
|
// ── Capability implementations ────────────────────────────────────────
|
|
1119
1153
|
async computeEnergy(_molecule) {
|
|
1120
|
-
throw new Error(
|
|
1154
|
+
throw new Error(
|
|
1155
|
+
"[qm-bridge] Quantum ESPRESSO does not support molecular energy calculations. Use psi4 backend."
|
|
1156
|
+
);
|
|
1121
1157
|
}
|
|
1122
1158
|
async optimizeGeometry(_molecule) {
|
|
1123
|
-
throw new Error(
|
|
1159
|
+
throw new Error(
|
|
1160
|
+
"[qm-bridge] Quantum ESPRESSO does not support molecular geometry optimization. Use psi4 backend."
|
|
1161
|
+
);
|
|
1124
1162
|
}
|
|
1125
1163
|
async computeVibrations(_molecule) {
|
|
1126
|
-
throw new Error(
|
|
1164
|
+
throw new Error(
|
|
1165
|
+
"[qm-bridge] Quantum ESPRESSO does not support molecular vibrational analysis. Use psi4 backend."
|
|
1166
|
+
);
|
|
1127
1167
|
}
|
|
1128
1168
|
async computeChargeDensity() {
|
|
1129
1169
|
throw new Error("[qm-bridge] Quantum ESPRESSO charge density not yet implemented (stage 2).");
|
|
@@ -1131,7 +1171,11 @@ var QuantumEspressoBackend = class {
|
|
|
1131
1171
|
async computeBandStructure(crystal) {
|
|
1132
1172
|
requireCapability("quantum-espresso", "periodic");
|
|
1133
1173
|
const startTime = performance.now();
|
|
1134
|
-
const input = generateQeScfInput(
|
|
1174
|
+
const input = generateQeScfInput(
|
|
1175
|
+
crystal,
|
|
1176
|
+
this.qmConfig.method,
|
|
1177
|
+
this.qmConfig
|
|
1178
|
+
);
|
|
1135
1179
|
const raw = await this.runQe(input);
|
|
1136
1180
|
const wallTime = (performance.now() - startTime) / 1e3;
|
|
1137
1181
|
const result = {
|
|
@@ -1147,12 +1191,18 @@ var QuantumEspressoBackend = class {
|
|
|
1147
1191
|
return result;
|
|
1148
1192
|
}
|
|
1149
1193
|
async computeDipoleMoment() {
|
|
1150
|
-
throw new Error(
|
|
1194
|
+
throw new Error(
|
|
1195
|
+
"[qm-bridge] Quantum ESPRESSO does not support molecular dipole calculations. Use psi4 backend."
|
|
1196
|
+
);
|
|
1151
1197
|
}
|
|
1152
1198
|
async computeDftMaterials(crystal) {
|
|
1153
1199
|
requireCapability("quantum-espresso", "periodic");
|
|
1154
1200
|
const startTime = performance.now();
|
|
1155
|
-
const scfInput = generateQeScfInput(
|
|
1201
|
+
const scfInput = generateQeScfInput(
|
|
1202
|
+
crystal,
|
|
1203
|
+
this.qmConfig.method,
|
|
1204
|
+
this.qmConfig
|
|
1205
|
+
);
|
|
1156
1206
|
const raw = await this.runQe(scfInput);
|
|
1157
1207
|
const wallTimeEnergy = (performance.now() - startTime) / 1e3;
|
|
1158
1208
|
const bandResult = await this.computeBandStructure(crystal);
|
|
@@ -1172,10 +1222,14 @@ var QuantumEspressoBackend = class {
|
|
|
1172
1222
|
throw new Error("[qm-bridge] Quantum ESPRESSO does not support NMR GIAO. Use psi4 backend.");
|
|
1173
1223
|
}
|
|
1174
1224
|
async computeSemiEmpiricalEnergy() {
|
|
1175
|
-
throw new Error(
|
|
1225
|
+
throw new Error(
|
|
1226
|
+
"[qm-bridge] Quantum ESPRESSO does not support semi-empirical. Use tblite backend."
|
|
1227
|
+
);
|
|
1176
1228
|
}
|
|
1177
1229
|
async computeTransitionState() {
|
|
1178
|
-
throw new Error(
|
|
1230
|
+
throw new Error(
|
|
1231
|
+
"[qm-bridge] Quantum ESPRESSO does not support NEB/TS search. Use psi4 backend."
|
|
1232
|
+
);
|
|
1179
1233
|
}
|
|
1180
1234
|
async computeQmMm() {
|
|
1181
1235
|
throw new Error("[qm-bridge] Quantum ESPRESSO does not support QM/MM. Use psi4 backend.");
|
|
@@ -1255,20 +1309,26 @@ var TBLiteBackend = class {
|
|
|
1255
1309
|
};
|
|
1256
1310
|
}
|
|
1257
1311
|
async computeVibrations() {
|
|
1258
|
-
throw new Error(
|
|
1312
|
+
throw new Error(
|
|
1313
|
+
"[qm-bridge] TBLite vibrational analysis not yet implemented (stage 2). Use psi4 for accurate frequencies."
|
|
1314
|
+
);
|
|
1259
1315
|
}
|
|
1260
1316
|
async computeChargeDensity() {
|
|
1261
1317
|
throw new Error("[qm-bridge] TBLite does not support charge density grids. Use psi4 backend.");
|
|
1262
1318
|
}
|
|
1263
1319
|
async computeBandStructure() {
|
|
1264
|
-
throw new Error(
|
|
1320
|
+
throw new Error(
|
|
1321
|
+
"[qm-bridge] TBLite does not support band structure calculations. Use quantum-espresso backend."
|
|
1322
|
+
);
|
|
1265
1323
|
}
|
|
1266
1324
|
async computeDipoleMoment(molecule) {
|
|
1267
1325
|
const result = await this.computeSemiEmpiricalEnergy(molecule);
|
|
1268
1326
|
return result.dipoleMoment ?? [0, 0, 0];
|
|
1269
1327
|
}
|
|
1270
1328
|
async computeDftMaterials() {
|
|
1271
|
-
throw new Error(
|
|
1329
|
+
throw new Error(
|
|
1330
|
+
"[qm-bridge] TBLite does not support periodic/materials DFT. Use quantum-espresso backend."
|
|
1331
|
+
);
|
|
1272
1332
|
}
|
|
1273
1333
|
async computeNmrSpectrum() {
|
|
1274
1334
|
throw new Error("[qm-bridge] TBLite does not support NMR GIAO. Use psi4 backend.");
|
|
@@ -1651,7 +1711,9 @@ var PySCFBackend = class {
|
|
|
1651
1711
|
return { energy: energyResult, bandStructure: bandResult };
|
|
1652
1712
|
}
|
|
1653
1713
|
async computeNmrSpectrum() {
|
|
1654
|
-
throw new Error(
|
|
1714
|
+
throw new Error(
|
|
1715
|
+
"[pyscf] NMR GIAO is not a primary target for PySCF backend. Use psi4 backend."
|
|
1716
|
+
);
|
|
1655
1717
|
}
|
|
1656
1718
|
async computeSemiEmpiricalEnergy() {
|
|
1657
1719
|
throw new Error("[pyscf] PySCF does not support semi-empirical methods. Use tblite backend.");
|
|
@@ -1662,7 +1724,9 @@ var PySCFBackend = class {
|
|
|
1662
1724
|
const midpointAtoms = reactant.atoms.map((a, i) => {
|
|
1663
1725
|
const productAtom = product.atoms[i];
|
|
1664
1726
|
if (!productAtom) {
|
|
1665
|
-
throw new Error(
|
|
1727
|
+
throw new Error(
|
|
1728
|
+
"[pyscf] Reactant/product atom counts must match for transition state search."
|
|
1729
|
+
);
|
|
1666
1730
|
}
|
|
1667
1731
|
return {
|
|
1668
1732
|
symbol: a.symbol,
|
|
@@ -1775,11 +1839,8 @@ var PySCFBackend = class {
|
|
|
1775
1839
|
totalDos: raw.dos_total ?? [],
|
|
1776
1840
|
projectedDos: raw.dos_projected,
|
|
1777
1841
|
fermiEnergy: raw.fermi_energy ?? 0,
|
|
1778
|
-
energyRange: [
|
|
1779
|
-
|
|
1780
|
-
Math.max(...raw.dos_energies ?? [0])
|
|
1781
|
-
],
|
|
1782
|
-
numPoints: raw.dos_num_points ?? (raw.dos_energies?.length ?? 0),
|
|
1842
|
+
energyRange: [Math.min(...raw.dos_energies ?? [0]), Math.max(...raw.dos_energies ?? [0])],
|
|
1843
|
+
numPoints: raw.dos_num_points ?? raw.dos_energies?.length ?? 0,
|
|
1783
1844
|
solverConfig: this.qmConfig,
|
|
1784
1845
|
wallTimeSeconds: wallTime
|
|
1785
1846
|
};
|
|
@@ -1854,7 +1915,7 @@ var PySCFBackend = class {
|
|
|
1854
1915
|
const { execFile } = await import('child_process');
|
|
1855
1916
|
const { promisify } = await import('util');
|
|
1856
1917
|
const execFileAsync = promisify(execFile);
|
|
1857
|
-
const resolvedScript = scriptPath || new URL("../../../../../scripts/quantum_materials_execute.py", (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('src-
|
|
1918
|
+
const resolvedScript = scriptPath || new URL("../../../../../scripts/quantum_materials_execute.py", (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('src-PT2FERDV.cjs', document.baseURI).href))).pathname;
|
|
1858
1919
|
const { stdout, stderr } = await execFileAsync(
|
|
1859
1920
|
pythonExe,
|
|
1860
1921
|
[resolvedScript, JSON.stringify(input)],
|
|
@@ -1955,10 +2016,7 @@ var PySCFBackend = class {
|
|
|
1955
2016
|
};
|
|
1956
2017
|
}
|
|
1957
2018
|
if (task === "hamiltonian") {
|
|
1958
|
-
const numQubits = atoms.reduce(
|
|
1959
|
-
(sum, a) => sum + (ORBITAL_MAP[a.symbol] ?? 9) * 2,
|
|
1960
|
-
0
|
|
1961
|
-
) || 10;
|
|
2019
|
+
const numQubits = atoms.reduce((sum, a) => sum + (ORBITAL_MAP[a.symbol] ?? 9) * 2, 0) || 10;
|
|
1962
2020
|
return {
|
|
1963
2021
|
total_energy: -340.5,
|
|
1964
2022
|
converged: true,
|
|
@@ -2090,5 +2148,5 @@ exports.qmResultToCaelSummary = qmResultToCaelSummary;
|
|
|
2090
2148
|
exports.requireCapability = requireCapability;
|
|
2091
2149
|
exports.selectQmBackend = selectQmBackend;
|
|
2092
2150
|
exports.verifyQmAcceptance = verifyQmAcceptance;
|
|
2093
|
-
//# sourceMappingURL=src-
|
|
2094
|
-
//# sourceMappingURL=src-
|
|
2151
|
+
//# sourceMappingURL=src-PT2FERDV.cjs.map
|
|
2152
|
+
//# sourceMappingURL=src-PT2FERDV.cjs.map
|
package/dist/testing.cjs
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkG25QVBA5_cjs = require('./chunk-G25QVBA5.cjs');
|
|
4
4
|
require('./chunk-HCCQLAA4.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "DeterminismHarness", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkG25QVBA5_cjs.DeterminismHarness; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "captureEnvironment", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkG25QVBA5_cjs.captureEnvironment; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "describeEnvironment", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkG25QVBA5_cjs.describeEnvironment; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "hashBytes", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkG25QVBA5_cjs.hashBytes; }
|
|
23
23
|
});
|
|
24
24
|
//# sourceMappingURL=testing.cjs.map
|
|
25
25
|
//# sourceMappingURL=testing.cjs.map
|
package/dist/testing.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { DeterminismHarness, captureEnvironment, describeEnvironment, hashBytes } from './chunk-
|
|
1
|
+
export { DeterminismHarness, captureEnvironment, describeEnvironment, hashBytes } from './chunk-DD2JQ7TS.js';
|
|
2
2
|
import './chunk-OL46QLBJ.js';
|
|
3
3
|
//# sourceMappingURL=testing.js.map
|
|
4
4
|
//# sourceMappingURL=testing.js.map
|