Skip to content

Commit

Permalink
dependency issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Jue-Xu committed Aug 2, 2024
1 parent 1113567 commit 2a027f7
Show file tree
Hide file tree
Showing 4 changed files with 117 additions and 33 deletions.
8 changes: 4 additions & 4 deletions quantum_simulation_recipe/plot_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def set_color_cycle(color_cycle, alpha=0.3, mfc=False, edgecolor=False):
if edgecolor:
colors = mpl.cycler(color=color_cycle, markeredgecolor=color_cycle)
else:
colors = mpl.cycler(color=color_cycle)
colors = mpl.cycler(color=color_cycle, markeredgecolor=['k']*len(color_cycle))
mpl.rc('axes', prop_cycle=colors)

default_color_cycle = ["#B65655FF", "#5471abFF", "#6aa66eFF", "#A66E6AFF"]
Expand Down Expand Up @@ -170,14 +170,14 @@ def ax_set_text(ax, x_label, y_label, title=None, legend='best', xticks=None, yt
# else:
# plt.plot(x, y, marker, label=label, linewidth=linewidth, markeredgecolor=markeredgecolor, markeredgewidth=0.5, alpha=alpha)

def plot_evo(ax, t_list, y_list, marker, color='', title='', xlabel='', ylabel='', label='', markersize=10, markeredgewidth=1.5, inset=False):
def plot_evo(ax, t_list, y_list, marker, color='', title='', xlabel='', ylabel='', label='', markersize=10, markeredgewidth=1.5, lw=1.5, inset=False):
if color == '':
ax.plot(t_list, y_list, marker, label=label, markersize=markersize, markeredgewidth=markeredgewidth)
ax.plot(t_list, y_list, marker, label=label, markersize=markersize, markeredgewidth=markeredgewidth, linewidth=lw)
# ax.plot(t_list, y_list, '-', markersize=5)
# ax.plot(t_list, y_list, 'o', label=label, markersize=5)
# ax.plot(t_list, y_list, marker, label=label, markeredgecolor='k', markeredgewidth=0.4, markersize=5)
else:
ax.plot(t_list, y_list, marker, color=color, label=label, markeredgecolor=color, markeredgewidth=markeredgewidth, markersize=markersize, mfc=lighten_color(color, 0.3))
ax.plot(t_list, y_list, marker, color=color, label=label, markeredgecolor=color, markeredgewidth=markeredgewidth, markersize=markersize, linewidth=lw, mfc=lighten_color(color, 0.3))
# ax.plot(t_list, y_list, marker, color=color, label=label, markeredgecolor=color, markeredgewidth=0.4, markersize=markersize, mfc=color[:-2]+"80")
if not inset:
ax.set_title(title)
Expand Down
130 changes: 104 additions & 26 deletions quantum_simulation_recipe/test.ipynb

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
jax==0.4.12
matplotlib==3.8.2
numpy==1.23.5
openfermion==1.5.1
openfermionpyscf==0.5
pandas==2.2.2
qiskit==1.0.2
scipy==1.12.0
jax==0.4.12
jaxlib == 0.4.12
colorspace==0.4.4
multiprocess==0.70.16
7 changes: 5 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,16 @@
python_requires=">=3.10",
entry_points={"console_scripts": ["quantum-simulation-recipe = quantum_simulation_recipe.main:main"]},
install_requires=[
"jax == 0.4.12",
"qiskit >= 1.0.2",
"openfermion >= 1.5.1",
"openfermionpyscf >= 0.5",
"matplotlib >= 3.8.2",
"scipy >= 1.12.0",
"numpy >= 1.23.5",
"pandas >= 2.2.2",
"scipy == 1.12.0",
"jax == 0.4.12",
"jaxlib == 0.4.12",
"colorspace==0.4.4",
"multiprocess==0.70.16",
],
)

0 comments on commit 2a027f7

Please sign in to comment.