Comments (3)
Great!
That solves the problem. Many thanks
from arc-alkali-rydberg-calculator.
I am assuming the following declaration:
defineBasis(n0, l0, j0, mj0, nmin, nmax, lmax, progressOutput=False)
from arc-alkali-rydberg-calculator.
Hi @zzpwahaha
I tested the following code:
from arc import *
atom = Rubidium87()
calc = StarkMap(atom)
calc.defineBasis(50, 49, 49.5, 49.5, 50, 53, 54, progressOutput=True, debugOutput=True)
and I get as output:
Found 9 states.
[[50, 49, 49.5, 49.5], [51, 49, 49.5, 49.5], [51, 50, 49.5, 49.5], [51, 50, 50.5, 49.5], [52, 49, 49.5, 49.5], [52, 50, 49.5, 49.5], [52, 50, 50.5, 49.5], [52, 51, 50.5, 49.5], [52, 51, 51.5, 49.5]]
Index of initial state
0
Initial state =
[50, 49, 49.5, 49.5]
Generating matrix...
100%
[[-1.31592848e+03 0.00000000e+00 -3.19806083e-04 3.19806084e-03
0.00000000e+00 3.16562978e-05 -3.16562977e-04 0.00000000e+00
0.00000000e+00]
[ 0.00000000e+00 -1.26482937e+03 -9.70974630e-05 9.70974536e-04
0.00000000e+00 -3.26254355e-04 3.26254356e-03 0.00000000e+00
0.00000000e+00]
[-3.19806083e-04 -9.70974630e-05 -1.26482937e+03 0.00000000e+00
-2.53682680e-06 0.00000000e+00 0.00000000e+00 3.32662029e-03
0.00000000e+00]
[ 3.19806084e-03 9.70974536e-04 0.00000000e+00 -1.26482937e+03
2.53683375e-05 0.00000000e+00 0.00000000e+00 -3.19743113e-04
4.63192952e-03]
[ 0.00000000e+00 0.00000000e+00 -2.53682680e-06 2.53683375e-05
-1.21664985e+03 -1.40910987e-04 1.40910980e-03 0.00000000e+00
0.00000000e+00]
[ 3.16562978e-05 -3.26254355e-04 0.00000000e+00 0.00000000e+00
-1.40910987e-04 -1.21664985e+03 0.00000000e+00 9.99669035e-04
0.00000000e+00]
[-3.16562977e-04 3.26254356e-03 0.00000000e+00 0.00000000e+00
1.40910980e-03 0.00000000e+00 -1.21664985e+03 -9.60846938e-05
1.39203722e-03]
[ 0.00000000e+00 0.00000000e+00 3.32662029e-03 -3.19743113e-04
0.00000000e+00 9.99669035e-04 -9.60846938e-05 -1.21664985e+03
0.00000000e+00]
[ 0.00000000e+00 0.00000000e+00 0.00000000e+00 4.63192952e-03
0.00000000e+00 0.00000000e+00 1.39203722e-03 0.00000000e+00
-1.21664985e+03]]
[ 0.00000000e+00 0.00000000e+00 -3.19806083e-04 3.19806084e-03
0.00000000e+00 3.16562978e-05 -3.16562977e-04 0.00000000e+00
0.00000000e+00]
which I think is fine.
If you get infinity somewhere instead in above output, I think that might have to do with the earlier bug you reported (#39 ). What happened is probably the following: you tried to calculate this StarkMap with the old code before. Old code produce bad result for that Wigner3j result, but it saved intermediate results in hidden folder in ~/.arc-data
and now the new code is using that bad result producing infinity.
To solve this please delete hidden folder .arc-data
from your home directory. This will remove intermediate cache that you generated before. And then run code again. It should be fine now.
Let me know if this solves this problem.
Regarding definition of getAnglar()
it is method of _EFieldCoupling
in alkali_atom_functions.py
from arc-alkali-rydberg-calculator.
Related Issues (20)
- Problem with hyperfine state computations in 39 K HOT 1
- Query about the tranistion wavelength's calculated by the ARC package. HOT 2
- AC Stark Maps HOT 4
- getRadialMatrixElement() may return wrong results for float input parameters
- Add helper function to clarify citations
- Add flake8 linter and black formatter in CI checks
- Missing magic wavelength snippet in docs HOT 1
- AttributeError: module 'numpy' has no attribute 'int'. HOT 2
- Quantum defect for G9/2 states in Caesium return 0 HOT 2
- MacOS Errno 66 on pip install HOT 1
- Cs NIST level data do not match current NIST values HOT 1
- Two graphs plotted in plot2D function HOT 1
- Intensity Calculation: Is "wa" is a beam radius or beam diameter? HOT 2
- Wigner 6j for non-integer sum triads HOT 1
- Breit Rabi isn't outputting the right F and mf states HOT 2
- pull request 155 (approved) did not update `arc.alkali_atom_functions.__arc_data_version__` HOT 1
- Loading atom parameters doesn't work HOT 3
- Transition frequency mismatch of Rb87 D2 line HOT 1
- Code crashes with "interactionsUpTo=2" HOT 4
- Modernizing and extending the build backend HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arc-alkali-rydberg-calculator.