BBN-Q / QGL.jl

A performance orientated QGL compiler.
Apache License 2.0
12 stars 5 forks source link

Can't write on channel config file #11

Closed dieris closed 6 years ago

dieris commented 7 years ago

It looks like the json file remains open, as I'm not able to overwrite it while the kernel is active

caryan commented 7 years ago

Hmmm... I can't reproduce this. Maybe it's a Windows thing? I can open a Julia prompt

julia> using QGL

julia> q1 = Qubit("q1")
q1

julia> q1.shape_params
Dict{Symbol,Any} with 7 entries:
  :length         => 2.0e-8
  :sigma          => 5.0e-9
  :cutoff         => 2
  :drag_scaling   => 0
  :piAmp          => 1.0
  :pi2Amp         => 0.5
  :shape_function => QGL.PulseShapes.gaussian

Then open ExpSettingsGui from PyQlab and change q1's length save the channel config file then back in the same Julia REPL:

julia> q1 = Qubit("q1")
q1

julia> q1.shape_params
Dict{Symbol,Any} with 7 entries:
  :length         => 3.0e-8
  :sigma          => 5.0e-9
  :cutoff         => 2
  :drag_scaling   => 0
  :piAmp          => 1.0
  :pi2Amp         => 0.5
  :shape_function => QGL.PulseShapes.gaussian

julia> 
dieris commented 6 years ago

No json file anymore. Not encountered yet with yaml. But see https://github.com/BBN-Q/QGL.jl/issues/30