qiskit-metal
qiskit-metal copied to clipboard
Bug Report: com_error when running eprd.do_EPR_analysis() in Qiskit Metal tutorial
I'm designing the Transmon using qiskit metal and HFSS following the instructions on:
https://qiskit-community.github.io/qiskit-metal/tut/4-Analysis/4.13-Analyze-transmon-and-resonator.html.
In the EPR section, I use the code:
eprd.do_EPR_analysis()
4a. Perform Hamiltonian spectrum post-analysis, building on mw solutions using EPR
epra = epr.QuantumAnalysis(eprd.data_filename) epra.analyze_all_variations(cos_trunc = 8, fock_trunc = 7)
4b. Report solved results
swp_variable = 'Lj' # suppose we swept an optimetric analysis vs. inductance Lj_alice epra.plot_hamiltonian_results(swp_variable=swp_variable) epra.report_results(swp_variable=swp_variable, numeric=True)
And I constantly get the following error:
com_error Traceback (most recent call last) Cell In[57], line 1 ----> 1 eprd.do_EPR_analysis() 3 # 4a. Perform Hamiltonian spectrum post-analysis, building on mw solutions using EPR 4 epra = epr.QuantumAnalysis(eprd.data_filename)
File ~\anaconda3\envs\qmetal\lib\site-packages\pyEPR\core_distributed_analysis.py:1326, in DistributedAnalysis.do_EPR_analysis(self, variations, modes, append_analysis) 1323 SOL[mode] = sol 1325 # Save -> 1326 self._update_results(variation, Om, Pm, Sm, Qm_coupling, SOL, 1327 freqs_bare_GHz, Qs_bare, Ljs, Cjs, 1328 Pm_cap, I_peak, V_peak, 1329 ansys_energies, 1330 self._hfss_variables[variation]) 1331 self.save() 1333 self._previously_analyzed.add(variation)
File ~\anaconda3\envs\qmetal\lib\site-packages\pyEPR\core_distributed_analysis.py:1376, in DistributedAnalysis._update_results(self, variation, Om, Pm, Sm, Qm_coupling, sols, freqs_bare_GHz, Qs_bare, Ljs, Cjs, Pm_cap, I_peak, V_peak, ansys_energies, _hfss_variables) 1372 self.results[variation]['mesh'] = self.get_mesh_statistics( 1373 variation) #dataframe 1374 self.results[variation]['convergence'] = self.get_convergence( 1375 variation) -> 1376 self.results[variation]['convergence_f_pass'] = self.hfss_report_f_convergence( 1377 variation, save_csv=False)
File ~\anaconda3\envs\qmetal\lib\site-packages\pyEPR\core_distributed_analysis.py:1582, in DistributedAnalysis.hfss_report_f_convergence(self, variation, save_csv) 1579 # Properties of lines 1580 curves = [f"{report_name}:re(Mode({i})):Curve1" for i in range( 1581 1, 1+self.n_modes)] -> 1582 set_property(report, 'Attributes', curves, 'Line Width', 3) 1583 set_property(report, 'Scaling', 1584 f"{report_name}:AxisY1", 'Auto Units', False) 1585 set_property(report, 'Scaling', f"{report_name}:AxisY1", 'Units', 'g')
File ~\anaconda3\envs\qmetal\lib\site-packages\pyEPR\ansys.py:357, in set_property(prop_holder, prop_tab, prop_server, name, value, prop_args) 355 if not isinstance(prop_server, list): 356 prop_server = [prop_server] --> 357 return prop_holder.ChangeProperty([ 358 "NAME:AllTabs", 359 [ 360 "NAME:" + prop_tab, ["NAME:PropServers", *prop_server], 361 [ 362 "NAME:ChangedProps", 363 ["NAME:" + name, "Value:=", value] + (prop_args or []) 364 ] 365 ] 366 ])
File <COMObject GetModule>:2, in ChangeProperty(self, args)
com_error: (-2147352567, 'Exception occurred.', (0, None, None, None, 0, -2147024382), None)
any help?