Skip to content

Commit

Permalink
transmon added
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbaCL committed Oct 13, 2020
1 parent 85f9aec commit cc997b3
Show file tree
Hide file tree
Showing 18 changed files with 6,008 additions and 36 deletions.
36 changes: 1 addition & 35 deletions Meta-VQE.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -659,40 +659,6 @@
"plt.legend()\n",
"plt.show()"
]
},
{
"cell_type": "code",
"execution_count": 15,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Approximate running time\n",
"meta-VQE (test and training): 23.09759492079417 min.\n",
"Standard VQE (training points): 2.973057436943054 min.\n",
"GA-VQE (test and training): 8.279220434029897 min.\n",
"opt-meta-VQE (training points): 7.258111691474914 min.\n",
"opt-GA-VQE(training points): 1.9057298064231873 min.\n"
]
}
],
"source": [
"print(\"Approximate running time\")\n",
"print(\"meta-VQE (test and training): \", ((t1_metaVQE-t0_metaVQE)+(t3_metaVQE-t2_metaVQE)+(t5_metaVQE-t4_metaVQE))/60, \" min.\")\n",
"print(\"Standard VQE (training points): \", (t1_VQE - t0_VQE)/60, \" min.\")\n",
"print(\"GA-VQE (test and training): \", (t1_GAVQE - t0_GAVQE)/60, \" min.\")\n",
"print(\"opt-meta-VQE (training points): \", (t1_optmetaVQE - t0_optmetaVQE)/60, \" min.\")\n",
"print(\"opt-GA-VQE(training points): \", (t1_optGAVQE - t0_optGAVQE)/60, \" min.\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand All @@ -716,4 +682,4 @@
},
"nbformat": 4,
"nbformat_minor": 4
}
}
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ __Content:__
* `data` folder: contains all data presented in the main article.
* `img` folder: contains the plots of the main article and other plots generated with the available data.
* `Meta-VQE` demo: jupyter notebook with the source code used to run the simulations.
* `Molecular-Meta-VQE` demo: An explcit illustration of a non-linear meta-VQE for molecules as described in the article
* `Molecular-Meta-VQE` demo: An explicit illustration of a non-linear meta-VQE for molecules as described in the article.
* `transmon`: main code to obtain the results for the single-transmon simulation.

__Dependencies:__

Expand Down
3,660 changes: 3,660 additions & 0 deletions data/transmon/nqub_4/nlay_[1, 1]/VQE_seed_matterlab.txt

Large diffs are not rendered by default.

764 changes: 764 additions & 0 deletions data/transmon/nqub_4/nlay_[1, 1]/VQE_smart_seed_matterlab.txt

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions data/transmon/nqub_4/nlay_[1, 1]/VQE_smart_test_seed_matterlab.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
0.0 -35.92690523858457 -35.88199652393707 0.044908714647498016
0.05 -34.07145969642001 -34.0294081856864 0.042051510733607245
0.1 -28.702658731842888 -28.669101887690168 0.03355684415272009
0.15000000000000002 -20.401536505491435 -20.38164075581871 0.019895749672723895
0.2 -10.121074125746528 -10.11632501032666 0.004749115419867778
0.25 2.1649348980190553e-15 2.7058937230317603e-06 2.7058937208668254e-06
0.30000000000000004 -10.121074125746553 -10.116396920017799 0.004677205728754075
0.35000000000000003 -20.401536505491435 -20.38444792767864 0.017088577812796046
0.4 -28.702658731842913 -28.67272375412002 0.029934977722891887
0.45 -34.07145969642001 -34.033112329887835 0.038347366532171634
10 changes: 10 additions & 0 deletions data/transmon/nqub_4/nlay_[1, 1]/VQE_test_seed_matterlab.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
0.0 -35.92690523858457 -35.896433099617155 0.03047213896741141
0.05 -34.07145969642001 -34.04782799873543 0.023631697684578512
0.1 -28.702658731842888 -28.683800218768962 0.018858513073926275
0.15000000000000002 -20.401536505491435 -20.389742600892347 0.011793904599088023
0.2 -10.121074125746528 -10.117689758104316 0.0033843676422122826
0.25 2.1649348980190553e-15 7.47219798084009e-05 7.472197980623596e-05
0.30000000000000004 -10.121074125746553 -10.11715026918629 0.0039238565602630615
0.35000000000000003 -20.401536505491435 -20.38821819698309 0.013318308508345922
0.4 -28.702658731842913 -28.683202181050458 0.01945655079245512
0.45 -34.07145969642001 -34.04791569257664 0.02354400384336941
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
qubits = 4
layers [encoding, variational circuit] = [1, 1]
training points = 10
test points = 50
equispaced train and test = True , True
Optimization options: BFGS , 2-point , qulacs , lr = 0.01 , other: {'finite_diff_rel_step': 0.0001, 'maxiter': 200}
76 changes: 76 additions & 0 deletions data/transmon/nqub_4/nlay_[1, 1]/metaVQE_seed_matterlab.txt

