-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig--new.yml
65 lines (60 loc) · 4.46 KB
/
config--new.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
run: "redundant"
# System
nqubits: 4
state: "dmatrix"
# Target Hamiltonian
observable:
def: "ising"
coefficients:
cn: [0.5, 0.5, 0.5]
bn: [1.0, 1.0, 1.0, 1.0]
r: 1
# Output
output:
file_name_prefix: "vqe_vals_q7_l30_n2"
fig_dpi: 100
# (1) Variational quantum eigensolver config
vqe:
# Optimization
optimization:
status: True
algorithm: "SLSQP"
iteration: 3
constraint: False
# Circuit config
ansatz:
draw: True # Draw the circuit
type: "xy"
layer: 10
gateset: 1
ugate:
coefficients:
cn: [0.5, 0.5, 0.5]
bn: [0, 0, 0, 0]
r: 0
time:
min: 0.0
max: 10.0
noise:
status: True
value: [0.0001, 0.0001, 0.0001, 0.0001] # Noise probabilities for [r, cz, u, y] gates.
# Initial parameters for the ansatz
init_param: [0.9948305979193087,1.4785485982223003,2.750331569401377,2.7873009139473233,4.548345816603732,4.739451381515618,5.98107303501933,8.240597430712315,8.509080511806726,9.334462588346142,0.8777134154724197,-0.42309956079044964,-0.5273805998092839,0.7571394099163554,-0.07016362118621498,0.054656468221666185,-0.5054016297035809,0.3610545654490694,0.3326974314349747,-0.05411888045900715,0.36365905499734563,-0.025057174243215775,0.48447870840514096,0.018559605377598987,0.08293211940239445,0.5731812789063527,0.7232784468787622,-0.5477336872172061,0.3880807011913566,0.43691126899044835,0.17209071974824225,0.7329352361533525,0.7293359865725395,0.8499763592253753,0.34559765247992524,-0.7601509117730452,0.7397569049995103,0.6718548615979578,0.2038063978298197,0.7114865460406055,0.2495377047530384,0.08611576463890061,-1.049520062716643,-0.46302117984995395,-0.5418659348799302,0.5495258937589954,-1.7281944279279984,1.4836668004369744,1.3088768292411834,0.7204165559159973]
# (2) Redundant cicuit
# Identity factor for r, U and Y gates
identity_factors: [
[0, 0, 0], [1, 0, 0], [1, 1, 0], [1, 1, 1], [2, 0, 0], [2, 1, 0], [2, 1, 1], [2, 2, 0], [2, 2, 1], [2, 2, 2],
[3, 0, 0], [3, 1, 0], [3, 1, 1], [3, 2, 0], [3, 2, 1], [3, 2, 2], [3, 3, 0], [3, 3, 1], [3, 3, 2],
[3, 3, 3], [4, 0, 0], [4, 1, 0], [4, 1, 1], [4, 2, 0], [4, 2, 1], [4, 2, 2], [4, 3, 0], [4, 3, 1],
[4, 3, 2], [4, 3, 3], [4, 4, 0], [4, 4, 1], [4, 4, 2], [4, 4, 3], [4, 4, 4], [5, 0, 0], [5, 1, 0],
[5, 1, 1], [5, 2, 0], [5, 2, 1], [5, 2, 2], [5, 3, 0], [5, 3, 1], [5, 3, 2], [5, 3, 3], [5, 4, 0],
[5, 4, 1], [5, 4, 2], [5, 4, 3], [5, 4, 4], [5, 5, 0], [5, 5, 1], [5, 5, 2], [5, 5, 3], [5, 5, 4], [5, 8, 1]
]
# (3) Zero noise extrapolation config
zne:
method: "polynomial"
degree: 3
sampling: "default-10" # Keep this value 'default', I have no idea why I added this
data_points: [
[4, 1, 0, -4.723851323468831], [12, 1, 0, -4.692053695988651], [12, 3, 2, -4.6478568728769725], [12, 3, 6, -4.618423612127154], [20, 1, 0, -4.660484836914591], [20, 3, 2, -4.616595207883771], [20, 3, 6, -4.58736546724807], [20, 5, 2, -4.573133705228598], [20, 5, 6, -4.515434506341772], [20, 5, 10, -4.458492092062487], [28, 1, 0, -4.629143023627593], [28, 3, 2, -4.585558322132977], [28, 3, 6, -4.556530607289517], [28, 5, 2, -4.542398682870839], [28, 5, 6, -4.485098127362345], [28, 5, 10, -4.428548993871686], [28, 7, 2, -4.499659824476661], [28, 7, 6, -4.414825777270838], [28, 7, 10, -4.331654049513614], [28, 7, 14, -4.250110895547011], [36, 1, 0, -4.598026546910509], [36, 3, 2, -4.5547445238307045], [36, 3, 6, -4.52591735189181], [36, 5, 2, -4.511884521974112], [36, 5, 6, -4.4549796846722325], [36, 5, 10, -4.398820946917251], [36, 7, 2, -4.46944229144448], [36, 7, 6, -4.385193883482008], [36, 7, 10, -4.302596025856678], [36, 7, 14, -4.221615217528113], [36, 9, 2, -4.427413626413868], [36, 9, 6, -4.316540626515623], [36, 9, 10, -4.208552746302337], [36, 9, 14, -4.103372224274694], [36, 9, 18, -4.0009234641771645], [44, 1, 0, -4.567133710841246], [44, 3, 2, -4.524152134340129], [44, 3, 6, -4.495524033762184], [44, 5, 2, -4.481589561005636], [44, 5, 6, -4.425077539110334], [44, 5, 10, -4.369306334098133], [44, 7, 2, -4.439441772167154], [44, 7, 6, -4.355774708810219], [44, 7, 10, -4.273746514668238], [44, 7, 14, -4.19332393145585], [44, 9, 2, -4.397704592890521], [44, 9, 6, -4.287596362206664], [44, 9, 10, -4.180352842225341], [44, 9, 14, -4.075896834624746], [44, 9, 18, -3.9741532902924575], [44, 11, 2, -4.3563738915124555], [44, 11, 6, -4.22052365006968], [44, 11, 10, -4.089074571312962], [44, 11, 14, -3.9618790012837857], [44, 11, 18, -3.8387944025347656], [44, 17, 6, -4.025755676682827]
]