Coder Social home page Coder Social logo

Comments (3)

zzpwahaha avatar zzpwahaha commented on July 29, 2024 1

Great!
That solves the problem. Many thanks

from arc-alkali-rydberg-calculator.

zzpwahaha avatar zzpwahaha commented on July 29, 2024

I am assuming the following declaration:
defineBasis(n0, l0, j0, mj0, nmin, nmax, lmax, progressOutput=False)

from arc-alkali-rydberg-calculator.

nikolasibalic avatar nikolasibalic commented on July 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.