Large diffs are not rendered by default.

50 changes: 50 additions & 0 deletions data/transmon/nqub_4/nlay_[1, 1]/metaVQE_test_seed_matterlab.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
0.0 -35.92690523858457 -35.82449096634997 0.10241427223459709
0.010204081632653073 -35.848964191238494 -35.74755772157404 0.10140646966445388
0.020408163265306145 -35.615487507806805 -35.51706722494039 0.0984202828664138
0.030612244897959162 -35.227513525745486 -35.13396652118545 0.09354700456003684
0.040816326530612235 -34.686769373078256 -34.59982975711645 0.08693961596180344
0.05102040816326531 -33.995665913002256 -33.916851713407524 0.07881419959473135
0.06122448979591838 -33.157290867690044 -33.087838786118716 0.06945208157132754
0.07142857142857145 -32.17540034513707 -32.116197454994975 0.05920289014209601
0.08163265306122447 -31.054409093650243 -31.005920285930298 0.048488807719945015
0.09183673469387754 -29.799379946433767 -29.761569525113252 0.03781042132051482
0.10204081632653061 -28.416013115851737 -28.388258352268135 0.027754763583601516
0.11224489795918369 -26.910636289940133 -26.891629870022694 0.019006419917438677
0.12244897959183676 -25.29019693546201 -25.277833915737403 0.012363019724606517
0.13265306122448978 -23.562258933977056 -23.553501791079324 0.008757142897731995
0.14285714285714285 -21.735006876928882 -21.725719013177997 0.00928786375088464
0.15306122448979592 -19.817263423245144 -19.801996199332528 0.015267223912616146
0.163265306122449 -17.818528895614747 -17.790238204907 0.028290690707748922
0.17346938775510207 -15.749059531922027 -15.698711641229853 0.0503478906921746
0.18367346938775508 -13.620015654142277 -13.53601090696938 0.08400474717289619
0.19387755102040816 -11.4437440425093 -11.311022872566221 0.13272116994307837
0.20408163265306123 -9.234340309466463 -9.032890362837993 0.20144994662847004
0.2142857142857143 -7.008868090969508 -6.7109745878100675 0.2978935031594405
0.22448979591836737 -4.79040994334094 -4.354816676148201 0.43559326719273894
0.2346938775510204 -2.6179319923104285 -1.9740984692565722 0.6438335230538563
0.24489795918367346 -0.6066983959832886 0.42139726285758233 1.028095658840871
0.25510204081632654 -0.6066983959832845 0.42140677405909704 1.0281051700423816
0.26530612244897955 -2.6179319923104276 -1.974072767419537 0.6438592248908905
0.2755102040816326 -4.790409943340921 -4.354778529171786 0.4356314141691353
0.2857142857142857 -7.008868090969495 -6.710927678340806 0.2979404126286891
0.29591836734693877 -9.234340309466461 -9.032838280594767 0.201502028871694
0.30612244897959184 -11.443744042509273 -11.310969084805688 0.13277495770358527
0.3163265306122449 -13.620015654142245 -13.535958729671885 0.08405692447036017
0.326530612244898 -15.749059531922054 -15.698664211178588 0.05039532074346553
0.33673469387755106 -17.81852889561477 -17.79019845282898 0.028330442785787113
0.3469387755102041 -19.81726342324521 -19.801966824264355 0.01529659898085356
0.35714285714285715 -21.735006876928924 -21.725702458212762 0.009304418716162388
0.36734693877551017 -23.56225893397708 -23.553500220644203 0.008758713332877477
0.37755102040816324 -25.29019693546201 -25.27784919454322 0.012347740918791317
0.3877551020408163 -26.910636289940133 -26.89166354381824 0.018972746121892925
0.3979591836734694 -28.416013115851737 -28.388311630522615 0.02770148532912131
0.40816326530612246 -29.799379946433703 -29.761643265739664 0.03773668069403868
0.41836734693877553 -31.054409093650243 -31.006014982152884 0.04839411149735895
0.4285714285714286 -32.17540034513707 -32.11631322445135 0.05908712068571731
0.4387755102040816 -33.15729086769003 -33.08797536227626 0.06931550541376907
0.4489795918367347 -33.995665913002256 -33.917008439361716 0.07865747364053988
0.45918367346938777 -34.686769373078256 -34.60000558182512 0.0867637912531336
0.46938775510204084 -35.227513525745515 -35.13415999818084 0.0933535275646733
0.47959183673469385 -35.615487507806805 -35.517276513547394 0.09821099425941071
0.4897959183673469 -35.848964191238494 -35.74778059064956 0.10118360058893217
0.5 -35.92690523858457 -35.82472480054469 0.10218043803987342
10 changes: 10 additions & 0 deletions data/transmon/nqub_4/nlay_[1, 1]/metaVQE_train_seed_matterlab.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
0.5 -35.92690523858457 -35.82472480054469 0.10218043803987342
0.4444444444444444 -33.641028533508056 -33.56638963505135 0.0746388984567048
0.3888888888888889 -27.08371487623465 -27.063860504201426 0.019854372033226042
0.33333333333333337 -17.136034628281596 -17.10146523099046 0.03456939729113628
0.2777777777777778 -5.281219468241639 -4.88083214451793 0.40038732372370944
0.2222222222222222 -5.281219468241654 -4.880872554164033 0.4003469140776206
0.16666666666666669 -17.136034628281546 -17.101507854240303 0.03452677404124316
0.1111111111111111 -27.08371487623466 -27.06382470555389 0.019890170680767483
0.05555555555555558 -33.641028533508056 -33.566241758290374 0.07478677521768162
0.0 -35.92690523858457 -35.82449096634997 0.10241427223459709
774 changes: 774 additions & 0 deletions data/transmon/nqub_4/nlay_[1, 1]/opt_metaVQE_seed_matterlab.txt

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
0.0 -35.92690523858457 -35.90870796688567 0.01819727169889518
0.05 -34.07145969642001 -34.05388380794882 0.017575888471185408
0.1 -28.702658731842888 -28.688825955947227 0.013832775895661342
0.15000000000000002 -20.401536505491435 -20.396140008700872 0.005396496790563532
0.2 -10.121074125746528 -10.120589739395978 0.00048438635054992574
0.25 2.1649348980190553e-15 2.3533957160148944e-05 2.353395715798401e-05
0.30000000000000004 -10.121074125746553 -10.120671640556173 0.00040248519037966446
0.35000000000000003 -20.401536505491435 -20.396170502931504 0.00536600255993136
0.4 -28.702658731842913 -28.688846913551 0.013811818291912914
0.45 -34.07145969642001 -34.05389841175643 0.017561284663578647
4 changes: 4 additions & 0 deletions data/transmon/nqub_4/nlay_[1, 1]/time_seed_matterlab.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
meta VQE (test+training): 7.3641571799914045 min.
VQE (training points): 3.0173523823420205 min.
VQE with encoding (training points): 3.07886639436086 min.
opt-meta-VQE (training points): 3.3124189615249633 min.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Variable counting: number of optimization variables
Meta-VQE training: 38
Meta-VQE test: 38
Standard VQE: 30
Standard VQE smart: 38
opt-meta-VQE: 38
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit cc997b3

Please sign in to comment.