Skip to content

Instantly share code, notes, and snippets.

@GiggleLiu
Last active February 1, 2021 17:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GiggleLiu/ec7b660a17cae2e814d43eaae10c949e to your computer and use it in GitHub Desktop.
Save GiggleLiu/ec7b660a17cae2e814d43eaae10c949e to your computer and use it in GitHub Desktop.
optimizer:
ip: 127.0.0.1
port: 2000
method: spsa
initial-params: specified
initial-params.random:
seed: 2
p: 5
initial-params.specified:
-
- 29 # t ~ [t-min, t-max]
- 4.0
- 0.0 # phi ~ [0, 1]
- 0.0
-
- 76
- 4.0
- 0.0
- 0.226
-
- 60
- 4.0
- 0.0
- 0.108
-
- 62
- 4.0
- 0.0
- 0.893
-
- 44
- 4.0
- 0.0
- 0.488
t-min: 20 # in unit of `ns`
t-max: 250
t-mask: true
Delta-mask: false
phi-mask: true
# config method specific parameters
method.spsa:
gamma: 0.02
delta: 0.1
method.cmaes:
npopulation: 5
noffsprings: 20
method.mgd:
gamma: 0.5
delta: 0.6
k: 40
A: 2.0
method.bayesian:
kernel: rbf
kernel_params:
- 1.0
- 1.0
noise: 0.1
fit_kernel: false
ξ: 0.1 # exploration factor
propose_niter: 40 # LBFGS iteration for acquisition optimization
propose_nrestart: 5 # number of restart for acquisition optimization
method.adam:
eta: 0.1
beta1: 0.9
beta2: 0.999
method.slinesearch:
alpha0: 0.1
method.adagrad:
eta: 0.1
method.policygrad:
# config automatic differentiation for `adam` and `adagrad`
autodiff: spdiff
autodiff.spdiff: # simultaneous perturbation autodiff
delta-t: 0.05
delta-phi: 0.05
nbatch: 1
autodiff.finitediff:
delta-t: 0.05
delta-phi: 0.05
print-step: 2
client:
print-step: 4
gradient-check-nbatch: 100
maxiter: 1000 # maximum number of iterations
# configure the loss function
loss: gibbs
loss.gibbs:
beta: 0.3
loss.mean:
loss.CVaR:
alpha: 0.2
rydberg:
ip: 127.0.0.1 # NOTE: ip: 192.168.10.10
port-send: 3000
port-get: 3000 # NOTE: 2001
nshots: 50
device: Emulator
graph-source: atom-locations
atom-locations:
file: "Atoms20.dat"
unit-distance: 1.5
random-generate:
seed: 2
natoms: 15 # number of atoms
rho: 1.5 # density of atoms
# backends
emulator:
random-flip: 0.0 # random flip error
misc:
data-folder: ../examples/data
overwrite-files: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment