JoeyDelp / JoSIM

Superconductor Circuit Simulator
MIT License
78 stars 35 forks source link

Simulation with noise #74

Closed fubrochure closed 2 years ago

fubrochure commented 2 years ago

Hello

I am trying to use JoSIM to simulate Random Number Generator which relies on thermal noise. I noticed that JoSIM use rand() to introduce Gaussian random number in noise source. Does it mean that if I run simulation with a long period, it will show repeated behavior pattern in circuit since rand() gives a pseudo random number.

Besides, is it possible to run simulation with process variation in JoSIM?

Thanks

JoeyDelp commented 2 years ago

Yes, unfortunately due to the way rand() works there will be some repetition in the random numbers. I will work on increasing the range of numbers available to rand(). Coupling this to the simulation length (above a certain limit) will probably solve this issue.

Regarding process variation. Please specify what you mean by process variation. JoSIM supports variability through the .spread command, allowing parameters to randomly vary within a range to account for process variation and tolerances.

fubrochure commented 2 years ago

Thanks for your reply. I want to explore how parameter varies in a small range in circuit would affect the result. I think spread is what I need. I must miss it when I read the document. Next time I would read it more carefully.

Best wishes