tequilahub / tequila

A High-Level Abstraction Framework for Quantum Algorithms
MIT License
362 stars 101 forks source link

Custom Jordan Wigner, Visualize #271

Closed Rick0317 closed 4 months ago

Rick0317 commented 1 year ago

Visualization of the qubit hamiltonian with customized connectivity.

Purpose

Networkx

We use the Networkx package.

file_name

For people using Jupyter notebook, the matplotlib should show the figure without error, but for people using cmd, those figures might not show up. If so, we can specify the file_name and save the figures in that path.

As of Feb28, 2023

I might need to modify some of the tests.

kottmanj commented 1 year ago

Hi Rick. This looks good so far. Great commenting! I will need a bit more time to review the code entirely