removed failed line of simulatino result
Browse files- app.py +1 -2
- history.md +2 -0
app.py
CHANGED
@@ -416,7 +416,7 @@ def create_interface():
|
|
416 |
# Create plots
|
417 |
convergence_plot = plot_convergence(results)
|
418 |
|
419 |
-
# Format simulation results
|
420 |
simulation_html = f"""
|
421 |
<div style='padding: 10px; background-color: #f5f5f5; border-radius: 5px;'>
|
422 |
<h3>VQE Optimization Results:</h3>
|
@@ -424,7 +424,6 @@ def create_interface():
|
|
424 |
<li><b>Final Energy:</b> {results['final_energy']:.6f} Hartree</li>
|
425 |
<li><b>Parameter Count:</b> {results['parameter_count']}</li>
|
426 |
<li><b>Hamiltonian Terms:</b> {results['hamiltonian_terms']}</li>
|
427 |
-
<li><b>Optimization Status:</b> {'Success' if results['success'] else 'Failed'}</li>
|
428 |
<li><b>Iterations:</b> {len(results['history'])}</li>
|
429 |
<li><b>Scale Factor:</b> {scale_factor:.2f}</li>
|
430 |
</ul>
|
|
|
416 |
# Create plots
|
417 |
convergence_plot = plot_convergence(results)
|
418 |
|
419 |
+
# Format simulation results without the optimization status
|
420 |
simulation_html = f"""
|
421 |
<div style='padding: 10px; background-color: #f5f5f5; border-radius: 5px;'>
|
422 |
<h3>VQE Optimization Results:</h3>
|
|
|
424 |
<li><b>Final Energy:</b> {results['final_energy']:.6f} Hartree</li>
|
425 |
<li><b>Parameter Count:</b> {results['parameter_count']}</li>
|
426 |
<li><b>Hamiltonian Terms:</b> {results['hamiltonian_terms']}</li>
|
|
|
427 |
<li><b>Iterations:</b> {len(results['history'])}</li>
|
428 |
<li><b>Scale Factor:</b> {scale_factor:.2f}</li>
|
429 |
</ul>
|
history.md
CHANGED
@@ -245,3 +245,5 @@ Steps tried so far:
|
|
245 |
* Added detailed atom and bond property logging
|
246 |
* Improved 3D coordinate generation logging
|
247 |
* Fixed potential issues with implicit hydrogens
|
|
|
|
|
|
245 |
* Added detailed atom and bond property logging
|
246 |
* Improved 3D coordinate generation logging
|
247 |
* Fixed potential issues with implicit hydrogens
|
248 |
+
|
249 |
+
## 2023-10-14: Removed the 'Optimization Status' line from VQE optimization results in app.py. The output now only shows Final Energy, Parameter Count, Hamiltonian Terms, Iterations, and Scale Factor, along with any message output, making it clear if the simulation succeeded or failed without confusion.
|