You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The Bloqade.jl library has a function rydberg_h that has several keyword arguments using unicode characters.
The following bug was discovered where one of those keyword arguments is a U+03D5 phi but at some point juliacall seems to turn that into a U+03C6 phi, causing Julia to complain that theres no function that matches rydberg_h.
A minimal working example would be the following (assuming Bloqade.jl is already installed in the Julia environment):
from juliacall import Main as jl
from juliacall import Pkg as jlPkg
from math import pi
jl.seval("using Bloqade")
atoms = jl.Bloqade.generate_sites(jl.Bloqade.SquareLattice(), 3, 4, scale=4.5)
hamiltonian = jl.Bloqade.rydberg_h(atoms, Ω=4*2*pi, Δ=10*2*pi, ϕ=0.0)
Additional context
I'm testing this in a Jupyter Notebook in VSCode with conda but the bug was originally discovered while being used in Pycharm with conda.
The text was updated successfully, but these errors were encountered:
I suspect this probably has something to do with this python limitation: https://pyjulia.readthedocs.io/en/stable/limitations.html#mismatch-in-valid-set-of-identifiers (not juliacall docs but I could definitely understand the same limitation across the board) in which case, is there a possible workaround without having to rewrite the function with ASCII-only (or at least, Python unicode friendly) keyword arguments?
Affects: JuliaCall
Describe the bug
The Bloqade.jl library has a function
rydberg_h
that has several keyword arguments using unicode characters.The following bug was discovered where one of those keyword arguments is a
U+03D5
phi but at some point juliacall seems to turn that into aU+03C6
phi, causing Julia to complain that theres no function that matchesrydberg_h
.A minimal working example would be the following (assuming
Bloqade.jl
is already installed in the Julia environment):Which produces the following error:
Your system
conda list
juliapkg.status()
Additional context
I'm testing this in a Jupyter Notebook in VSCode with conda but the bug was originally discovered while being used in Pycharm with conda.
The text was updated successfully, but these errors were encountered: