Open zachparrott opened 4 days ago
Hi Zach! I'm delighted that you're enjoying the package :)
Indeed someone else has also (offline) reported this issue to me, its very strange and I'm not sure where its coming from. I have not been able to independently reproduce it. Somehow pathos does not recognize that scqubits
has been imported as scq
. A quick fix is to replace
result = list(ft.parallel_map(6, sweep_tmon_EJ, EJ_values))
with
result = list(ft.parallel_map(1, sweep_tmon_EJ, EJ_values))
which replaces the parallel map using pathos
to a simple call to python's map
(which only uses a single cpu).
It's worth verifying that installing everything in a clean environment doesn't fix the problem. Run in terminal
conda create --name floquet_test python=3.10
conda activate floquet_test
Edit: you then have two ways of installing the package:
pyproject.toml
file and run in terminal
pip install -e ".[dev]"
pip install git+https://github.com/dkweiss31/floquet
Either way should install all appropriate dependencies. In both cases you can then try copying the code in the demo notebook to a python file called EJ_sweep.py
, and run
python EJ_sweep.py
Either solution works on my end, let me know if it doesn't work for you!
Hi Daniel, thanks for sharing this great package!
I have started playing around with it and hit the following error in the
EJ_sweep.ipynb
example:Looks like scQubits is getting referenced somewhere in the parallelization where it is not defined?