@holoscript/core 8.0.5 → 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.
Files changed (248) hide show
  1. package/README.md +34 -34
  2. package/bin/holoscript.cjs +1 -1
  3. package/dist/GLTFPipeline-3EJLL3TS.cjs +38 -0
  4. package/dist/GLTFPipeline-3OWJV2VK.js +17 -0
  5. package/dist/{HoloScriptPlusParser-A2W7OCN2.cjs → HoloScriptPlusParser-ADWRY5OS.cjs} +15 -15
  6. package/dist/{HoloScriptPlusParser-7FBIFUFC.js → HoloScriptPlusParser-JLJDXHSC.js} +4 -4
  7. package/dist/HoloScriptPlusParser-QCGFPWIL.cjs +27 -0
  8. package/dist/{HoloScriptPlusParser-F2Z56FJR.js → HoloScriptPlusParser-WENAFEFV.js} +5 -5
  9. package/dist/HoloScriptRuntime-GGRVEU4T.cjs +19 -0
  10. package/dist/HoloScriptRuntime-GJK6VJPH.js +10 -0
  11. package/dist/{USDZExporter-3FWJ25JI.cjs → USDZExporter-AUHZODOF.cjs} +15 -4
  12. package/dist/{USDZExporter-D2HQLQYK.js → USDZExporter-GXB4AUSG.js} +15 -4
  13. package/dist/{chunk-V6MKC2FZ.js → chunk-22Q5A6RV.js} +3 -3
  14. package/dist/{chunk-IUDGEUDO.cjs → chunk-2BZHWUSR.cjs} +27 -15
  15. package/dist/{chunk-XJAN7CZG.cjs → chunk-2GCNOI2U.cjs} +2 -2
  16. package/dist/{chunk-CCATWPXM.js → chunk-2OWDB4FB.js} +13 -25
  17. package/dist/{chunk-N75IH2HY.js → chunk-2Y3V22SG.js} +5 -14
  18. package/dist/{chunk-MXFUTKCO.js → chunk-33YHE7HX.js} +3 -7
  19. package/dist/{chunk-GYZE55MO.js → chunk-3GWWJT7L.js} +4 -4
  20. package/dist/{chunk-CMT5NMMS.js → chunk-3NGDZZR4.js} +4 -4
  21. package/dist/{chunk-WRLUBRKS.cjs → chunk-3SKLAUDD.cjs} +2 -2
  22. package/dist/{chunk-KKFZ3B6J.cjs → chunk-3VBO3IYQ.cjs} +2 -2
  23. package/dist/{chunk-YF2I3MV3.js → chunk-47RUFYKR.js} +2 -2
  24. package/dist/{chunk-LHAXPADA.js → chunk-4JGRWHZJ.js} +7 -5
  25. package/dist/{chunk-ROHLEP2W.cjs → chunk-4W5G5QVL.cjs} +26 -26
  26. package/dist/{chunk-GQHQOPXZ.cjs → chunk-4YNYPHH3.cjs} +186 -17
  27. package/dist/{chunk-ZMCVKFXI.cjs → chunk-56VOWURB.cjs} +154 -47
  28. package/dist/{chunk-FXKAW7ZO.cjs → chunk-5A4TCHOC.cjs} +3 -3
  29. package/dist/{chunk-M56JSP4A.js → chunk-5EDVCNRT.js} +2 -2
  30. package/dist/{chunk-UJXISJBN.js → chunk-5ET6L4NS.js} +3 -3
  31. package/dist/{chunk-5NWINHR5.cjs → chunk-63ZGNR2T.cjs} +43 -39
  32. package/dist/{chunk-NG77ATEW.cjs → chunk-6PRZIHGL.cjs} +6 -6
  33. package/dist/{chunk-3WZEJHUQ.cjs → chunk-7DMMMBCY.cjs} +7 -7
  34. package/dist/{chunk-FHP6LXJS.js → chunk-7E7GCQCK.js} +2 -2
  35. package/dist/{chunk-YN2YWTXW.js → chunk-7VMGP2FW.js} +44 -28
  36. package/dist/{chunk-OJXHYNXN.js → chunk-7X5PNIQJ.js} +3 -3
  37. package/dist/{chunk-FYSPZT4V.cjs → chunk-7ZHYEITD.cjs} +11 -11
  38. package/dist/{chunk-KPJL34Y7.cjs → chunk-ACVWFGBI.cjs} +2 -2
  39. package/dist/{chunk-UWXE23BT.cjs → chunk-AWB7QYY6.cjs} +6 -6
  40. package/dist/{chunk-UO4WPSGQ.js → chunk-B4EKV6HQ.js} +154 -48
  41. package/dist/{chunk-2X7NGX3M.js → chunk-BRNUPDHJ.js} +5 -5
  42. package/dist/{chunk-D3STJ56J.js → chunk-BTKZGHAV.js} +23 -11
  43. package/dist/{chunk-I5CDNPPE.cjs → chunk-C4GSLCHE.cjs} +331 -125
  44. package/dist/{chunk-QPSKHBJP.js → chunk-C7ZBSV2Q.js} +13 -7
  45. package/dist/{chunk-YN6V7R3L.cjs → chunk-CCPSNT6B.cjs} +12 -7
  46. package/dist/{chunk-NW5G5FBQ.js → chunk-DD2JQ7TS.js} +4 -3
  47. package/dist/{chunk-JD7CIZ33.js → chunk-DUCB6LGL.js} +8 -10
  48. package/dist/{chunk-ANXZFVY2.js → chunk-DY72BMU5.js} +3 -3
  49. package/dist/{chunk-AIA52I7T.cjs → chunk-EBS32AJI.cjs} +6 -4
  50. package/dist/{chunk-6DO5IZ5N.cjs → chunk-EDPYCLRC.cjs} +85 -65
  51. package/dist/{chunk-WQKJSGVS.js → chunk-F2G6CWFT.js} +271 -66
  52. package/dist/{chunk-AVJHHUC5.cjs → chunk-F5LKJ6F5.cjs} +43 -31
  53. package/dist/{chunk-ZU7NIRT6.js → chunk-FGMDMJM7.js} +10 -5
  54. package/dist/{chunk-YVD3CSO3.js → chunk-FHQFPYV4.js} +4 -4
  55. package/dist/{chunk-YIMN575O.js → chunk-FNHJRI32.js} +8 -5
  56. package/dist/{chunk-EXUP2BUM.cjs → chunk-FT6TDR2O.cjs} +27 -27
  57. package/dist/{chunk-BRQJKJGT.cjs → chunk-FWVYAMNW.cjs} +4 -4
  58. package/dist/{chunk-PGANYCAG.cjs → chunk-G25QVBA5.cjs} +4 -3
  59. package/dist/{chunk-XB274MW5.cjs → chunk-G6PNEASF.cjs} +13 -13
  60. package/dist/{chunk-2BSMSUCE.js → chunk-GASCWJK5.js} +2 -2
  61. package/dist/{chunk-HKEXJUWS.cjs → chunk-GH6C2QGW.cjs} +12 -21
  62. package/dist/{chunk-WRKUDAZJ.js → chunk-GSOUNWEL.js} +35 -27
  63. package/dist/{chunk-QPOQ7VPI.js → chunk-GTA4Q3A3.js} +2 -2
  64. package/dist/{chunk-JIYN45TV.cjs → chunk-GVFJ6T4S.cjs} +3 -7
  65. package/dist/{chunk-IVY74O6C.js → chunk-GVOKJNUN.js} +50 -11
  66. package/dist/{chunk-GZG4KA4E.js → chunk-GW3LKD5C.js} +6 -4
  67. package/dist/{chunk-NCWCUZNS.cjs → chunk-HFSVMKM3.cjs} +14 -14
  68. package/dist/{chunk-IUTY5WQ2.cjs → chunk-HLFDZ35S.cjs} +5 -5
  69. package/dist/{chunk-IWC5DM2M.cjs → chunk-I76GIKN7.cjs} +20 -16
  70. package/dist/{chunk-ON5QSY35.cjs → chunk-KAIVDEIG.cjs} +175 -59
  71. package/dist/{chunk-R24NNAEG.js → chunk-KCPHASCO.js} +18 -6
  72. package/dist/{chunk-T5J7ZKP3.cjs → chunk-KOUAQL2B.cjs} +16 -13
  73. package/dist/{chunk-GMP623FG.cjs → chunk-KQU64CIX.cjs} +2 -2
  74. package/dist/{chunk-MVPBWHAC.js → chunk-L5U4W6JC.js} +4 -4
  75. package/dist/{chunk-2IWC4FP7.cjs → chunk-LMJ5EBV7.cjs} +10 -10
  76. package/dist/{chunk-KKP7JKN4.cjs → chunk-LODTHGST.cjs} +18 -12
  77. package/dist/{chunk-4V2E7U7Q.cjs → chunk-LPS5AMQD.cjs} +8 -8
  78. package/dist/{chunk-PY37LNDP.js → chunk-LWUOUCYL.js} +9 -5
  79. package/dist/{chunk-6CTRH7HT.cjs → chunk-LYJJI7ZK.cjs} +12 -14
  80. package/dist/{chunk-GTU2Z2WW.cjs → chunk-M7K4LE66.cjs} +5 -14
  81. package/dist/{chunk-URG2SJLK.js → chunk-MDR235RZ.js} +3 -7
  82. package/dist/{chunk-E4M5OAYO.js → chunk-MSYSQ2AJ.js} +132 -16
  83. package/dist/{chunk-TWUXUCEW.cjs → chunk-NGBXXZLL.cjs} +50 -62
  84. package/dist/{chunk-FFAOS5HQ.js → chunk-NHJLP37F.js} +6 -6
  85. package/dist/{chunk-S3MDHNKB.cjs → chunk-NHYRRAGI.cjs} +5 -5
  86. package/dist/{chunk-U44IKGG7.cjs → chunk-O3MGZDCT.cjs} +89 -52
  87. package/dist/{chunk-GIOYPNTH.js → chunk-OABEO6HH.js} +185 -16
  88. package/dist/{chunk-KQCN6AKJ.cjs → chunk-OS533P33.cjs} +37 -29
  89. package/dist/{chunk-DAJXW4KX.js → chunk-PABONWKI.js} +24 -11
  90. package/dist/{chunk-QACVP4PM.js → chunk-PXNZ6TME.js} +77 -59
  91. package/dist/{chunk-OMXII44L.js → chunk-Q2Q34NF3.js} +63 -26
  92. package/dist/{chunk-OH2FAIVU.js → chunk-QBWNJXNR.js} +10 -6
  93. package/dist/{chunk-XKTPFXGA.js → chunk-QFU53KRH.js} +4 -4
  94. package/dist/{chunk-CR4FMIWL.cjs → chunk-QGMUTVVH.cjs} +17 -17
  95. package/dist/{chunk-MYY4PMWX.cjs → chunk-RUVBFAF7.cjs} +50 -11
  96. package/dist/{chunk-QD32ADK6.js → chunk-S762UEV5.js} +5 -5
  97. package/dist/{chunk-HNDK4IQU.cjs → chunk-SH5PPVK7.cjs} +61 -45
  98. package/dist/{chunk-JC5YBPSF.cjs → chunk-SKZPC5AG.cjs} +5 -5
  99. package/dist/{chunk-TJHVSBP2.js → chunk-SLHLXUMO.js} +10 -4
  100. package/dist/{chunk-5KVXXUD4.js → chunk-SSSN7VAM.js} +3 -3
  101. package/dist/{chunk-KMC6CQH3.js → chunk-SXOSDZD6.js} +6 -6
  102. package/dist/{chunk-J32ZJZJH.js → chunk-SYTRBGDS.js} +2 -2
  103. package/dist/{chunk-CIWWXYHZ.cjs → chunk-T6W3Z3SH.cjs} +2 -2
  104. package/dist/{chunk-QXH7QDSZ.js → chunk-TEVX443G.js} +44 -51
  105. package/dist/{chunk-UFZZ7TSN.cjs → chunk-TQ377OLB.cjs} +23 -21
  106. package/dist/{chunk-PJGFU5DN.cjs → chunk-TRCGG42I.cjs} +195 -152
  107. package/dist/{chunk-H652NHX5.js → chunk-TVANHNJ7.js} +30 -23
  108. package/dist/{chunk-EKBKLK7P.js → chunk-UDE4OZMR.js} +3 -3
  109. package/dist/{chunk-LKWQNUE6.cjs → chunk-UGXHYIWT.cjs} +5 -5
  110. package/dist/{chunk-JBNDTXXV.cjs → chunk-ULMSSHCJ.cjs} +21 -21
  111. package/dist/{chunk-YWOBW2PV.cjs → chunk-UOL6Y5TD.cjs} +18 -18
  112. package/dist/{chunk-5S7RKFGR.cjs → chunk-UVFI7XIR.cjs} +10 -4
  113. package/dist/{chunk-7M3PNU2M.cjs → chunk-V7AKE5VT.cjs} +10 -10
  114. package/dist/{chunk-J7XZV333.js → chunk-VEPGBETF.js} +6 -6
  115. package/dist/{chunk-UWJHCOH2.js → chunk-VF257YKO.js} +4 -4
  116. package/dist/{chunk-4N4SXXWF.js → chunk-VSACG2AR.js} +3 -3
  117. package/dist/{chunk-ZDSYWBIE.cjs → chunk-VW5CRJBE.cjs} +3 -7
  118. package/dist/{chunk-YT5L3B57.cjs → chunk-WFKVS2K4.cjs} +65 -27
  119. package/dist/{chunk-J6M4FPK5.js → chunk-WXQ57LAO.js} +3 -3
  120. package/dist/{chunk-5H2G27PK.cjs → chunk-X27QRG4C.cjs} +38 -38
  121. package/dist/{chunk-TVHSPJ4N.cjs → chunk-X2AVEAZM.cjs} +30 -23
  122. package/dist/{chunk-DHO2YRIM.js → chunk-XQ5MWMP2.js} +4 -4
  123. package/dist/{chunk-XIVIE43A.cjs → chunk-XW6IXEQH.cjs} +26 -13
  124. package/dist/{chunk-YIVFJNYV.js → chunk-Y3ZFVUUU.js} +2 -2
  125. package/dist/{chunk-7H33U5SM.cjs → chunk-Y57W2CT5.cjs} +2 -2
  126. package/dist/{chunk-OBIYPYYS.cjs → chunk-YCM6QQRT.cjs} +46 -53
  127. package/dist/{chunk-MBOOR7X4.js → chunk-YFVQWSNJ.js} +3 -3
  128. package/dist/{chunk-ADADVMXY.js → chunk-YFWRJW4B.js} +2 -2
  129. package/dist/{chunk-ONDAWTW4.js → chunk-YN6IETRZ.js} +179 -136
  130. package/dist/{chunk-4SDKXQ4C.js → chunk-YRRAUB35.js} +4 -4
  131. package/dist/{chunk-OBP5REIV.js → chunk-Z6PMDS4G.js} +62 -24
  132. package/dist/{chunk-BOVPWH4H.js → chunk-ZA34AN3R.js} +8 -17
  133. package/dist/{chunk-EKYL4PE3.cjs → chunk-ZLF4YF3U.cjs} +2 -2
  134. package/dist/{chunk-6FH72EB2.cjs → chunk-ZPZAVHXL.cjs} +20 -20
  135. package/dist/cli/holoscript-runner.cjs +39 -22
  136. package/dist/cli/holoscript-runner.js +32 -15
  137. package/dist/compiler/GasOptimizationAnalyzer.d.ts +73 -0
  138. package/dist/compiler/NFTMarketplaceCompiler.d.ts +23 -0
  139. package/dist/compiler/agent-inference.cjs +7 -7
  140. package/dist/compiler/agent-inference.js +3 -3
  141. package/dist/compiler/android-xr.cjs +8 -8
  142. package/dist/compiler/android-xr.js +6 -6
  143. package/dist/compiler/android.cjs +6 -6
  144. package/dist/compiler/android.js +4 -4
  145. package/dist/compiler/ar.cjs +6 -6
  146. package/dist/compiler/ar.js +4 -4
  147. package/dist/compiler/babylon.cjs +8 -8
  148. package/dist/compiler/babylon.js +7 -7
  149. package/dist/compiler/business-quest.cjs +9 -9
  150. package/dist/compiler/business-quest.js +1 -1
  151. package/dist/compiler/context.cjs +6 -6
  152. package/dist/compiler/context.js +3 -3
  153. package/dist/compiler/domain-block-utils.cjs +153 -153
  154. package/dist/compiler/domain-block-utils.js +4 -4
  155. package/dist/compiler/dtdl.cjs +7 -7
  156. package/dist/compiler/dtdl.js +4 -4
  157. package/dist/compiler/gltf-pipeline.cjs +8 -8
  158. package/dist/compiler/gltf-pipeline.js +1 -1
  159. package/dist/compiler/godot.cjs +6 -6
  160. package/dist/compiler/godot.js +5 -5
  161. package/dist/compiler/incremental.cjs +8 -8
  162. package/dist/compiler/incremental.js +3 -3
  163. package/dist/compiler/index.cjs +530 -355
  164. package/dist/compiler/index.d.ts +20 -0
  165. package/dist/compiler/index.js +374 -210
  166. package/dist/compiler/ios.cjs +6 -6
  167. package/dist/compiler/ios.js +4 -4
  168. package/dist/compiler/llm-provider-capabilities.cjs +6 -6
  169. package/dist/compiler/llm-provider-capabilities.js +3 -3
  170. package/dist/compiler/multi-layer.cjs +10 -10
  171. package/dist/compiler/multi-layer.js +9 -9
  172. package/dist/compiler/openxr.cjs +7 -7
  173. package/dist/compiler/openxr.js +6 -6
  174. package/dist/compiler/playcanvas.cjs +6 -6
  175. package/dist/compiler/playcanvas.js +5 -5
  176. package/dist/compiler/r3f.cjs +13 -13
  177. package/dist/compiler/r3f.js +8 -8
  178. package/dist/compiler/sdf.cjs +7 -7
  179. package/dist/compiler/sdf.js +5 -5
  180. package/dist/compiler/state.cjs +6 -6
  181. package/dist/compiler/state.js +4 -4
  182. package/dist/compiler/trait-composition.cjs +8 -8
  183. package/dist/compiler/trait-composition.js +4 -4
  184. package/dist/compiler/unity.cjs +7 -7
  185. package/dist/compiler/unity.js +6 -6
  186. package/dist/compiler/unreal.cjs +8 -8
  187. package/dist/compiler/unreal.js +6 -6
  188. package/dist/compiler/urdf.cjs +14 -14
  189. package/dist/compiler/urdf.js +5 -5
  190. package/dist/compiler/usd-physics.cjs +7 -7
  191. package/dist/compiler/usd-physics.js +4 -4
  192. package/dist/compiler/visionos.cjs +7 -7
  193. package/dist/compiler/visionos.js +6 -6
  194. package/dist/compiler/vrchat.cjs +7 -7
  195. package/dist/compiler/vrchat.js +5 -5
  196. package/dist/compiler/vrr.cjs +7 -7
  197. package/dist/compiler/vrr.js +5 -5
  198. package/dist/compiler/wasm.cjs +10 -10
  199. package/dist/compiler/wasm.js +5 -5
  200. package/dist/compiler/webgpu.cjs +6 -6
  201. package/dist/compiler/webgpu.js +5 -5
  202. package/dist/coordinators/index.cjs +27 -10
  203. package/dist/coordinators/index.js +27 -10
  204. package/dist/debugger.cjs +6 -6
  205. package/dist/debugger.js +4 -4
  206. package/dist/entries/scripting.cjs +6 -6
  207. package/dist/entries/scripting.js +2 -2
  208. package/dist/hololand/index.cjs +36 -36
  209. package/dist/hololand/index.js +2 -2
  210. package/dist/index.cjs +1080 -2190
  211. package/dist/index.js +467 -1577
  212. package/dist/math/tropical-spmv.cjs +10 -10
  213. package/dist/math/tropical-spmv.js +1 -1
  214. package/dist/math/vec3.cjs +13 -13
  215. package/dist/math/vec3.js +1 -1
  216. package/dist/parser/NFTMarketplaceTypes.d.ts +191 -0
  217. package/dist/parser.cjs +16 -16
  218. package/dist/parser.js +5 -5
  219. package/dist/reconstruction/index.cjs +37 -37
  220. package/dist/reconstruction/index.js +4 -4
  221. package/dist/runtime.cjs +280 -74
  222. package/dist/runtime.d.ts +10 -1
  223. package/dist/runtime.js +268 -70
  224. package/dist/self-improvement/index.cjs +12 -4
  225. package/dist/self-improvement/index.js +12 -4
  226. package/dist/{src-HCCCSYP7.js → src-J6CM4AUR.js} +91 -33
  227. package/dist/{src-4ROC227P.cjs → src-PT2FERDV.cjs} +93 -35
  228. package/dist/testing.cjs +5 -5
  229. package/dist/testing.js +1 -1
  230. package/dist/traits/botanical-lotus.cjs +52 -48
  231. package/dist/traits/botanical-lotus.js +2 -2
  232. package/dist/traits/engines/index.cjs +39 -39
  233. package/dist/traits/engines/index.d.ts +279 -0
  234. package/dist/traits/engines/index.js +4 -4
  235. package/dist/traits/index.cjs +889 -773
  236. package/dist/traits/index.js +371 -259
  237. package/dist/world/index.cjs +21 -18
  238. package/dist/world/index.js +21 -18
  239. package/dist/world-model/index.cjs +11 -5
  240. package/dist/world-model/index.d.ts +8 -0
  241. package/dist/world-model/index.js +11 -5
  242. package/package.json +75 -69
  243. package/LICENSE +0 -21
  244. package/dist/GLTFPipeline-37FPRVPH.js +0 -17
  245. package/dist/GLTFPipeline-EK3LFJKW.cjs +0 -38
  246. package/dist/HoloScriptPlusParser-WKHRIH6T.cjs +0 -27
  247. package/dist/HoloScriptRuntime-ACDFKVVH.js +0 -10
  248. package/dist/HoloScriptRuntime-ON2OQVEF.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("[ibm-quantum] No energy computed yet. Call computeEnergy or runVQE first.");
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(molecule, this.qmConfig.method, this.qmConfig.basis, "energy", this.qmConfig);
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(molecule, this.qmConfig.method, this.qmConfig.basis, "optimize", this.qmConfig);
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(molecule, this.qmConfig.method, this.qmConfig.basis, "frequency", this.qmConfig);
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("[qm-bridge] Psi4 does not support periodic/band structure calculations. Use quantum-espresso backend.");
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("[qm-bridge] Psi4 does not support periodic/materials DFT. Use quantum-espresso backend.");
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(molecule, this.qmConfig.method, this.qmConfig.basis, "nmr", this.qmConfig);
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("[qm-bridge] Psi4 does not support semi-empirical methods. Use tblite backend.");
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("[qm-bridge] Reactant/product atom counts must match for transition state search.");
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("[qm-bridge] Quantum ESPRESSO does not support molecular energy calculations. Use psi4 backend.");
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("[qm-bridge] Quantum ESPRESSO does not support molecular geometry optimization. Use psi4 backend.");
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("[qm-bridge] Quantum ESPRESSO does not support molecular vibrational analysis. Use psi4 backend.");
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(crystal, this.qmConfig.method, this.qmConfig);
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("[qm-bridge] Quantum ESPRESSO does not support molecular dipole calculations. Use psi4 backend.");
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(crystal, this.qmConfig.method, this.qmConfig);
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("[qm-bridge] Quantum ESPRESSO does not support semi-empirical. Use tblite backend.");
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("[qm-bridge] Quantum ESPRESSO does not support NEB/TS search. Use psi4 backend.");
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("[qm-bridge] TBLite vibrational analysis not yet implemented (stage 2). Use psi4 for accurate frequencies.");
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("[qm-bridge] TBLite does not support band structure calculations. Use quantum-espresso backend.");
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("[qm-bridge] TBLite does not support periodic/materials DFT. Use quantum-espresso backend.");
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("[pyscf] NMR GIAO is not a primary target for PySCF backend. Use psi4 backend.");
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("[pyscf] Reactant/product atom counts must match for transition state search.");
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
- Math.min(...raw.dos_energies ?? [0]),
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-HCCCSYP7.js.map
2073
- //# sourceMappingURL=src-HCCCSYP7.js.map
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("[ibm-quantum] No energy computed yet. Call computeEnergy or runVQE first.");
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-4ROC227P.cjs', document.baseURI).href))).pathname;
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(molecule, this.qmConfig.method, this.qmConfig.basis, "energy", this.qmConfig);
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(molecule, this.qmConfig.method, this.qmConfig.basis, "optimize", this.qmConfig);
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(molecule, this.qmConfig.method, this.qmConfig.basis, "frequency", this.qmConfig);
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("[qm-bridge] Psi4 does not support periodic/band structure calculations. Use quantum-espresso backend.");
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("[qm-bridge] Psi4 does not support periodic/materials DFT. Use quantum-espresso backend.");
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(molecule, this.qmConfig.method, this.qmConfig.basis, "nmr", this.qmConfig);
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("[qm-bridge] Psi4 does not support semi-empirical methods. Use tblite backend.");
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("[qm-bridge] Reactant/product atom counts must match for transition state search.");
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("[qm-bridge] Quantum ESPRESSO does not support molecular energy calculations. Use psi4 backend.");
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("[qm-bridge] Quantum ESPRESSO does not support molecular geometry optimization. Use psi4 backend.");
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("[qm-bridge] Quantum ESPRESSO does not support molecular vibrational analysis. Use psi4 backend.");
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(crystal, this.qmConfig.method, this.qmConfig);
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("[qm-bridge] Quantum ESPRESSO does not support molecular dipole calculations. Use psi4 backend.");
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(crystal, this.qmConfig.method, this.qmConfig);
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("[qm-bridge] Quantum ESPRESSO does not support semi-empirical. Use tblite backend.");
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("[qm-bridge] Quantum ESPRESSO does not support NEB/TS search. Use psi4 backend.");
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("[qm-bridge] TBLite vibrational analysis not yet implemented (stage 2). Use psi4 for accurate frequencies.");
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("[qm-bridge] TBLite does not support band structure calculations. Use quantum-espresso backend.");
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("[qm-bridge] TBLite does not support periodic/materials DFT. Use quantum-espresso backend.");
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("[pyscf] NMR GIAO is not a primary target for PySCF backend. Use psi4 backend.");
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("[pyscf] Reactant/product atom counts must match for transition state search.");
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
- Math.min(...raw.dos_energies ?? [0]),
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-4ROC227P.cjs', document.baseURI).href))).pathname;
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-4ROC227P.cjs.map
2094
- //# sourceMappingURL=src-4ROC227P.cjs.map
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 chunkPGANYCAG_cjs = require('./chunk-PGANYCAG.cjs');
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 chunkPGANYCAG_cjs.DeterminismHarness; }
10
+ get: function () { return chunkG25QVBA5_cjs.DeterminismHarness; }
11
11
  });
12
12
  Object.defineProperty(exports, "captureEnvironment", {
13
13
  enumerable: true,
14
- get: function () { return chunkPGANYCAG_cjs.captureEnvironment; }
14
+ get: function () { return chunkG25QVBA5_cjs.captureEnvironment; }
15
15
  });
16
16
  Object.defineProperty(exports, "describeEnvironment", {
17
17
  enumerable: true,
18
- get: function () { return chunkPGANYCAG_cjs.describeEnvironment; }
18
+ get: function () { return chunkG25QVBA5_cjs.describeEnvironment; }
19
19
  });
20
20
  Object.defineProperty(exports, "hashBytes", {
21
21
  enumerable: true,
22
- get: function () { return chunkPGANYCAG_cjs.hashBytes; }
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-NW5G5FBQ.js';
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