some work on performance stuff
|
@ -3,7 +3,7 @@ import matplotlib.pyplot as plt
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import json
|
import json
|
||||||
|
|
||||||
from pyqcs import State, H, X, S, CZ
|
from pyqcs import State, H, X, S, CZ, M, list_to_circuit
|
||||||
from pyqcs.graph.state import GraphState
|
from pyqcs.graph.state import GraphState
|
||||||
from pyqcs.util.random_circuits import random_circuit
|
from pyqcs.util.random_circuits import random_circuit
|
||||||
|
|
||||||
|
@ -19,9 +19,13 @@ def test_scaling_qbits(state_factory
|
||||||
, ncircuits
|
, ncircuits
|
||||||
, **kwargs):
|
, **kwargs):
|
||||||
results = deque()
|
results = deque()
|
||||||
|
|
||||||
for qbits in range(nstart, nstop):
|
for qbits in range(nstart, nstop):
|
||||||
|
measurement_circuit = list_to_circuit([M(i) for i in range(qbits)])
|
||||||
circuits = [random_circuit(qbits, ngates_per_qbit * qbits, X, H, S_with_extra_arg, CZ)
|
circuits = [random_circuit(qbits, ngates_per_qbit * qbits, X, H, S_with_extra_arg, CZ)
|
||||||
|
| measurement_circuit
|
||||||
for _ in range(ncircuits)]
|
for _ in range(ncircuits)]
|
||||||
|
|
||||||
state = state_factory(qbits)
|
state = state_factory(qbits)
|
||||||
|
|
||||||
print("running test with", qbits, "qbits")
|
print("running test with", qbits, "qbits")
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
4.000000000000000000e+00 5.000000000000000000e+01 3.239394599904698983e-04 5.238557291679325816e-06
|
4.000000000000000000e+00 5.000000000000000000e+01 3.428762500334414762e-04 1.776446001982484369e-07
|
||||||
5.000000000000000000e+00 5.000000000000000000e+01 3.282311160091921161e-04 5.206791716134118221e-06
|
5.000000000000000000e+00 5.000000000000000000e+01 3.473852679890115382e-04 2.598062558925338788e-07
|
||||||
6.000000000000000000e+00 5.000000000000000000e+01 3.393389966580192532e-04 7.210579399522504517e-06
|
6.000000000000000000e+00 5.000000000000000000e+01 3.548723967105616448e-04 4.534064590863222934e-07
|
||||||
7.000000000000000000e+00 5.000000000000000000e+01 3.485334800006967878e-04 6.133372307934436616e-06
|
7.000000000000000000e+00 5.000000000000000000e+01 3.632114771296203210e-04 4.806098777964577126e-07
|
||||||
8.000000000000000000e+00 5.000000000000000000e+01 3.606396824989133425e-04 7.872948262396234801e-06
|
8.000000000000000000e+00 5.000000000000000000e+01 3.750995150130620307e-04 6.476646505816643513e-07
|
||||||
9.000000000000000000e+00 5.000000000000000000e+01 3.684986977734499495e-04 6.945260956401134954e-06
|
9.000000000000000000e+00 5.000000000000000000e+01 3.854635600065295441e-04 6.874179522109677230e-07
|
||||||
1.000000000000000000e+01 5.000000000000000000e+01 3.876681999954599469e-04 6.780600382400402471e-06
|
1.000000000000000000e+01 5.000000000000000000e+01 4.000266940056462946e-04 9.651952693529160437e-07
|
||||||
1.100000000000000000e+01 5.000000000000000000e+01 4.052125854526489887e-04 7.937589161632314325e-06
|
1.100000000000000000e+01 5.000000000000000000e+01 4.172046781803312411e-04 1.025532448628675197e-06
|
||||||
1.200000000000000000e+01 5.000000000000000000e+01 4.274679049998060575e-04 1.012095146525379624e-05
|
1.200000000000000000e+01 5.000000000000000000e+01 4.337426433327587916e-04 1.244640351956993768e-06
|
||||||
1.300000000000000000e+01 5.000000000000000000e+01 4.431371061540490073e-04 1.193954587296790810e-05
|
1.300000000000000000e+01 5.000000000000000000e+01 4.516327153956248893e-04 1.397547153489921964e-06
|
||||||
1.400000000000000000e+01 5.000000000000000000e+01 4.661075871438567016e-04 1.171191285039605426e-05
|
1.400000000000000000e+01 5.000000000000000000e+01 4.746154742731180202e-04 1.438840206418780757e-06
|
||||||
1.500000000000000000e+01 5.000000000000000000e+01 4.989643959985793752e-04 1.541941106542285995e-05
|
1.500000000000000000e+01 5.000000000000000000e+01 4.947947773422735644e-04 1.512200942654882813e-06
|
||||||
|
|
|
|
@ -1,12 +1,12 @@
|
||||||
4.000000000000000000e+00 5.000000000000000000e+01 5.476679499906822023e-04 2.408885102862740207e-06
|
4.000000000000000000e+00 5.000000000000000000e+01 5.710626750078518074e-04 3.074619893383663595e-07
|
||||||
5.000000000000000000e+00 5.000000000000000000e+01 5.551456240027619494e-04 4.829193903192626175e-06
|
5.000000000000000000e+00 5.000000000000000000e+01 5.794033039710484549e-04 3.361507724083728980e-07
|
||||||
6.000000000000000000e+00 5.000000000000000000e+01 5.855118333268667522e-04 1.850453831086512968e-05
|
6.000000000000000000e+00 5.000000000000000000e+01 6.018405966581971038e-04 3.954121504518400730e-07
|
||||||
7.000000000000000000e+00 5.000000000000000000e+01 6.183522342897569387e-04 1.198932106957222646e-05
|
7.000000000000000000e+00 5.000000000000000000e+01 6.379969228250306334e-04 6.377450051968341937e-07
|
||||||
8.000000000000000000e+00 5.000000000000000000e+01 6.563530025005092760e-04 6.555116391624968002e-06
|
8.000000000000000000e+00 5.000000000000000000e+01 6.879805825064977181e-04 6.067862538259454889e-07
|
||||||
9.000000000000000000e+00 5.000000000000000000e+01 7.391909044488581765e-04 8.225023282170640282e-06
|
9.000000000000000000e+00 5.000000000000000000e+01 7.696791600271049583e-04 9.098588337766861441e-07
|
||||||
1.000000000000000000e+01 5.000000000000000000e+01 8.980536999988544562e-04 1.079801438260659552e-05
|
1.000000000000000000e+01 5.000000000000000000e+01 9.255668519908794934e-04 1.733826880461384478e-06
|
||||||
1.100000000000000000e+01 5.000000000000000000e+01 1.205755047270610147e-03 2.247180665566137078e-05
|
1.100000000000000000e+01 5.000000000000000000e+01 1.239132149084153870e-03 2.677563717065448952e-06
|
||||||
1.200000000000000000e+01 5.000000000000000000e+01 1.953854708333438005e-03 5.515228539491306829e-05
|
1.200000000000000000e+01 5.000000000000000000e+01 1.878185706658162856e-03 5.029636681267363894e-06
|
||||||
1.300000000000000000e+01 5.000000000000000000e+01 3.260316901537757724e-03 1.177441029627800557e-04
|
1.300000000000000000e+01 5.000000000000000000e+01 3.150087018461468664e-03 1.075367375211387397e-05
|
||||||
1.400000000000000000e+01 5.000000000000000000e+01 5.731553058571339961e-03 1.832097576223597733e-04
|
1.400000000000000000e+01 5.000000000000000000e+01 5.638398892837618269e-03 2.006797664581050196e-05
|
||||||
1.500000000000000000e+01 5.000000000000000000e+01 1.087934297466684741e-02 2.949436338465742788e-04
|
1.500000000000000000e+01 5.000000000000000000e+01 1.048240925067996966e-02 3.469709270629929890e-05
|
||||||
|
|
|
|
@ -1,48 +1,48 @@
|
||||||
4.000000000000000000e+02 1.000000000000000000e+02 1.292528080030024311e-03 5.733202073394208302e-07
|
4.000000000000000000e+02 1.000000000000000000e+02 1.289155170052254124e-03 7.202131418617368309e-07
|
||||||
4.500000000000000000e+02 1.000000000000000000e+02 1.476095590023760503e-03 9.150408420618684019e-07
|
4.500000000000000000e+02 1.000000000000000000e+02 1.474937650382344067e-03 6.507618949202226556e-07
|
||||||
5.000000000000000000e+02 1.000000000000000000e+02 1.636735730062355244e-03 9.540711274194226357e-07
|
5.000000000000000000e+02 1.000000000000000000e+02 1.637342369904217681e-03 1.017686405690828357e-06
|
||||||
5.500000000000000000e+02 1.000000000000000000e+02 1.812536450020161335e-03 1.205841932777725135e-06
|
5.500000000000000000e+02 1.000000000000000000e+02 1.817014810221735449e-03 1.392357973932926867e-06
|
||||||
6.000000000000000000e+02 1.000000000000000000e+02 1.971303310037910914e-03 1.414550401571716266e-06
|
6.000000000000000000e+02 1.000000000000000000e+02 1.975182499954826042e-03 1.547137834315356507e-06
|
||||||
6.500000000000000000e+02 1.000000000000000000e+02 2.157640070013257944e-03 3.569517080329898580e-06
|
6.500000000000000000e+02 1.000000000000000000e+02 2.164881780008727323e-03 2.775496195150247345e-06
|
||||||
7.000000000000000000e+02 1.000000000000000000e+02 2.336278169982506162e-03 5.980153904582388949e-06
|
7.000000000000000000e+02 1.000000000000000000e+02 2.327898260009533121e-03 4.072387486484014841e-06
|
||||||
7.500000000000000000e+02 1.000000000000000000e+02 2.532670610025889064e-03 5.849055647582172711e-06
|
7.500000000000000000e+02 1.000000000000000000e+02 2.512511619897850323e-03 5.706339831416697083e-06
|
||||||
8.000000000000000000e+02 1.000000000000000000e+02 2.754502079988014728e-03 1.066963759179946694e-05
|
8.000000000000000000e+02 1.000000000000000000e+02 2.726206230108800619e-03 9.543953937061589143e-06
|
||||||
8.500000000000000000e+02 1.000000000000000000e+02 2.979709850010294880e-03 1.785366947202229990e-05
|
8.500000000000000000e+02 1.000000000000000000e+02 2.957790580258006213e-03 1.840289901428224624e-05
|
||||||
9.000000000000000000e+02 1.000000000000000000e+02 3.185773269997298641e-03 2.117697256738389563e-05
|
9.000000000000000000e+02 1.000000000000000000e+02 3.175472230032028078e-03 2.102542643895924097e-05
|
||||||
9.500000000000000000e+02 1.000000000000000000e+02 3.502167479996387729e-03 3.322615193221120021e-05
|
9.500000000000000000e+02 1.000000000000000000e+02 3.499485609936528029e-03 3.387939745646464381e-05
|
||||||
1.000000000000000000e+03 1.000000000000000000e+02 3.887793099993359577e-03 5.842375420664064204e-05
|
1.000000000000000000e+03 1.000000000000000000e+02 3.921820819996355879e-03 5.999657457282288624e-05
|
||||||
1.050000000000000000e+03 1.000000000000000000e+02 4.455797970003914053e-03 9.479105678860545562e-05
|
1.050000000000000000e+03 1.000000000000000000e+02 4.411485180025920098e-03 9.100803502894595082e-05
|
||||||
1.100000000000000000e+03 1.000000000000000000e+02 5.159400599995933763e-03 1.513410784039731060e-04
|
1.100000000000000000e+03 1.000000000000000000e+02 5.180023460052324974e-03 1.525074107072068729e-04
|
||||||
1.150000000000000000e+03 1.000000000000000000e+02 5.799823660013316527e-03 1.953180291633748020e-04
|
1.150000000000000000e+03 1.000000000000000000e+02 5.836314029984350504e-03 1.980946198733034617e-04
|
||||||
1.200000000000000000e+03 1.000000000000000000e+02 7.020630370006984179e-03 2.710865763361874599e-04
|
1.200000000000000000e+03 1.000000000000000000e+02 7.114772470049502036e-03 2.756185153672614969e-04
|
||||||
1.250000000000000000e+03 1.000000000000000000e+02 8.124420090020977037e-03 2.682436115424335953e-04
|
1.250000000000000000e+03 1.000000000000000000e+02 8.218978049990255039e-03 2.705439779355670407e-04
|
||||||
1.300000000000000000e+03 1.000000000000000000e+02 1.031703455000751966e-02 4.460012337498552070e-04
|
1.300000000000000000e+03 1.000000000000000000e+02 1.039048378996085438e-02 4.499383462236771565e-04
|
||||||
1.350000000000000000e+03 1.000000000000000000e+02 1.372481314997912698e-02 6.817167959261133912e-04
|
1.350000000000000000e+03 1.000000000000000000e+02 1.374823788995854605e-02 6.836957261699217261e-04
|
||||||
1.400000000000000000e+03 1.000000000000000000e+02 1.614032759998735786e-02 7.655134146049649441e-04
|
1.400000000000000000e+03 1.000000000000000000e+02 1.649776842976280120e-02 7.834957772245325011e-04
|
||||||
1.450000000000000000e+03 1.000000000000000000e+02 1.963383306001105499e-02 9.653066555976935140e-04
|
1.450000000000000000e+03 1.000000000000000000e+02 1.973831228002382102e-02 9.739570295397147626e-04
|
||||||
1.500000000000000000e+03 1.000000000000000000e+02 2.355605447000016367e-02 1.007280367082364660e-03
|
1.500000000000000000e+03 1.000000000000000000e+02 2.254402181992190904e-02 9.994626509483015616e-04
|
||||||
1.550000000000000000e+03 1.000000000000000000e+02 2.888593782998213899e-02 1.130616777752615869e-03
|
1.550000000000000000e+03 1.000000000000000000e+02 2.905061726003623293e-02 1.141192389509603248e-03
|
||||||
1.600000000000000000e+03 1.000000000000000000e+02 3.090407874000902777e-02 1.196974704672377912e-03
|
1.600000000000000000e+03 1.000000000000000000e+02 3.101395440990017960e-02 1.195408495138927055e-03
|
||||||
1.650000000000000000e+03 1.000000000000000000e+02 4.296136711001963954e-02 1.702392647792500251e-03
|
1.650000000000000000e+03 1.000000000000000000e+02 4.304727038019336843e-02 1.704638252906546039e-03
|
||||||
1.700000000000000000e+03 1.000000000000000000e+02 4.937921152999024538e-02 1.758433174294420044e-03
|
1.700000000000000000e+03 1.000000000000000000e+02 4.943991763982921728e-02 1.753819244790834949e-03
|
||||||
1.750000000000000000e+03 1.000000000000000000e+02 5.796087034999800047e-02 2.244819224471562326e-03
|
1.750000000000000000e+03 1.000000000000000000e+02 5.811022215031698412e-02 2.241762785359560813e-03
|
||||||
1.800000000000000000e+03 1.000000000000000000e+02 6.485743561003801116e-02 2.157648692163186867e-03
|
1.800000000000000000e+03 1.000000000000000000e+02 6.494125373999849737e-02 2.161706767725532670e-03
|
||||||
1.850000000000000000e+03 1.000000000000000000e+02 7.996037262000754708e-02 2.549463165917180245e-03
|
1.850000000000000000e+03 1.000000000000000000e+02 8.044317284980934124e-02 2.563997167420072748e-03
|
||||||
1.900000000000000000e+03 1.000000000000000000e+02 8.725268216998756377e-02 2.497729997935764588e-03
|
1.900000000000000000e+03 1.000000000000000000e+02 8.750321559993608223e-02 2.508198734765620420e-03
|
||||||
1.950000000000000000e+03 1.000000000000000000e+02 1.047749073099976114e-01 3.039336827493059438e-03
|
1.950000000000000000e+03 1.000000000000000000e+02 1.049924457396627930e-01 3.034147184227525655e-03
|
||||||
2.000000000000000000e+03 1.000000000000000000e+02 1.135617462299751412e-01 3.120489282007932359e-03
|
2.000000000000000000e+03 1.000000000000000000e+02 1.144572633299321684e-01 3.121908377511624453e-03
|
||||||
2.050000000000000000e+03 1.000000000000000000e+02 1.294428618100118833e-01 4.043919095824219205e-03
|
2.050000000000000000e+03 1.000000000000000000e+02 1.296125941900027057e-01 4.059118521444473986e-03
|
||||||
2.100000000000000000e+03 1.000000000000000000e+02 1.493889781299958530e-01 4.360579876782301120e-03
|
2.100000000000000000e+03 1.000000000000000000e+02 1.476271881001957886e-01 4.304095742736498142e-03
|
||||||
2.150000000000000000e+03 1.000000000000000000e+02 1.604279495600167138e-01 4.000128248651088798e-03
|
2.150000000000000000e+03 1.000000000000000000e+02 1.590199630600545866e-01 3.983178368817353807e-03
|
||||||
2.200000000000000000e+03 1.000000000000000000e+02 1.849853525699563794e-01 4.630087951335896089e-03
|
2.200000000000000000e+03 1.000000000000000000e+02 1.833297056598166830e-01 4.598387080141362951e-03
|
||||||
2.250000000000000000e+03 1.000000000000000000e+02 2.037768253299873378e-01 4.645343978297457495e-03
|
2.250000000000000000e+03 1.000000000000000000e+02 2.006969170501179123e-01 4.587501810029061960e-03
|
||||||
2.300000000000000000e+03 1.000000000000000000e+02 2.297617539699740585e-01 5.582634363749477101e-03
|
2.300000000000000000e+03 1.000000000000000000e+02 2.230433375898428494e-01 5.403659038058868450e-03
|
||||||
2.350000000000000000e+03 1.000000000000000000e+02 2.437538262999623950e-01 4.971193420050567732e-03
|
2.350000000000000000e+03 1.000000000000000000e+02 2.411579741999230475e-01 4.915125254286232051e-03
|
||||||
2.400000000000000000e+03 1.000000000000000000e+02 2.698941993499829328e-01 5.216616307042788205e-03
|
2.400000000000000000e+03 1.000000000000000000e+02 2.637051667999912863e-01 5.022663004515379517e-03
|
||||||
2.450000000000000000e+03 1.000000000000000000e+02 2.773576283999955039e-01 5.608918630422963895e-03
|
2.450000000000000000e+03 1.000000000000000000e+02 2.790455744599603105e-01 5.646323379520021279e-03
|
||||||
2.500000000000000000e+03 1.000000000000000000e+02 3.092535914800009778e-01 5.558970822336704691e-03
|
2.500000000000000000e+03 1.000000000000000000e+02 3.102046102101667091e-01 5.547092587792283591e-03
|
||||||
2.550000000000000000e+03 1.000000000000000000e+02 3.230660961900412298e-01 6.283839171520887168e-03
|
2.550000000000000000e+03 1.000000000000000000e+02 3.244321750599192256e-01 6.308998227478966776e-03
|
||||||
2.600000000000000000e+03 1.000000000000000000e+02 3.471448883399989582e-01 6.080763225259631574e-03
|
2.600000000000000000e+03 1.000000000000000000e+02 3.525740050802778636e-01 6.164209930004714219e-03
|
||||||
2.650000000000000000e+03 1.000000000000000000e+02 3.736992086399822943e-01 5.721224507783587328e-03
|
2.650000000000000000e+03 1.000000000000000000e+02 3.710189696798261161e-01 5.591592560980950324e-03
|
||||||
2.700000000000000000e+03 1.000000000000000000e+02 3.990102667600330943e-01 6.176830635263770748e-03
|
2.700000000000000000e+03 1.000000000000000000e+02 3.997344696499930961e-01 6.195574865025787678e-03
|
||||||
2.750000000000000000e+03 1.000000000000000000e+02 4.307573399299963191e-01 7.475051084608957778e-03
|
2.750000000000000000e+03 1.000000000000000000e+02 4.219868193101137810e-01 7.326848772509097010e-03
|
||||||
|
|
|
48
performance/regimes/circuit_scaling_graph0_measurements.csv
Normal file
|
@ -0,0 +1,48 @@
|
||||||
|
4.000000000000000000e+02 1.000000000000000000e+02 2.117918260155420094e-03 3.153929725139841468e-06
|
||||||
|
4.500000000000000000e+02 1.000000000000000000e+02 2.346024190155730944e-03 3.362990295162646715e-06
|
||||||
|
5.000000000000000000e+02 1.000000000000000000e+02 2.554845300001034030e-03 3.581450405402606531e-06
|
||||||
|
5.500000000000000000e+02 1.000000000000000000e+02 2.755300190037814935e-03 3.558214256658488625e-06
|
||||||
|
6.000000000000000000e+02 1.000000000000000000e+02 2.960934869952325157e-03 3.959981947840157623e-06
|
||||||
|
6.500000000000000000e+02 1.000000000000000000e+02 3.157156460074474983e-03 3.956824396002855291e-06
|
||||||
|
7.000000000000000000e+02 1.000000000000000000e+02 3.362684480234747701e-03 4.426553673930159151e-06
|
||||||
|
7.500000000000000000e+02 1.000000000000000000e+02 3.602162559982389350e-03 6.287618836461985200e-06
|
||||||
|
8.000000000000000000e+02 1.000000000000000000e+02 3.816641149933275388e-03 9.646541114940194447e-06
|
||||||
|
8.500000000000000000e+02 1.000000000000000000e+02 3.981523249676683675e-03 5.250427200157442401e-06
|
||||||
|
9.000000000000000000e+02 1.000000000000000000e+02 4.179903030162677481e-03 5.319321223461990038e-06
|
||||||
|
9.500000000000000000e+02 1.000000000000000000e+02 4.356580820021918078e-03 6.284821131859652095e-06
|
||||||
|
1.000000000000000000e+03 1.000000000000000000e+02 4.711663189737009573e-03 1.231819345495698570e-05
|
||||||
|
1.050000000000000000e+03 1.000000000000000000e+02 4.857799199708096732e-03 8.874848062487446492e-06
|
||||||
|
1.100000000000000000e+03 1.000000000000000000e+02 4.974037230131216764e-03 6.366628858558013898e-06
|
||||||
|
1.150000000000000000e+03 1.000000000000000000e+02 5.208487169729778335e-03 8.036823052208671699e-06
|
||||||
|
1.200000000000000000e+03 1.000000000000000000e+02 5.383094930220977230e-03 7.497184461412523090e-06
|
||||||
|
1.250000000000000000e+03 1.000000000000000000e+02 5.652444379811640864e-03 9.274081982277203320e-06
|
||||||
|
1.300000000000000000e+03 1.000000000000000000e+02 5.872684239839145483e-03 9.638609582184605492e-06
|
||||||
|
1.350000000000000000e+03 1.000000000000000000e+02 6.050893879946670113e-03 9.780414371687124272e-06
|
||||||
|
1.400000000000000000e+03 1.000000000000000000e+02 6.247377139879972327e-03 9.724735155208639442e-06
|
||||||
|
1.450000000000000000e+03 1.000000000000000000e+02 6.451234790074522434e-03 1.082915990781066553e-05
|
||||||
|
1.500000000000000000e+03 1.000000000000000000e+02 6.670109619990398885e-03 9.168574200655848491e-06
|
||||||
|
1.550000000000000000e+03 1.000000000000000000e+02 6.873652330141339674e-03 1.079997095775438653e-05
|
||||||
|
1.600000000000000000e+03 1.000000000000000000e+02 7.188739420198544776e-03 1.312986107347982468e-05
|
||||||
|
1.650000000000000000e+03 1.000000000000000000e+02 7.283002080002915976e-03 1.266031320496887163e-05
|
||||||
|
1.700000000000000000e+03 1.000000000000000000e+02 7.541257100165239813e-03 1.159094713342241029e-05
|
||||||
|
1.750000000000000000e+03 1.000000000000000000e+02 7.682937919671530697e-03 2.067212238636168003e-05
|
||||||
|
1.800000000000000000e+03 1.000000000000000000e+02 7.742412990337470616e-03 5.816864883254473196e-06
|
||||||
|
1.850000000000000000e+03 1.000000000000000000e+02 7.963731280251523312e-03 6.003166636211987850e-06
|
||||||
|
1.900000000000000000e+03 1.000000000000000000e+02 8.163955960189922881e-03 6.289383647331144092e-06
|
||||||
|
1.950000000000000000e+03 1.000000000000000000e+02 8.412310690400772242e-03 8.995413027555754644e-06
|
||||||
|
2.000000000000000000e+03 1.000000000000000000e+02 8.601222660072380816e-03 8.186873659617921307e-06
|
||||||
|
2.050000000000000000e+03 1.000000000000000000e+02 8.780245329689932363e-03 7.802414228339774120e-06
|
||||||
|
2.100000000000000000e+03 1.000000000000000000e+02 8.989237779969698819e-03 7.320316653066754860e-06
|
||||||
|
2.150000000000000000e+03 1.000000000000000000e+02 9.208176750325947416e-03 7.550151315447256100e-06
|
||||||
|
2.200000000000000000e+03 1.000000000000000000e+02 9.425421779815224346e-03 9.981486676534551917e-06
|
||||||
|
2.250000000000000000e+03 1.000000000000000000e+02 9.572394580027321007e-03 7.868029399680496439e-06
|
||||||
|
2.300000000000000000e+03 1.000000000000000000e+02 9.757609719817992092e-03 8.125707507819872197e-06
|
||||||
|
2.350000000000000000e+03 1.000000000000000000e+02 1.021417905947600950e-02 3.487049650853384140e-05
|
||||||
|
2.400000000000000000e+03 1.000000000000000000e+02 1.060097622001194423e-02 1.877532492915650009e-05
|
||||||
|
2.450000000000000000e+03 1.000000000000000000e+02 1.079123301045911004e-02 2.014799933723568657e-05
|
||||||
|
2.500000000000000000e+03 1.000000000000000000e+02 1.105411120006465422e-02 1.952338021259126874e-05
|
||||||
|
2.550000000000000000e+03 1.000000000000000000e+02 1.117226990965718841e-02 3.770167097653058649e-05
|
||||||
|
2.600000000000000000e+03 1.000000000000000000e+02 1.104897773024276879e-02 8.462449225289284428e-06
|
||||||
|
2.650000000000000000e+03 1.000000000000000000e+02 1.129705063976871315e-02 2.055146171078313860e-05
|
||||||
|
2.700000000000000000e+03 1.000000000000000000e+02 1.143899963994044790e-02 9.937337737698893357e-06
|
||||||
|
2.750000000000000000e+03 1.000000000000000000e+02 1.167129078996367690e-02 1.026892196615593232e-05
|
|
|
@ -1,48 +1,48 @@
|
||||||
4.000000000000000000e+02 1.000000000000000000e+02 1.339489360016159376e-03 4.373146691524687539e-06
|
4.000000000000000000e+02 1.000000000000000000e+02 1.331747569893195664e-03 4.185028666557203014e-06
|
||||||
4.500000000000000000e+02 1.000000000000000000e+02 1.562109959986628278e-03 1.180899695630014391e-05
|
4.500000000000000000e+02 1.000000000000000000e+02 1.545028069958789352e-03 1.189037919847383599e-05
|
||||||
5.000000000000000000e+02 1.000000000000000000e+02 1.778847130008216499e-03 1.149077062319606950e-05
|
5.000000000000000000e+02 1.000000000000000000e+02 1.757285709863936002e-03 1.110939895258291230e-05
|
||||||
5.500000000000000000e+02 1.000000000000000000e+02 2.110902080021332880e-03 2.624849164697186263e-05
|
5.500000000000000000e+02 1.000000000000000000e+02 2.096770630341780045e-03 2.589822101502824788e-05
|
||||||
6.000000000000000000e+02 1.000000000000000000e+02 2.507623680012329923e-03 5.024093633131331254e-05
|
6.000000000000000000e+02 1.000000000000000000e+02 2.472492380220501097e-03 4.946409213805396754e-05
|
||||||
6.500000000000000000e+02 1.000000000000000000e+02 2.903985629982344056e-03 6.015885116030449901e-05
|
6.500000000000000000e+02 1.000000000000000000e+02 2.871599199825141096e-03 5.895301883148381311e-05
|
||||||
7.000000000000000000e+02 1.000000000000000000e+02 3.571180630096932717e-03 8.668641931525905878e-05
|
7.000000000000000000e+02 1.000000000000000000e+02 3.503966160278650880e-03 8.240138972572720751e-05
|
||||||
7.500000000000000000e+02 1.000000000000000000e+02 4.649395489932431173e-03 1.562207642547893283e-04
|
7.500000000000000000e+02 1.000000000000000000e+02 4.568376979950699440e-03 1.495934361899450599e-04
|
||||||
8.000000000000000000e+02 1.000000000000000000e+02 5.546356450031453625e-03 1.582508901319584825e-04
|
8.000000000000000000e+02 1.000000000000000000e+02 5.424915529911231854e-03 1.510876198374431437e-04
|
||||||
8.500000000000000000e+02 1.000000000000000000e+02 6.406500799985223767e-03 1.918995071719773620e-04
|
8.500000000000000000e+02 1.000000000000000000e+02 6.268708960051299316e-03 1.839870342931388433e-04
|
||||||
9.000000000000000000e+02 1.000000000000000000e+02 8.359043909995306568e-03 2.340207500002419640e-04
|
9.000000000000000000e+02 1.000000000000000000e+02 8.070838380081112734e-03 2.212187264708497805e-04
|
||||||
9.500000000000000000e+02 1.000000000000000000e+02 1.000986628994724077e-02 3.018884726136203791e-04
|
9.500000000000000000e+02 1.000000000000000000e+02 9.734033729728253093e-03 2.849546543183301725e-04
|
||||||
1.000000000000000000e+03 1.000000000000000000e+02 1.170250708993080500e-02 3.032224032573330348e-04
|
1.000000000000000000e+03 1.000000000000000000e+02 1.131779999996069749e-02 2.890997272312513652e-04
|
||||||
1.050000000000000000e+03 1.000000000000000000e+02 1.380836285999976175e-02 3.452895779108171629e-04
|
1.050000000000000000e+03 1.000000000000000000e+02 1.309505432996957083e-02 3.225937973623692529e-04
|
||||||
1.100000000000000000e+03 1.000000000000000000e+02 1.621811796999281935e-02 3.723085100818067220e-04
|
1.100000000000000000e+03 1.000000000000000000e+02 1.540500528997654391e-02 3.470055346230453805e-04
|
||||||
1.150000000000000000e+03 1.000000000000000000e+02 1.751635235991670994e-02 4.478445134046689607e-04
|
1.150000000000000000e+03 1.000000000000000000e+02 1.676282516982609966e-02 4.273260418970669869e-04
|
||||||
1.200000000000000000e+03 1.000000000000000000e+02 2.175449063999622054e-02 4.550615158014478172e-04
|
1.200000000000000000e+03 1.000000000000000000e+02 2.059109770019858926e-02 4.276492012703600226e-04
|
||||||
1.250000000000000000e+03 1.000000000000000000e+02 2.409289705004084847e-02 5.138623006510827183e-04
|
1.250000000000000000e+03 1.000000000000000000e+02 2.274899540014303084e-02 4.778751810116567281e-04
|
||||||
1.300000000000000000e+03 1.000000000000000000e+02 2.707032501996764137e-02 5.352370173198506709e-04
|
1.300000000000000000e+03 1.000000000000000000e+02 2.549480525023682317e-02 5.004283576430242726e-04
|
||||||
1.350000000000000000e+03 1.000000000000000000e+02 3.030421213003137507e-02 6.168532729649393864e-04
|
1.350000000000000000e+03 1.000000000000000000e+02 2.861488545990141519e-02 5.772042114557329132e-04
|
||||||
1.400000000000000000e+03 1.000000000000000000e+02 3.292778922999786695e-02 6.216599880647764734e-04
|
1.400000000000000000e+03 1.000000000000000000e+02 3.097237314006633796e-02 5.828879243888531467e-04
|
||||||
1.450000000000000000e+03 1.000000000000000000e+02 3.600494719007656108e-02 6.306597432476020214e-04
|
1.450000000000000000e+03 1.000000000000000000e+02 3.408838622977782701e-02 6.034821385254118646e-04
|
||||||
1.500000000000000000e+03 1.000000000000000000e+02 4.062817144002110747e-02 5.695523913560983234e-04
|
1.500000000000000000e+03 1.000000000000000000e+02 3.851205766022758326e-02 5.363328031794364122e-04
|
||||||
1.550000000000000000e+03 1.000000000000000000e+02 4.374126138997781049e-02 6.867946415651611427e-04
|
1.550000000000000000e+03 1.000000000000000000e+02 4.122437128029560194e-02 6.372278620266914320e-04
|
||||||
1.600000000000000000e+03 1.000000000000000000e+02 4.496943137003654722e-02 7.410684775443047729e-04
|
1.600000000000000000e+03 1.000000000000000000e+02 4.239497635018778937e-02 6.971184760190998319e-04
|
||||||
1.650000000000000000e+03 1.000000000000000000e+02 4.960669941999185789e-02 6.949628904898550634e-04
|
1.650000000000000000e+03 1.000000000000000000e+02 4.668520652023289835e-02 6.516511772964784415e-04
|
||||||
1.700000000000000000e+03 1.000000000000000000e+02 5.404410303002805255e-02 6.394108496901118686e-04
|
1.700000000000000000e+03 1.000000000000000000e+02 5.081689551014278300e-02 6.047152460041920873e-04
|
||||||
1.750000000000000000e+03 1.000000000000000000e+02 5.542541316996903167e-02 8.394048440130790194e-04
|
1.750000000000000000e+03 1.000000000000000000e+02 5.271924327975284486e-02 8.048032796895918930e-04
|
||||||
1.800000000000000000e+03 1.000000000000000000e+02 6.030962357997850937e-02 7.403164840214486583e-04
|
1.800000000000000000e+03 1.000000000000000000e+02 5.684540473008382888e-02 7.072337196381863183e-04
|
||||||
1.850000000000000000e+03 1.000000000000000000e+02 6.299317811999571859e-02 8.144342068100703189e-04
|
1.850000000000000000e+03 1.000000000000000000e+02 5.978529672989679744e-02 7.833296551258801203e-04
|
||||||
1.900000000000000000e+03 1.000000000000000000e+02 6.699343264000162668e-02 7.670420236218962202e-04
|
1.900000000000000000e+03 1.000000000000000000e+02 6.468316917995252380e-02 7.472594540173414183e-04
|
||||||
1.950000000000000000e+03 1.000000000000000000e+02 7.118386181999994400e-02 6.646562386100526290e-04
|
1.950000000000000000e+03 1.000000000000000000e+02 7.021883793007872854e-02 6.818677900509464941e-04
|
||||||
2.000000000000000000e+03 1.000000000000000000e+02 7.348656025002128778e-02 8.370289188304915872e-04
|
2.000000000000000000e+03 1.000000000000000000e+02 7.419108358000812975e-02 8.214627456306492544e-04
|
||||||
2.050000000000000000e+03 1.000000000000000000e+02 7.429763381001067146e-02 7.700828038098531548e-04
|
2.050000000000000000e+03 1.000000000000000000e+02 7.741255534012453365e-02 8.070719858707328404e-04
|
||||||
2.100000000000000000e+03 1.000000000000000000e+02 7.828760585999589017e-02 7.691943397858324542e-04
|
2.100000000000000000e+03 1.000000000000000000e+02 8.086882287996559338e-02 7.866241559073118908e-04
|
||||||
2.150000000000000000e+03 1.000000000000000000e+02 8.402856610011440186e-02 8.349493053548320007e-04
|
2.150000000000000000e+03 1.000000000000000000e+02 8.348558423003851758e-02 8.231372280700862982e-04
|
||||||
2.200000000000000000e+03 1.000000000000000000e+02 8.729005758003040294e-02 7.691550593819323047e-04
|
2.200000000000000000e+03 1.000000000000000000e+02 8.695838841988007273e-02 7.608563879288241221e-04
|
||||||
2.250000000000000000e+03 1.000000000000000000e+02 9.405598109005949836e-02 9.178635033626555842e-04
|
2.250000000000000000e+03 1.000000000000000000e+02 9.287772310006403575e-02 9.267475463012196570e-04
|
||||||
2.300000000000000000e+03 1.000000000000000000e+02 9.799322385992127737e-02 9.222294375051240303e-04
|
2.300000000000000000e+03 1.000000000000000000e+02 9.641536674978851140e-02 9.073162453149088199e-04
|
||||||
2.350000000000000000e+03 1.000000000000000000e+02 1.006686677600191621e-01 9.167243728391789642e-04
|
2.350000000000000000e+03 1.000000000000000000e+02 1.009883459203047146e-01 9.053025832545474969e-04
|
||||||
2.400000000000000000e+03 1.000000000000000000e+02 1.047712729699196710e-01 8.665465747754112335e-04
|
2.400000000000000000e+03 1.000000000000000000e+02 1.035630384599789955e-01 8.605099708966920061e-04
|
||||||
2.450000000000000000e+03 1.000000000000000000e+02 1.063802617899273217e-01 9.078377647675694648e-04
|
2.450000000000000000e+03 1.000000000000000000e+02 1.056166958799076433e-01 9.042312036116488322e-04
|
||||||
2.500000000000000000e+03 1.000000000000000000e+02 1.100784591899355291e-01 8.827002059403676664e-04
|
2.500000000000000000e+03 1.000000000000000000e+02 1.090246676897732026e-01 8.518223667746407327e-04
|
||||||
2.550000000000000000e+03 1.000000000000000000e+02 1.150724165801148002e-01 9.343339900374694057e-04
|
2.550000000000000000e+03 1.000000000000000000e+02 1.125992783100082245e-01 9.260318460859097867e-04
|
||||||
2.600000000000000000e+03 1.000000000000000000e+02 1.193642491499849745e-01 9.657911774894351736e-04
|
2.600000000000000000e+03 1.000000000000000000e+02 1.181163900302271974e-01 9.457865410662973440e-04
|
||||||
2.650000000000000000e+03 1.000000000000000000e+02 1.208200644799580920e-01 8.525406023378619266e-04
|
2.650000000000000000e+03 1.000000000000000000e+02 1.178048554901397482e-01 9.032353305029247863e-04
|
||||||
2.700000000000000000e+03 1.000000000000000000e+02 1.262045125600161632e-01 8.985605875767001477e-04
|
2.700000000000000000e+03 1.000000000000000000e+02 1.193943367699466795e-01 8.656900612182483667e-04
|
||||||
2.750000000000000000e+03 1.000000000000000000e+02 1.257651572799295403e-01 9.551881433090064159e-04
|
2.750000000000000000e+03 1.000000000000000000e+02 1.246490166999865284e-01 1.003202861539929805e-03
|
||||||
|
|
|
48
performance/regimes/circuit_scaling_graph1_measurements.csv
Normal file
|
@ -0,0 +1,48 @@
|
||||||
|
4.000000000000000000e+02 1.000000000000000000e+02 1.855520929748308767e-03 1.713134491388978309e-06
|
||||||
|
4.500000000000000000e+02 1.000000000000000000e+02 2.054871710352017440e-03 2.190088685886722304e-06
|
||||||
|
5.000000000000000000e+02 1.000000000000000000e+02 2.246458490408258495e-03 2.160730405732677556e-06
|
||||||
|
5.500000000000000000e+02 1.000000000000000000e+02 2.458994149783393524e-03 2.632555491360094470e-06
|
||||||
|
6.000000000000000000e+02 1.000000000000000000e+02 2.651202810593531606e-03 2.129537731470889621e-06
|
||||||
|
6.500000000000000000e+02 1.000000000000000000e+02 2.848435070191044239e-03 2.101762964151014804e-06
|
||||||
|
7.000000000000000000e+02 1.000000000000000000e+02 3.045234929813886871e-03 2.196795878570572359e-06
|
||||||
|
7.500000000000000000e+02 1.000000000000000000e+02 3.264530430024024064e-03 3.813739568843195435e-06
|
||||||
|
8.000000000000000000e+02 1.000000000000000000e+02 3.448390289340750106e-03 2.506359178657043656e-06
|
||||||
|
8.500000000000000000e+02 1.000000000000000000e+02 3.642879379913211042e-03 2.717216465339945572e-06
|
||||||
|
9.000000000000000000e+02 1.000000000000000000e+02 3.840055859691346961e-03 3.372217748148944484e-06
|
||||||
|
9.500000000000000000e+02 1.000000000000000000e+02 4.042165709906839384e-03 3.061728505191626180e-06
|
||||||
|
1.000000000000000000e+03 1.000000000000000000e+02 4.258553239924367691e-03 3.180552461228480271e-06
|
||||||
|
1.050000000000000000e+03 1.000000000000000000e+02 4.435837380369776241e-03 3.141057651670607941e-06
|
||||||
|
1.100000000000000000e+03 1.000000000000000000e+02 4.647524749525473037e-03 3.577954400671338468e-06
|
||||||
|
1.150000000000000000e+03 1.000000000000000000e+02 4.838921920163556829e-03 3.755994502604949956e-06
|
||||||
|
1.200000000000000000e+03 1.000000000000000000e+02 5.015973980407579733e-03 3.416063646669190170e-06
|
||||||
|
1.250000000000000000e+03 1.000000000000000000e+02 5.232391719837323728e-03 3.990654739077853341e-06
|
||||||
|
1.300000000000000000e+03 1.000000000000000000e+02 5.426057579607004508e-03 3.905549309310580046e-06
|
||||||
|
1.350000000000000000e+03 1.000000000000000000e+02 5.629395610012580091e-03 4.224554521711868355e-06
|
||||||
|
1.400000000000000000e+03 1.000000000000000000e+02 5.827894089889013897e-03 4.100545851548671890e-06
|
||||||
|
1.450000000000000000e+03 1.000000000000000000e+02 6.030842360341921032e-03 4.707298305108542942e-06
|
||||||
|
1.500000000000000000e+03 1.000000000000000000e+02 6.213281070158700216e-03 3.889082708959310676e-06
|
||||||
|
1.550000000000000000e+03 1.000000000000000000e+02 6.416867010266287530e-03 4.638102688188746169e-06
|
||||||
|
1.600000000000000000e+03 1.000000000000000000e+02 6.624721089683589630e-03 4.509133312932078743e-06
|
||||||
|
1.650000000000000000e+03 1.000000000000000000e+02 6.814689020393416632e-03 4.793786070736816416e-06
|
||||||
|
1.700000000000000000e+03 1.000000000000000000e+02 7.037005909878644473e-03 5.124697637943799726e-06
|
||||||
|
1.750000000000000000e+03 1.000000000000000000e+02 7.210767660362762607e-03 4.760780065895519881e-06
|
||||||
|
1.800000000000000000e+03 1.000000000000000000e+02 7.432531049926183013e-03 5.234147437018776624e-06
|
||||||
|
1.850000000000000000e+03 1.000000000000000000e+02 7.624391329954960383e-03 5.747345457474983097e-06
|
||||||
|
1.900000000000000000e+03 1.000000000000000000e+02 7.847124330291990399e-03 6.140559741944434632e-06
|
||||||
|
1.950000000000000000e+03 1.000000000000000000e+02 8.027807329854112425e-03 5.872308452137434737e-06
|
||||||
|
2.000000000000000000e+03 1.000000000000000000e+02 8.234741139749529940e-03 5.484516606744467484e-06
|
||||||
|
2.050000000000000000e+03 1.000000000000000000e+02 8.420041370336549258e-03 6.201006014692581159e-06
|
||||||
|
2.100000000000000000e+03 1.000000000000000000e+02 8.642610429960768600e-03 5.556879864096533714e-06
|
||||||
|
2.150000000000000000e+03 1.000000000000000000e+02 8.832601509420784022e-03 5.994991064019156469e-06
|
||||||
|
2.200000000000000000e+03 1.000000000000000000e+02 9.073848030093359038e-03 7.861155277991771910e-06
|
||||||
|
2.250000000000000000e+03 1.000000000000000000e+02 9.231382489961106191e-03 5.648926815135226905e-06
|
||||||
|
2.300000000000000000e+03 1.000000000000000000e+02 9.434006350056733589e-03 6.503462248911149879e-06
|
||||||
|
2.350000000000000000e+03 1.000000000000000000e+02 9.700876819915721025e-03 1.584549838007378060e-05
|
||||||
|
2.400000000000000000e+03 1.000000000000000000e+02 9.922618439886718433e-03 8.657328357419615412e-06
|
||||||
|
2.450000000000000000e+03 1.000000000000000000e+02 1.014477934950264171e-02 1.167775864563632931e-05
|
||||||
|
2.500000000000000000e+03 1.000000000000000000e+02 1.032955904047412263e-02 9.075708383822331569e-06
|
||||||
|
2.550000000000000000e+03 1.000000000000000000e+02 1.053916535020107438e-02 9.864027143291052185e-06
|
||||||
|
2.600000000000000000e+03 1.000000000000000000e+02 1.068992346969025592e-02 9.836075290728506446e-06
|
||||||
|
2.650000000000000000e+03 1.000000000000000000e+02 1.094912902008218260e-02 9.012869001425469971e-06
|
||||||
|
2.700000000000000000e+03 1.000000000000000000e+02 1.112891669981763698e-02 8.170382605883808633e-06
|
||||||
|
2.750000000000000000e+03 1.000000000000000000e+02 1.133965294000518001e-02 8.807898200629759062e-06
|
|
|
@ -0,0 +1 @@
|
||||||
|
{"nstart": 400, "nstop": 2800, "step": 50, "ncircuits": 100, "nqbits0": 100, "nqbits1": 50, "seed": 3735928559}
|
|
@ -1 +1 @@
|
||||||
{"nstart": 400, "nstop": 1800, "step": 50, "ncircuits": 50, "nqbits0": 100, "nqbits1": 50, "seed": 3735928559}
|
{"nstart": 400, "nstop": 2800, "step": 50, "ncircuits": 100, "nqbits0": 100, "nqbits1": 50, "seed": 3735928559}
|
|
@ -3,7 +3,7 @@ import matplotlib.pyplot as plt
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import json
|
import json
|
||||||
|
|
||||||
from pyqcs import State, H, X, S, CZ
|
from pyqcs import State, H, X, S, CZ, M, list_to_circuit
|
||||||
from pyqcs.graph.state import GraphState
|
from pyqcs.graph.state import GraphState
|
||||||
from pyqcs.util.random_circuits import random_circuit
|
from pyqcs.util.random_circuits import random_circuit
|
||||||
|
|
||||||
|
@ -22,6 +22,7 @@ def test_scaling_circuits(state_factory
|
||||||
results = deque()
|
results = deque()
|
||||||
|
|
||||||
for ngates in range(nstart, nstop, step):
|
for ngates in range(nstart, nstop, step):
|
||||||
|
measurement_circuit = list_to_circuit([M(i) for i in range(nqbits)])
|
||||||
circuits = [random_circuit(nqbits, ngates, X, H, S_with_extra_arg, CZ)
|
circuits = [random_circuit(nqbits, ngates, X, H, S_with_extra_arg, CZ)
|
||||||
for _ in range(ncircuits)]
|
for _ in range(ncircuits)]
|
||||||
state = state_factory(nqbits)
|
state = state_factory(nqbits)
|
||||||
|
|
|
@ -0,0 +1,82 @@
|
||||||
|
from collections import deque
|
||||||
|
import matplotlib.pyplot as plt
|
||||||
|
import numpy as np
|
||||||
|
import json
|
||||||
|
|
||||||
|
from pyqcs import State, H, X, S, CZ, M, list_to_circuit
|
||||||
|
from pyqcs.graph.state import GraphState
|
||||||
|
from pyqcs.util.random_circuits import random_circuit
|
||||||
|
|
||||||
|
from measure_circuit import execution_statistics
|
||||||
|
|
||||||
|
def S_with_extra_arg(act, i):
|
||||||
|
return S(act)
|
||||||
|
|
||||||
|
def test_scaling_circuits(state_factory
|
||||||
|
, nstart
|
||||||
|
, nstop
|
||||||
|
, step
|
||||||
|
, nqbits
|
||||||
|
, ncircuits
|
||||||
|
, **kwargs):
|
||||||
|
results = deque()
|
||||||
|
|
||||||
|
for ngates in range(nstart, nstop, step):
|
||||||
|
measurement_circuit = list_to_circuit([M(i) for i in range(nqbits)])
|
||||||
|
circuits = [random_circuit(nqbits, ngates, M, H, S_with_extra_arg, CZ)
|
||||||
|
| measurement_circuit
|
||||||
|
for _ in range(ncircuits)]
|
||||||
|
state = state_factory(nqbits)
|
||||||
|
|
||||||
|
print("running test with", ngates, "gates on", nqbits, "qbits")
|
||||||
|
|
||||||
|
N, avg, std_dev = execution_statistics(circuits, state, scale=1, **kwargs)
|
||||||
|
results.append([ngates, N, avg, std_dev])
|
||||||
|
|
||||||
|
return np.array(results, dtype=np.double)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
nstart = 400
|
||||||
|
nstop = 2800
|
||||||
|
step = 50
|
||||||
|
ncircuits = 100
|
||||||
|
nqbits0 = 100
|
||||||
|
nqbits1 = 50
|
||||||
|
seed = 0xdeadbeef
|
||||||
|
|
||||||
|
np.random.seed(seed)
|
||||||
|
results_graph0 = test_scaling_circuits(GraphState.new_zero_state
|
||||||
|
, nstart
|
||||||
|
, nstop
|
||||||
|
, step
|
||||||
|
, nqbits0
|
||||||
|
, ncircuits
|
||||||
|
, repeat=10)
|
||||||
|
np.random.seed(seed)
|
||||||
|
results_graph1 = test_scaling_circuits(GraphState.new_zero_state
|
||||||
|
, nstart
|
||||||
|
, nstop
|
||||||
|
, step
|
||||||
|
, nqbits1
|
||||||
|
, ncircuits
|
||||||
|
, repeat=10)
|
||||||
|
|
||||||
|
np.savetxt("circuit_scaling_graph0_measurements.csv", results_graph0)
|
||||||
|
print("saved results0 to circuit_scaling_graph0_measurements.csv")
|
||||||
|
np.savetxt("circuit_scaling_graph1_measurements.csv", results_graph1)
|
||||||
|
print("saved results1 to circuit_scaling_graph1_measurements.csv")
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
"nstart": nstart
|
||||||
|
, "nstop": nstop
|
||||||
|
, "step": step
|
||||||
|
, "ncircuits": ncircuits
|
||||||
|
, "nqbits0": nqbits0
|
||||||
|
, "nqbits1": nqbits1
|
||||||
|
, "seed": seed}
|
||||||
|
|
||||||
|
with open("circuit_scaling_measurements_meta.json", "w") as fout:
|
||||||
|
json.dump(meta, fout)
|
||||||
|
print("saved meta to circuit_scaling_measurements_meta.json")
|
||||||
|
|
|
@ -0,0 +1,29 @@
|
||||||
|
from collections import deque
|
||||||
|
import matplotlib
|
||||||
|
import matplotlib.pyplot as plt
|
||||||
|
import numpy as np
|
||||||
|
import json
|
||||||
|
|
||||||
|
matplotlib.rcParams.update({'errorbar.capsize': 2})
|
||||||
|
|
||||||
|
results_graph0 = np.genfromtxt("circuit_scaling_graph0_measurements.csv")
|
||||||
|
results_graph1 = np.genfromtxt("circuit_scaling_graph1_measurements.csv")
|
||||||
|
with open("circuit_scaling_measurements_meta.json") as fin:
|
||||||
|
meta = json.load(fin)
|
||||||
|
|
||||||
|
h0 = plt.errorbar(results_graph0[:, 0], results_graph0[:, 2], results_graph0[:, 3]
|
||||||
|
, label=f"Graphical Simulator $N_q={meta['nqbits0']}$ Qbits"
|
||||||
|
, marker="^"
|
||||||
|
, color="black")
|
||||||
|
h1 = plt.errorbar(results_graph1[:, 0], results_graph1[:, 2], results_graph1[:, 3]
|
||||||
|
, label=f"Graphical Simulator $N_q={meta['nqbits1']}$ Qbits"
|
||||||
|
, marker="o"
|
||||||
|
, color="black")
|
||||||
|
|
||||||
|
plt.legend(handles=[h0, h1])
|
||||||
|
plt.xlabel("Number of gates in circuit")
|
||||||
|
plt.ylabel("Execution time per circuit [s]")
|
||||||
|
plt.title(f"Execution Time for Random Circuits with Random Measurements")
|
||||||
|
|
||||||
|
plt.savefig("scaling_circuits_measurements_linear.png", dpi=400)
|
||||||
|
plt.show()
|
Before Width: | Height: | Size: 167 KiB After Width: | Height: | Size: 167 KiB |
Before Width: | Height: | Size: 195 KiB After Width: | Height: | Size: 195 KiB |
BIN
performance/regimes/scaling_circuits_measurements_linear.png
Normal file
After Width: | Height: | Size: 244 KiB |
Before Width: | Height: | Size: 184 KiB After Width: | Height: | Size: 183 KiB |
Before Width: | Height: | Size: 172 KiB After Width: | Height: | Size: 168 KiB |