{"id":32157530,"url":"https://github.com/ashtonsbradley/quantumfluidspectra.jl","last_synced_at":"2025-10-21T12:50:34.625Z","repository":{"id":45489964,"uuid":"423674109","full_name":"AshtonSBradley/QuantumFluidSpectra.jl","owner":"AshtonSBradley","description":"Fast, accurate, and flexible spectral analysis for compressible quantum fluids","archived":false,"fork":false,"pushed_at":"2025-09-17T09:56:55.000Z","size":5496,"stargazers_count":4,"open_issues_count":2,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-17T11:41:57.987Z","etag":null,"topics":["correlations","julia","quantum-fluids","spectral-analysis"],"latest_commit_sha":null,"homepage":"","language":"Julia","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AshtonSBradley.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"citation.bib","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-11-02T01:50:55.000Z","updated_at":"2025-09-17T09:56:58.000Z","dependencies_parsed_at":"2024-04-17T23:32:38.181Z","dependency_job_id":"dd4fe0d2-5df7-49d9-8259-211bc18a1171","html_url":"https://github.com/AshtonSBradley/QuantumFluidSpectra.jl","commit_stats":{"total_commits":65,"total_committers":2,"mean_commits":32.5,"dds":0.03076923076923077,"last_synced_commit":"ac1e344aec7afc60c6e2235798f63d852e225383"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/AshtonSBradley/QuantumFluidSpectra.jl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AshtonSBradley%2FQuantumFluidSpectra.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AshtonSBradley%2FQuantumFluidSpectra.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AshtonSBradley%2FQuantumFluidSpectra.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AshtonSBradley%2FQuantumFluidSpectra.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AshtonSBradley","download_url":"https://codeload.github.com/AshtonSBradley/QuantumFluidSpectra.jl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AshtonSBradley%2FQuantumFluidSpectra.jl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280264174,"owners_count":26300771,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-21T02:00:06.614Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["correlations","julia","quantum-fluids","spectral-analysis"],"created_at":"2025-10-21T12:50:33.253Z","updated_at":"2025-10-21T12:50:34.620Z","avatar_url":"https://github.com/AshtonSBradley.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"# QuantumFluidSpectra.jl\n\n\u003c!-- [![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://AshtonSBradley.github.io/QuantumFluidSpectra.jl/stable)\n[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://AshtonSBradley.github.io/QuantumFluidSpectra.jl/dev) --\u003e\n[![Build Status](https://github.com/AshtonSBradley/QuantumFluidSpectra.jl/workflows/CI/badge.svg)](https://github.com/AshtonSBradley/QuantumFluidSpectra.jl/actions)\n[![Coverage](https://codecov.io/gh/AshtonSBradley/QuantumFluidSpectra.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/AshtonSBradley/QuantumFluidSpectra.jl)\n\nThis package provides methods to calculate energy spectra of compressible quantum fluids described by a wavefunction, including dilute-gas Bose-Einstein condensates, polariton BEC, and quantum fluids of light. \n\n\nFast, accurate, and flexible spectral analysis provides a wealth of information about nonlinear quantum fluid dynamics. \n\nWe rely on Fourier spectral methods throughout. The user provides a wavefunction and minimal information about the spatial domain. \n\n## Install\n\n```julia\njulia\u003e ]add QuantumFluidSpectra\n```\nThe setup is described below. \n\n\u003cdetails\u003e\u003csummary\u003e\u003cb\u003eCreate Field\u003c/b\u003e\u003c/summary\u003e\n\n```julia\n# Create arrays including `x` and `k` grids\n\n    n = 100\n    L = (1,1)\n    N = (n,n)\n    X,K,dX,dK = xk_arrays(L,N) # setup domain\n```\n```julia\n# make a test field\n    ktest = K[1][2] # pick one of the `k` values\n    ψ = @. exp(im*ktest*X[1]*one.(X[2]'))\n    psi = Psi(ψ,X,K) # make field object with required arrays.\n```\n\u003c/details\u003e\n\u003cdetails\u003e\u003csummary\u003e\u003cb\u003ePower spectra and correlations\u003c/b\u003e\u003c/summary\u003e\nTo evaluate the incompressible power spectral density on a particular k grid:\n    \n```julia \nk = LinRange(0.05,10,300) # can be anything\nεki = incompressible_spectrum(k,psi)\n```\n    \nThe (angle-averaged) two-point correlator of the incompressible velocity field may then be calculated by \n```\nr = LinRange(0,10,300) # can be anything\ngi = gv(r,k,εki) # pass k vals on which εki is defined\n```\nSee the citation below for details. \n\u003c/details\u003e\n\n## Example: central vortex in a 2D Bose-Einstein condensate\nFor creation script, see `/example_figure/test_2Dtrap_vortex.jl`.\n\n\u003cimg src=\"/example_figure/central_vortex.png\" width=\"600\"\u003e\n\nto reproduce Figure 3(a) of [https://arxiv.org/abs/2112.04012](https://arxiv.org/abs/2112.04012}).\n\n# Citation\nIf you use `QuantumFluidSpectra.jl` please cite the paper\n\n```bib\n@article{PhysRevA.106.043322,\n  title = {Spectral analysis for compressible quantum fluids},\n  author = {Bradley, Ashton S. and Kumar, R. Kishor and Pal, Sukla and Yu, Xiaoquan},\n  journal = {Phys. Rev. A},\n  volume = {106},\n  issue = {4},\n  pages = {043322},\n  numpages = {15},\n  year = {2022},\n  month = {Oct},\n  publisher = {American Physical Society},\n  doi = {10.1103/PhysRevA.106.043322},\n  url = {https://link.aps.org/doi/10.1103/PhysRevA.106.043322}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashtonsbradley%2Fquantumfluidspectra.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fashtonsbradley%2Fquantumfluidspectra.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashtonsbradley%2Fquantumfluidspectra.jl/lists"}