Skip to content

Commit cc997b3

Browse files
committed
transmon added
1 parent 85f9aec commit cc997b3

18 files changed

+6008
-36
lines changed

Meta-VQE.ipynb

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -659,40 +659,6 @@
659659
"plt.legend()\n",
660660
"plt.show()"
661661
]
662-
},
663-
{
664-
"cell_type": "code",
665-
"execution_count": 15,
666-
"metadata": {},
667-
"outputs": [
668-
{
669-
"name": "stdout",
670-
"output_type": "stream",
671-
"text": [
672-
"Approximate running time\n",
673-
"meta-VQE (test and training): 23.09759492079417 min.\n",
674-
"Standard VQE (training points): 2.973057436943054 min.\n",
675-
"GA-VQE (test and training): 8.279220434029897 min.\n",
676-
"opt-meta-VQE (training points): 7.258111691474914 min.\n",
677-
"opt-GA-VQE(training points): 1.9057298064231873 min.\n"
678-
]
679-
}
680-
],
681-
"source": [
682-
"print(\"Approximate running time\")\n",
683-
"print(\"meta-VQE (test and training): \", ((t1_metaVQE-t0_metaVQE)+(t3_metaVQE-t2_metaVQE)+(t5_metaVQE-t4_metaVQE))/60, \" min.\")\n",
684-
"print(\"Standard VQE (training points): \", (t1_VQE - t0_VQE)/60, \" min.\")\n",
685-
"print(\"GA-VQE (test and training): \", (t1_GAVQE - t0_GAVQE)/60, \" min.\")\n",
686-
"print(\"opt-meta-VQE (training points): \", (t1_optmetaVQE - t0_optmetaVQE)/60, \" min.\")\n",
687-
"print(\"opt-GA-VQE(training points): \", (t1_optGAVQE - t0_optGAVQE)/60, \" min.\")"
688-
]
689-
},
690-
{
691-
"cell_type": "code",
692-
"execution_count": null,
693-
"metadata": {},
694-
"outputs": [],
695-
"source": []
696662
}
697663
],
698664
"metadata": {
@@ -716,4 +682,4 @@
716682
},
717683
"nbformat": 4,
718684
"nbformat_minor": 4
719-
}
685+
}

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ __Content:__
77
* `data` folder: contains all data presented in the main article.
88
* `img` folder: contains the plots of the main article and other plots generated with the available data.
99
* `Meta-VQE` demo: jupyter notebook with the source code used to run the simulations.
10-
* `Molecular-Meta-VQE` demo: An explcit illustration of a non-linear meta-VQE for molecules as described in the article
10+
* `Molecular-Meta-VQE` demo: An explicit illustration of a non-linear meta-VQE for molecules as described in the article.
11+
* `transmon`: main code to obtain the results for the single-transmon simulation.
1112

1213
__Dependencies:__
1314

data/transmon/nqub_4/nlay_[1, 1]/VQE_seed_matterlab.txt

Lines changed: 3660 additions & 0 deletions
Large diffs are not rendered by default.

data/transmon/nqub_4/nlay_[1, 1]/VQE_smart_seed_matterlab.txt

Lines changed: 764 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
0.0 -35.92690523858457 -35.88199652393707 0.044908714647498016
2+
0.05 -34.07145969642001 -34.0294081856864 0.042051510733607245
3+
0.1 -28.702658731842888 -28.669101887690168 0.03355684415272009
4+
0.15000000000000002 -20.401536505491435 -20.38164075581871 0.019895749672723895
5+
0.2 -10.121074125746528 -10.11632501032666 0.004749115419867778
6+
0.25 2.1649348980190553e-15 2.7058937230317603e-06 2.7058937208668254e-06
7+
0.30000000000000004 -10.121074125746553 -10.116396920017799 0.004677205728754075
8+
0.35000000000000003 -20.401536505491435 -20.38444792767864 0.017088577812796046
9+
0.4 -28.702658731842913 -28.67272375412002 0.029934977722891887
10+
0.45 -34.07145969642001 -34.033112329887835 0.038347366532171634
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
0.0 -35.92690523858457 -35.896433099617155 0.03047213896741141
2+
0.05 -34.07145969642001 -34.04782799873543 0.023631697684578512
3+
0.1 -28.702658731842888 -28.683800218768962 0.018858513073926275
4+
0.15000000000000002 -20.401536505491435 -20.389742600892347 0.011793904599088023
5+
0.2 -10.121074125746528 -10.117689758104316 0.0033843676422122826
6+
0.25 2.1649348980190553e-15 7.47219798084009e-05 7.472197980623596e-05
7+
0.30000000000000004 -10.121074125746553 -10.11715026918629 0.0039238565602630615
8+
0.35000000000000003 -20.401536505491435 -20.38821819698309 0.013318308508345922
9+
0.4 -28.702658731842913 -28.683202181050458 0.01945655079245512
10+
0.45 -34.07145969642001 -34.04791569257664 0.02354400384336941
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
qubits = 4
2+
layers [encoding, variational circuit] = [1, 1]
3+
training points = 10
4+
test points = 50
5+
equispaced train and test = True , True
6+
Optimization options: BFGS , 2-point , qulacs , lr = 0.01 , other: {'finite_diff_rel_step': 0.0001, 'maxiter': 200}

data/transmon/nqub_4/nlay_[1, 1]/metaVQE_seed_matterlab.txt

