from qiskit import QuantumRegister, ClassicalRegister, QuantumCircuit
from numpy import pi

qreg_q = QuantumRegister(133, 'q')
creg_meas = ClassicalRegister(6, 'meas')
circuit = QuantumCircuit(qreg_q, creg_meas)

circuit.reset(qreg_q[54])
circuit.rz(7 * pi / 16, qreg_q[54])
circuit.sx(qreg_q[54])
circuit.rz(-1.5746162217128292, qreg_q[54])
circuit.sx(qreg_q[54])
circuit.rz(-pi / 2, qreg_q[54])
circuit.reset(qreg_q[59])
circuit.sx(qreg_q[59])
circuit.rz(1.409443654548653, qreg_q[59])
circuit.sx(qreg_q[59])
circuit.reset(qreg_q[60])
circuit.rz(-pi / 2, qreg_q[60])
circuit.sx(qreg_q[60])
circuit.rz(-0.03465084801979401, qreg_q[60])
circuit.sx(qreg_q[60])
circuit.rz(-4.533228038304113, qreg_q[60])
circuit.cz(qreg_q[59], qreg_q[60])
circuit.x(qreg_q[59])
circuit.sx(qreg_q[60])
circuit.rz(-0.8018002206087491, qreg_q[60])
circuit.sx(qreg_q[60])
circuit.rz(-6.028419764544834, qreg_q[60])
circuit.reset(qreg_q[61])
circuit.rz(-3 * pi / 4, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(-0.8268658441437213, qreg_q[61])
circuit.cz(qreg_q[60], qreg_q[61])
circuit.sx(qreg_q[60])
circuit.rz(-0.6250140938056297, qreg_q[60])
circuit.sx(qreg_q[61])
circuit.rz(pi, qreg_q[61])
circuit.cz(qreg_q[60], qreg_q[61])
circuit.sx(qreg_q[60])
circuit.rz(-pi, qreg_q[60])
circuit.cz(qreg_q[59], qreg_q[60])
circuit.sx(qreg_q[59])
circuit.sx(qreg_q[60])
circuit.rz(2.4100814433875843, qreg_q[60])
circuit.sx(qreg_q[60])
circuit.sx(qreg_q[61])
circuit.rz(-3 * pi / 4, qreg_q[61])
circuit.cz(qreg_q[61], qreg_q[60])
circuit.sx(qreg_q[60])
circuit.rz(2.2021163949567013, qreg_q[60])
circuit.sx(qreg_q[60])
circuit.sx(qreg_q[61])
circuit.reset(qreg_q[62])
circuit.rz(-pi, qreg_q[62])
circuit.sx(qreg_q[62])
circuit.rz(1.608869776929895, qreg_q[62])
circuit.sx(qreg_q[62])
circuit.cz(qreg_q[62], qreg_q[61])
circuit.sx(qreg_q[61])
circuit.sx(qreg_q[62])
circuit.cz(qreg_q[62], qreg_q[61])
circuit.sx(qreg_q[61])
circuit.sx(qreg_q[62])
circuit.cz(qreg_q[62], qreg_q[61])
circuit.rz(pi / 2, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.cz(qreg_q[60], qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(-2.332896282455148, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.cz(qreg_q[62], qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(-3.110884399526923, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(pi, qreg_q[61])
circuit.cz(qreg_q[60], qreg_q[61])
circuit.sx(qreg_q[60])
circuit.cz(qreg_q[59], qreg_q[60])
circuit.sx(qreg_q[59])
circuit.sx(qreg_q[60])
circuit.cz(qreg_q[59], qreg_q[60])
circuit.sx(qreg_q[59])
circuit.sx(qreg_q[60])
circuit.cz(qreg_q[59], qreg_q[60])
circuit.sx(qreg_q[59])
circuit.sx(qreg_q[61])
circuit.rz(2.5489309277279144, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.cz(qreg_q[60], qreg_q[61])
circuit.sx(qreg_q[60])
circuit.cz(qreg_q[59], qreg_q[60])
circuit.sx(qreg_q[59])
circuit.sx(qreg_q[60])
circuit.cz(qreg_q[59], qreg_q[60])
circuit.sx(qreg_q[59])
circuit.sx(qreg_q[60])
circuit.cz(qreg_q[59], qreg_q[60])
circuit.sx(qreg_q[59])
circuit.sx(qreg_q[61])
circuit.rz(2.3282825714346806, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(-pi, qreg_q[61])
circuit.cz(qreg_q[60], qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(3.084160154046316, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.cz(qreg_q[62], qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(-2.4734579420457665, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(1.52754521698771, qreg_q[61])
circuit.cz(qreg_q[60], qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(-1.7410044731760514, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(-2.89144649887459, qreg_q[61])
circuit.cz(qreg_q[54], qreg_q[61])
circuit.sx(qreg_q[54])
circuit.rz(pi, qreg_q[54])
circuit.sx(qreg_q[61])
circuit.rz(pi / 2, qreg_q[61])
circuit.cz(qreg_q[54], qreg_q[61])
circuit.sx(qreg_q[54])
circuit.rz(-2.966026798327455, qreg_q[54])
circuit.sx(qreg_q[61])
circuit.rz(1.563527673617358, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(pi, qreg_q[61])
circuit.cz(qreg_q[60], qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(-3.067824144165904, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.cz(qreg_q[54], qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(-2.9600338596330946, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(-pi, qreg_q[61])
circuit.cz(qreg_q[62], qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(-2.6388410052000006, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(pi, qreg_q[61])
circuit.cz(qreg_q[54], qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(-2.2200751759660173, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(-pi, qreg_q[61])
circuit.cz(qreg_q[60], qreg_q[61])
circuit.sx(qreg_q[60])
circuit.cz(qreg_q[59], qreg_q[60])
circuit.sx(qreg_q[59])
circuit.sx(qreg_q[60])
circuit.cz(qreg_q[59], qreg_q[60])
circuit.sx(qreg_q[59])
circuit.sx(qreg_q[60])
circuit.cz(qreg_q[59], qreg_q[60])
circuit.sx(qreg_q[59])
circuit.sx(qreg_q[61])
circuit.rz(-2.9112040802480523, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.cz(qreg_q[54], qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(-2.9305892042837502, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(pi, qreg_q[61])
circuit.cz(qreg_q[60], qreg_q[61])
circuit.sx(qreg_q[60])
circuit.cz(qreg_q[59], qreg_q[60])
circuit.sx(qreg_q[59])
circuit.sx(qreg_q[60])
circuit.cz(qreg_q[59], qreg_q[60])
circuit.sx(qreg_q[59])
circuit.sx(qreg_q[60])
circuit.cz(qreg_q[59], qreg_q[60])
circuit.sx(qreg_q[59])
circuit.sx(qreg_q[61])
circuit.rz(-2.5460942477935484, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.cz(qreg_q[54], qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(-2.4931360347415072, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.cz(qreg_q[60], qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(-2.457755628306657, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(pi, qreg_q[61])
circuit.cz(qreg_q[54], qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(-2.616859497204807, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.cz(qreg_q[62], qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(-2.418521615384087, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(pi, qreg_q[61])
circuit.cz(qreg_q[54], qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(-2.4636799698201894, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.cz(qreg_q[60], qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(-1.961562347944632, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(4.609833649303047, qreg_q[61])
circuit.cz(qreg_q[54], qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(-0.3211625989141105, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(-0.1080398269802334, qreg_q[61])
circuit.sx(qreg_q[62])
circuit.reset(qreg_q[63])
circuit.rz(-11 * pi / 16, qreg_q[63])
circuit.sx(qreg_q[63])
circuit.rz(1.6241987645304414, qreg_q[63])
circuit.sx(qreg_q[63])
circuit.cz(qreg_q[63], qreg_q[62])
circuit.sx(qreg_q[62])
circuit.sx(qreg_q[63])
circuit.cz(qreg_q[63], qreg_q[62])
circuit.sx(qreg_q[62])
circuit.sx(qreg_q[63])
circuit.cz(qreg_q[63], qreg_q[62])
circuit.rz(-pi / 2, qreg_q[62])
circuit.sx(qreg_q[62])
circuit.rz(-1.2513811858345854, qreg_q[62])
circuit.sx(qreg_q[62])
circuit.cz(qreg_q[61], qreg_q[62])
circuit.sx(qreg_q[61])
circuit.rz(4.5880160891662305, qreg_q[61])
circuit.sx(qreg_q[62])
circuit.rz(pi, qreg_q[62])
circuit.cz(qreg_q[61], qreg_q[62])
circuit.sx(qreg_q[61])
circuit.rz(-1.9296328052562215, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(0.3420006366230286, qreg_q[61])
circuit.cz(qreg_q[54], qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(-2.9613569986419837, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.sx(qreg_q[62])
circuit.rz(1.8842908645560676, qreg_q[62])
circuit.cz(qreg_q[62], qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(-2.9291227586460806, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.cz(qreg_q[60], qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(-3.039910725588257, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.cz(qreg_q[62], qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(-2.9875324747012497, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(-2.3234810319998873, qreg_q[61])
circuit.cz(qreg_q[54], qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(-1.9033185362190714, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(-1.9061482534496168, qreg_q[61])
circuit.sx(qreg_q[62])
circuit.cz(qreg_q[61], qreg_q[62])
circuit.sx(qreg_q[61])
circuit.rz(pi, qreg_q[61])
circuit.sx(qreg_q[62])
circuit.rz(-1.4529851361906458, qreg_q[62])
circuit.cz(qreg_q[61], qreg_q[62])
circuit.sx(qreg_q[61])
circuit.rz(-2.1314505586241985, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.sx(qreg_q[62])
circuit.rz(-1.6935169035226973, qreg_q[62])
circuit.sx(qreg_q[62])
circuit.rz(2.447942698445619, qreg_q[62])
circuit.cz(qreg_q[63], qreg_q[62])
circuit.sx(qreg_q[62])
circuit.rz(-1.520705421614771, qreg_q[62])
circuit.sx(qreg_q[62])
circuit.rz(1.5745543043902925, qreg_q[62])
circuit.cz(qreg_q[61], qreg_q[62])
circuit.rz(-pi, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(1.5752469678543983, qreg_q[61])
circuit.sx(qreg_q[62])
circuit.cz(qreg_q[61], qreg_q[62])
circuit.sx(qreg_q[61])
circuit.rz(-1.630099884838228, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(-0.07495229672436032, qreg_q[61])
circuit.cz(qreg_q[54], qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(-3.019036251097055, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(pi, qreg_q[61])
circuit.sx(qreg_q[62])
circuit.rz(-0.19071493427278696, qreg_q[62])
circuit.cz(qreg_q[62], qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(-2.8185362503236515, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.cz(qreg_q[60], qreg_q[61])
circuit.sx(qreg_q[60])
circuit.cz(qreg_q[59], qreg_q[60])
circuit.sx(qreg_q[59])
circuit.sx(qreg_q[60])
circuit.cz(qreg_q[59], qreg_q[60])
circuit.sx(qreg_q[59])
circuit.sx(qreg_q[60])
circuit.cz(qreg_q[59], qreg_q[60])
circuit.sx(qreg_q[59])
circuit.sx(qreg_q[61])
circuit.rz(-2.7826581198304936, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(pi, qreg_q[61])
circuit.cz(qreg_q[62], qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(3.0371982784353033, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.cz(qreg_q[54], qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(3.123862225042341, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.cz(qreg_q[62], qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(-3.032719134476811, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(-pi, qreg_q[61])
circuit.cz(qreg_q[60], qreg_q[61])
circuit.sx(qreg_q[60])
circuit.rz(-0.03172979510963714, qreg_q[60])
circuit.cz(qreg_q[59], qreg_q[60])
circuit.sx(qreg_q[59])
circuit.sx(qreg_q[60])
circuit.cz(qreg_q[59], qreg_q[60])
circuit.sx(qreg_q[59])
circuit.sx(qreg_q[60])
circuit.cz(qreg_q[59], qreg_q[60])
circuit.sx(qreg_q[61])
circuit.rz(-3.039525715724105, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(pi, qreg_q[61])
circuit.cz(qreg_q[62], qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(-2.5277255572991075, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(-pi, qreg_q[61])
circuit.cz(qreg_q[54], qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(-2.6942143436852595, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.cz(qreg_q[62], qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(-3.0804340565119492, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.cz(qreg_q[60], qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(2.7756348107232522, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.cz(qreg_q[62], qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(2.929165187927328, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.cz(qreg_q[54], qreg_q[61])
circuit.rz(-1.0135724075832093, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(-1.686956577882599, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(-4.5284832700121225, qreg_q[61])
circuit.sx(qreg_q[62])
circuit.rz(-pi, qreg_q[62])
circuit.cz(qreg_q[61], qreg_q[62])
circuit.sx(qreg_q[61])
circuit.rz(pi, qreg_q[61])
circuit.sx(qreg_q[62])
circuit.rz(1.3174763423882077, qreg_q[62])
circuit.cz(qreg_q[61], qreg_q[62])
circuit.sx(qreg_q[61])
circuit.rz(2.350612521136834, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.sx(qreg_q[62])
circuit.rz(-1.7293680264357345, qreg_q[62])
circuit.sx(qreg_q[62])
circuit.rz(-2.3959216448342784, qreg_q[62])
circuit.cz(qreg_q[63], qreg_q[62])
circuit.sx(qreg_q[62])
circuit.rz(-0.8754657158039585, qreg_q[62])
circuit.sx(qreg_q[62])
circuit.rz(-1.751237366228528, qreg_q[62])
circuit.cz(qreg_q[61], qreg_q[62])
circuit.rz(-pi, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(4.697782846484661, qreg_q[61])
circuit.sx(qreg_q[62])
circuit.rz(pi, qreg_q[62])
circuit.cz(qreg_q[61], qreg_q[62])
circuit.sx(qreg_q[61])
circuit.rz(-1.6385947196228798, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(0.21236417857311096, qreg_q[61])
circuit.cz(qreg_q[54], qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(-2.7273847597623346, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.sx(qreg_q[62])
circuit.rz(1.35892748296986, qreg_q[62])
circuit.cz(qreg_q[62], qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(-3.1409523784808897, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.cz(qreg_q[60], qreg_q[61])
circuit.sx(qreg_q[60])
circuit.rz(3.171584726197033, qreg_q[60])
circuit.sx(qreg_q[60])
circuit.rz(3 * pi, qreg_q[60])
circuit.sx(qreg_q[61])
circuit.rz(-2.6546561663919634, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.cz(qreg_q[62], qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(-3.085865033986688, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.cz(qreg_q[54], qreg_q[61])
circuit.sx(qreg_q[54])
circuit.rz(3.3945166682355934, qreg_q[54])
circuit.sx(qreg_q[54])
circuit.rz(3 * pi, qreg_q[54])
circuit.sx(qreg_q[61])
circuit.rz(2.8217583154348596, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.cz(qreg_q[62], qreg_q[61])
circuit.sx(qreg_q[61])
circuit.rz(1.8464478390444716, qreg_q[61])
circuit.sx(qreg_q[61])
circuit.sx(qreg_q[62])
circuit.rz(3.1037790476288323, qreg_q[62])
circuit.sx(qreg_q[62])
circuit.rz(3 * pi, qreg_q[62])
circuit.sx(qreg_q[63])
circuit.rz(3.0510749508789385, qreg_q[63])
circuit.sx(qreg_q[63])
circuit.rz(3 * pi, qreg_q[63])
circuit.barrier(qreg_q[61], qreg_q[62], qreg_q[54], qreg_q[60], qreg_q[63], qreg_q[59])
circuit.measure(qreg_q[61], creg_meas[0])
circuit.measure(qreg_q[62], creg_meas[1])
circuit.measure(qreg_q[54], creg_meas[2])
circuit.measure(qreg_q[60], creg_meas[3])
circuit.measure(qreg_q[63], creg_meas[4])
circuit.measure(qreg_q[59], creg_meas[5])