Lines changed: 76 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
0.0 -35.92690523858457 -35.82449096634997 0.10241427223459709
2+
0.010204081632653073 -35.848964191238494 -35.74755772157404 0.10140646966445388
3+
0.020408163265306145 -35.615487507806805 -35.51706722494039 0.0984202828664138
4+
0.030612244897959162 -35.227513525745486 -35.13396652118545 0.09354700456003684
5+
0.040816326530612235 -34.686769373078256 -34.59982975711645 0.08693961596180344
6+
0.05102040816326531 -33.995665913002256 -33.916851713407524 0.07881419959473135
7+
0.06122448979591838 -33.157290867690044 -33.087838786118716 0.06945208157132754
8+
0.07142857142857145 -32.17540034513707 -32.116197454994975 0.05920289014209601
9+
0.08163265306122447 -31.054409093650243 -31.005920285930298 0.048488807719945015
10+
0.09183673469387754 -29.799379946433767 -29.761569525113252 0.03781042132051482
11+
0.10204081632653061 -28.416013115851737 -28.388258352268135 0.027754763583601516
12+
0.11224489795918369 -26.910636289940133 -26.891629870022694 0.019006419917438677
13+
0.12244897959183676 -25.29019693546201 -25.277833915737403 0.012363019724606517
14+
0.13265306122448978 -23.562258933977056 -23.553501791079324 0.008757142897731995
15+
0.14285714285714285 -21.735006876928882 -21.725719013177997 0.00928786375088464
16+
0.15306122448979592 -19.817263423245144 -19.801996199332528 0.015267223912616146
17+
0.163265306122449 -17.818528895614747 -17.790238204907 0.028290690707748922
18+
0.17346938775510207 -15.749059531922027 -15.698711641229853 0.0503478906921746
19+
0.18367346938775508 -13.620015654142277 -13.53601090696938 0.08400474717289619
20+
0.19387755102040816 -11.4437440425093 -11.311022872566221 0.13272116994307837
21+
0.20408163265306123 -9.234340309466463 -9.032890362837993 0.20144994662847004
22+
0.2142857142857143 -7.008868090969508 -6.7109745878100675 0.2978935031594405
23+
0.22448979591836737 -4.79040994334094 -4.354816676148201 0.43559326719273894
24+
0.2346938775510204 -2.6179319923104285 -1.9740984692565722 0.6438335230538563
25+
0.24489795918367346 -0.6066983959832886 0.42139726285758233 1.028095658840871
26+
0.25510204081632654 -0.6066983959832845 0.42140677405909704 1.0281051700423816
27+
0.26530612244897955 -2.6179319923104276 -1.974072767419537 0.6438592248908905
28+
0.2755102040816326 -4.790409943340921 -4.354778529171786 0.4356314141691353
29+
0.2857142857142857 -7.008868090969495 -6.710927678340806 0.2979404126286891
30+
0.29591836734693877 -9.234340309466461 -9.032838280594767 0.201502028871694
31+
0.30612244897959184 -11.443744042509273 -11.310969084805688 0.13277495770358527
32+
0.3163265306122449 -13.620015654142245 -13.535958729671885 0.08405692447036017
33+
0.326530612244898 -15.749059531922054 -15.698664211178588 0.05039532074346553
34+
0.33673469387755106 -17.81852889561477 -17.79019845282898 0.028330442785787113
35+
0.3469387755102041 -19.81726342324521 -19.801966824264355 0.01529659898085356
36+
0.35714285714285715 -21.735006876928924 -21.725702458212762 0.009304418716162388
37+
0.36734693877551017 -23.56225893397708 -23.553500220644203 0.008758713332877477
38+
0.37755102040816324 -25.29019693546201 -25.27784919454322 0.012347740918791317
39+
0.3877551020408163 -26.910636289940133 -26.89166354381824 0.018972746121892925
40+
0.3979591836734694 -28.416013115851737 -28.388311630522615 0.02770148532912131
41+
0.40816326530612246 -29.799379946433703 -29.761643265739664 0.03773668069403868
42+
0.41836734693877553 -31.054409093650243 -31.006014982152884 0.04839411149735895
43+
0.4285714285714286 -32.17540034513707 -32.11631322445135 0.05908712068571731
44+
0.4387755102040816 -33.15729086769003 -33.08797536227626 0.06931550541376907
45+
0.4489795918367347 -33.995665913002256 -33.917008439361716 0.07865747364053988
46+
0.45918367346938777 -34.686769373078256 -34.60000558182512 0.0867637912531336
47+
0.46938775510204084 -35.227513525745515 -35.13415999818084 0.0933535275646733
48+
0.47959183673469385 -35.615487507806805 -35.517276513547394 0.09821099425941071
49+
0.4897959183673469 -35.848964191238494 -35.74778059064956 0.10118360058893217
50+
0.5 -35.92690523858457 -35.82472480054469 0.10218043803987342
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
0.5 -35.92690523858457 -35.82472480054469 0.10218043803987342
2+
0.4444444444444444 -33.641028533508056 -33.56638963505135 0.0746388984567048
3+
0.3888888888888889 -27.08371487623465 -27.063860504201426 0.019854372033226042
4+
0.33333333333333337 -17.136034628281596 -17.10146523099046 0.03456939729113628
5+
0.2777777777777778 -5.281219468241639 -4.88083214451793 0.40038732372370944
6+
0.2222222222222222 -5.281219468241654 -4.880872554164033 0.4003469140776206
7+
0.16666666666666669 -17.136034628281546 -17.101507854240303 0.03452677404124316
8+
0.1111111111111111 -27.08371487623466 -27.06382470555389 0.019890170680767483
9+
0.05555555555555558 -33.641028533508056 -33.566241758290374 0.07478677521768162
10+
0.0 -35.92690523858457 -35.82449096634997 0.10241427223459709

0 commit comments

Comments
 (0)