Skip to content

qadence.draw example plots

Mostly for quick, manual checking of correct plotting output.

from qadence import X, Y, kron
from qadence.draw import display

b = kron(X(0), Y(1))
%3 6cf23ea4bd004bcfb0f67962036fe881 0 9b6bbf930c4744ccb999288c8cc97e7c X 6cf23ea4bd004bcfb0f67962036fe881--9b6bbf930c4744ccb999288c8cc97e7c 4f8607f749bc47e28f54cbe2caaca1d8 1 1fb49d5e648d40c38a193586df0e7449 9b6bbf930c4744ccb999288c8cc97e7c--1fb49d5e648d40c38a193586df0e7449 44e4d3ed16b74a3fb2219dada6dbab92 320eae874028480199eede9b34f399dd Y 4f8607f749bc47e28f54cbe2caaca1d8--320eae874028480199eede9b34f399dd 320eae874028480199eede9b34f399dd--44e4d3ed16b74a3fb2219dada6dbab92
from qadence import X, Y, chain
from qadence.draw import display

b = chain(X(0), Y(0))
%3 a4f49c4b441d41ebadc535ef5d796f2c 0 9686d5fb1d8c4803b62069292ebb088c X a4f49c4b441d41ebadc535ef5d796f2c--9686d5fb1d8c4803b62069292ebb088c d92a8002ecbc4ba986d92f7ec1d2ba4d Y 9686d5fb1d8c4803b62069292ebb088c--d92a8002ecbc4ba986d92f7ec1d2ba4d 288541d42100446b824375d3b4654fb4 d92a8002ecbc4ba986d92f7ec1d2ba4d--288541d42100446b824375d3b4654fb4
from qadence import X, Y, chain
from qadence.draw import display

b = chain(X(0), Y(1))
%3 b0332ac3ea624d87bebb9250bdf25711 0 b1edad358f4a4aea930b07cb1c0073b3 X b0332ac3ea624d87bebb9250bdf25711--b1edad358f4a4aea930b07cb1c0073b3 c774045fe75340c79ae2326c0cd1edd6 1 41bcd4035d66449d8691563ce74b3819 b1edad358f4a4aea930b07cb1c0073b3--41bcd4035d66449d8691563ce74b3819 a912db92517c4728adf4cc40ba10cf6e 41bcd4035d66449d8691563ce74b3819--a912db92517c4728adf4cc40ba10cf6e f5021e3c430348008646c91d4b714656 1318255e05e84903810fda4d4db39468 c774045fe75340c79ae2326c0cd1edd6--1318255e05e84903810fda4d4db39468 edd3eda9fe1d47abb979d084d297e984 Y 1318255e05e84903810fda4d4db39468--edd3eda9fe1d47abb979d084d297e984 edd3eda9fe1d47abb979d084d297e984--f5021e3c430348008646c91d4b714656
from qadence import X, Y, add
from qadence.draw import display

b = add(X(0), Y(1), X(2))
%3 cluster_10c447e0a25e410e9b21e8fe43d200b0 d542be1b78ac4b3a86d90a124c66febc 0 73d469df4b8e45b089930b2cf12dda32 d542be1b78ac4b3a86d90a124c66febc--73d469df4b8e45b089930b2cf12dda32 d31540ee65324c11982e511e6776d510 1 a2b88b1afd704c7e901c7a342e079bd6 73d469df4b8e45b089930b2cf12dda32--a2b88b1afd704c7e901c7a342e079bd6 831de3acd3aa46b5b20abf3e9f4b727d 8986109027d0459daf59cae5caf35cb8 AddBlock d31540ee65324c11982e511e6776d510--8986109027d0459daf59cae5caf35cb8 ba4303d4ff2d4855a0bf7e294c59401d 2 8986109027d0459daf59cae5caf35cb8--831de3acd3aa46b5b20abf3e9f4b727d c2032c1242b344128a7e7ee13bce17af e3124b377b664c02ae87d79fb3892d94 ba4303d4ff2d4855a0bf7e294c59401d--e3124b377b664c02ae87d79fb3892d94 e3124b377b664c02ae87d79fb3892d94--c2032c1242b344128a7e7ee13bce17af
from qadence import CNOT, RX, HamEvo, X, Y, Z, chain, kron

rx = kron(RX(3,0.5), RX(2, "x"))
rx.tag = "rx"
gen = chain(Z(i) for i in range(4))

# `chain` puts things in sequence
block = chain(
    kron(X(0), Y(1), rx),
    CNOT(2,3),
    HamEvo(gen, 10)
)
%3 cluster_b226aa4ddf444c53bf94b54995cbd9e9 cluster_f342f95750b541cf8e7d389fde645e66 rx be40191f6be24f028a5f9ef754cd38ba 0 ac0e22fc804a40778de4e792b5cfa2bc X be40191f6be24f028a5f9ef754cd38ba--ac0e22fc804a40778de4e792b5cfa2bc ff1a2752c68a437e80a4cbd86ac3ab14 1 54337cc77f8948fc91822646e7938fdf ac0e22fc804a40778de4e792b5cfa2bc--54337cc77f8948fc91822646e7938fdf a1d22450ad1a41bea3316c763d9e62b5 54337cc77f8948fc91822646e7938fdf--a1d22450ad1a41bea3316c763d9e62b5 c130360ddfc340bfaed74b5acea05ccc a1d22450ad1a41bea3316c763d9e62b5--c130360ddfc340bfaed74b5acea05ccc d49695c7a81444a0b8bec942fc3bc647 0f5555d5e7c0446c967f6c7683941324 Y ff1a2752c68a437e80a4cbd86ac3ab14--0f5555d5e7c0446c967f6c7683941324 e50586ee46fe4e0594960f677cbce4c5 2 d794bdce6e8b44f0b5c895bdc0bf37d8 0f5555d5e7c0446c967f6c7683941324--d794bdce6e8b44f0b5c895bdc0bf37d8 31b58e8720a2455282fd5a52b95044fe HamEvo d794bdce6e8b44f0b5c895bdc0bf37d8--31b58e8720a2455282fd5a52b95044fe 31b58e8720a2455282fd5a52b95044fe--d49695c7a81444a0b8bec942fc3bc647 1d904dee9b9c4212a39fc7ba23094884 6d2ff58b62134e4da14764973cc1a92f RX(x) e50586ee46fe4e0594960f677cbce4c5--6d2ff58b62134e4da14764973cc1a92f 69895fc7f9494c38955249aa4a693c14 3 12b91d2819864c98aa4a58710a5b3b47 6d2ff58b62134e4da14764973cc1a92f--12b91d2819864c98aa4a58710a5b3b47 25d89d8216144bf995c39339ff5b1faa t = 10 12b91d2819864c98aa4a58710a5b3b47--25d89d8216144bf995c39339ff5b1faa 25d89d8216144bf995c39339ff5b1faa--1d904dee9b9c4212a39fc7ba23094884 f4e38420ffdd446c9cc2b5a61e000143 4c59f928045e4213af8fdfd3daa72743 RX(0.5) 69895fc7f9494c38955249aa4a693c14--4c59f928045e4213af8fdfd3daa72743 29e41c820ac041dba278885aea9de667 X 4c59f928045e4213af8fdfd3daa72743--29e41c820ac041dba278885aea9de667 29e41c820ac041dba278885aea9de667--12b91d2819864c98aa4a58710a5b3b47 2c058caaafca4a39b2b321a0b28f48f7 29e41c820ac041dba278885aea9de667--2c058caaafca4a39b2b321a0b28f48f7 2c058caaafca4a39b2b321a0b28f48f7--f4e38420ffdd446c9cc2b5a61e000143
from qadence import feature_map, hea, chain

block = chain(feature_map(4, reupload_scaling="Tower"), hea(4,2))
%3 cluster_a8c1f8454e324346b165f52a7ee4f9d7 HEA cluster_1f71f984c95e4386be7a98fe0d759a35 Tower Fourier FM c52b5567264b430bb936bd53a965ddf7 0 9ca43df3ff3f41189098cc6c4bd1c920 RX(1.0*phi) c52b5567264b430bb936bd53a965ddf7--9ca43df3ff3f41189098cc6c4bd1c920 2a8018a32aa24fa297c21149f8ef09cb 1 488bbb8117454d7ca5d5530580287d42 RX(theta₀) 9ca43df3ff3f41189098cc6c4bd1c920--488bbb8117454d7ca5d5530580287d42 9444a607b8614f318b0b57ec4f6a29c4 RY(theta₄) 488bbb8117454d7ca5d5530580287d42--9444a607b8614f318b0b57ec4f6a29c4 da51b2d05ebe40bb868f2695c56e164b RX(theta₈) 9444a607b8614f318b0b57ec4f6a29c4--da51b2d05ebe40bb868f2695c56e164b a61b064a1c0a45b4a1a35c3768bdf7f3 da51b2d05ebe40bb868f2695c56e164b--a61b064a1c0a45b4a1a35c3768bdf7f3 e6332278cb644f04acb56a9d8971b610 a61b064a1c0a45b4a1a35c3768bdf7f3--e6332278cb644f04acb56a9d8971b610 921a98428da0441482dc6ba370de5da9 RX(theta₁₂) e6332278cb644f04acb56a9d8971b610--921a98428da0441482dc6ba370de5da9 af35b07281f141329847fa82e2aadae3 RY(theta₁₆) 921a98428da0441482dc6ba370de5da9--af35b07281f141329847fa82e2aadae3 a9771300098e42589383dc39cb97b159 RX(theta₂₀) af35b07281f141329847fa82e2aadae3--a9771300098e42589383dc39cb97b159 6ed2aee64e26401599932fb60e395f27 a9771300098e42589383dc39cb97b159--6ed2aee64e26401599932fb60e395f27 7077f16b26204fa5bea982cd631693e5 6ed2aee64e26401599932fb60e395f27--7077f16b26204fa5bea982cd631693e5 85beaf2575634a0abd9960fe46f970ff 7077f16b26204fa5bea982cd631693e5--85beaf2575634a0abd9960fe46f970ff 4d516113a14a410cad2f29b44146a5dc 85ec9fc52856493781f2429ddbc6a003 RX(2.0*phi) 2a8018a32aa24fa297c21149f8ef09cb--85ec9fc52856493781f2429ddbc6a003 5b9784d872144b6bbf01f53579cdff73 2 7dd98e694a5d4d9682ab20946256b9ff RX(theta₁) 85ec9fc52856493781f2429ddbc6a003--7dd98e694a5d4d9682ab20946256b9ff f7a1c18492354ec280ec49c484f5850a RY(theta₅) 7dd98e694a5d4d9682ab20946256b9ff--f7a1c18492354ec280ec49c484f5850a eaac4dc389db402ca7abff7b77cb7021 RX(theta₉) f7a1c18492354ec280ec49c484f5850a--eaac4dc389db402ca7abff7b77cb7021 3ed1fa2e593f4f838ebd6da538e6ab20 X eaac4dc389db402ca7abff7b77cb7021--3ed1fa2e593f4f838ebd6da538e6ab20 3ed1fa2e593f4f838ebd6da538e6ab20--a61b064a1c0a45b4a1a35c3768bdf7f3 690462a7440d46b497418c64d2b1e8a0 3ed1fa2e593f4f838ebd6da538e6ab20--690462a7440d46b497418c64d2b1e8a0 06cfa063b9c040d599c7b1765069adfe RX(theta₁₃) 690462a7440d46b497418c64d2b1e8a0--06cfa063b9c040d599c7b1765069adfe ca9cd54c458947418a04c43beac93455 RY(theta₁₇) 06cfa063b9c040d599c7b1765069adfe--ca9cd54c458947418a04c43beac93455 d97d177e8c924a37939acdc9569e96e9 RX(theta₂₁) ca9cd54c458947418a04c43beac93455--d97d177e8c924a37939acdc9569e96e9 2e53bfad42804b849d1aa0a403aabf7e X d97d177e8c924a37939acdc9569e96e9--2e53bfad42804b849d1aa0a403aabf7e 2e53bfad42804b849d1aa0a403aabf7e--6ed2aee64e26401599932fb60e395f27 3e244dcfbb71481f8663bd5894da818b 2e53bfad42804b849d1aa0a403aabf7e--3e244dcfbb71481f8663bd5894da818b 3e244dcfbb71481f8663bd5894da818b--4d516113a14a410cad2f29b44146a5dc 6bc0cc635fdb422b841eeb9e6dcc5d42 7520a14295ee404eb382f2da09af405f RX(3.0*phi) 5b9784d872144b6bbf01f53579cdff73--7520a14295ee404eb382f2da09af405f ec0c75b9bc5d498092c1f6a31ac5a5d5 3 ba5e0a5196064949ab5078af850dc9a1 RX(theta₂) 7520a14295ee404eb382f2da09af405f--ba5e0a5196064949ab5078af850dc9a1 4a5cf94d43344e62b5c0972272813f69 RY(theta₆) ba5e0a5196064949ab5078af850dc9a1--4a5cf94d43344e62b5c0972272813f69 2214d9fc24474a51a08b74632c5fcc33 RX(theta₁₀) 4a5cf94d43344e62b5c0972272813f69--2214d9fc24474a51a08b74632c5fcc33 8d882bef70b8409887472191006aea23 2214d9fc24474a51a08b74632c5fcc33--8d882bef70b8409887472191006aea23 aff4bc60d6ed4ed9906e1843e3b6a735 X 8d882bef70b8409887472191006aea23--aff4bc60d6ed4ed9906e1843e3b6a735 aff4bc60d6ed4ed9906e1843e3b6a735--690462a7440d46b497418c64d2b1e8a0 493e03ecbd4045bcba6dbf49758ac5f9 RX(theta₁₄) aff4bc60d6ed4ed9906e1843e3b6a735--493e03ecbd4045bcba6dbf49758ac5f9 f65395cfe5674ad7afa2be2a05a90291 RY(theta₁₈) 493e03ecbd4045bcba6dbf49758ac5f9--f65395cfe5674ad7afa2be2a05a90291 610a241d754d44b4ba224a3d2908c79b RX(theta₂₂) f65395cfe5674ad7afa2be2a05a90291--610a241d754d44b4ba224a3d2908c79b 66b751900daa4101a4099822abc7f498 610a241d754d44b4ba224a3d2908c79b--66b751900daa4101a4099822abc7f498 b97a46f379b44c088893fb9b4f43e858 X 66b751900daa4101a4099822abc7f498--b97a46f379b44c088893fb9b4f43e858 b97a46f379b44c088893fb9b4f43e858--3e244dcfbb71481f8663bd5894da818b b97a46f379b44c088893fb9b4f43e858--6bc0cc635fdb422b841eeb9e6dcc5d42 3b1d2a3b21fb4c1bae3ba8c2c98a7afe f092286a035247f290024304e5026230 RX(4.0*phi) ec0c75b9bc5d498092c1f6a31ac5a5d5--f092286a035247f290024304e5026230 f65d26c4428b45958a40664ed996d4af RX(theta₃) f092286a035247f290024304e5026230--f65d26c4428b45958a40664ed996d4af 6cd0ee2c3ff7490f9f781245108847e5 RY(theta₇) f65d26c4428b45958a40664ed996d4af--6cd0ee2c3ff7490f9f781245108847e5 5a7c236f31ea45d38e8ff1eb3170bbb3 RX(theta₁₁) 6cd0ee2c3ff7490f9f781245108847e5--5a7c236f31ea45d38e8ff1eb3170bbb3 10757ef5e4724f30a3bea56d463a5759 X 5a7c236f31ea45d38e8ff1eb3170bbb3--10757ef5e4724f30a3bea56d463a5759 10757ef5e4724f30a3bea56d463a5759--8d882bef70b8409887472191006aea23 3a1a5718472a4d06bdc8971123bd4142 10757ef5e4724f30a3bea56d463a5759--3a1a5718472a4d06bdc8971123bd4142 e969743ca8a14342bbf6f40065a1f45e RX(theta₁₅) 3a1a5718472a4d06bdc8971123bd4142--e969743ca8a14342bbf6f40065a1f45e 172b5786662d4f4cadcc3e8ca88ae549 RY(theta₁₉) e969743ca8a14342bbf6f40065a1f45e--172b5786662d4f4cadcc3e8ca88ae549 fd79a4eb45914d1391055dfbd7c7120a RX(theta₂₃) 172b5786662d4f4cadcc3e8ca88ae549--fd79a4eb45914d1391055dfbd7c7120a 6b09857a474d480992400da56cc6777d X fd79a4eb45914d1391055dfbd7c7120a--6b09857a474d480992400da56cc6777d 6b09857a474d480992400da56cc6777d--66b751900daa4101a4099822abc7f498 9d9ff3dfc39f4cf6aa19079ebcfad0af 6b09857a474d480992400da56cc6777d--9d9ff3dfc39f4cf6aa19079ebcfad0af 9d9ff3dfc39f4cf6aa19079ebcfad0af--3b1d2a3b21fb4c1bae3ba8c2c98a7afe
from qadence import QuantumModel, QuantumCircuit, total_magnetization, hea

model = QuantumModel(QuantumCircuit(3, hea(3,2)), total_magnetization(3))
%3 cluster_b5738c92a0924ffe96a9bf3f21515377 Obs. cluster_a220397d12904e119bf210ef2eb56fe8 cluster_5918879ed49c49eab0049fc5170e4e7b HEA edf25aa221554878802bb6a724e99e22 0 4fededfd17d04b4c9119ef5b836c1d2b RX(theta₀) edf25aa221554878802bb6a724e99e22--4fededfd17d04b4c9119ef5b836c1d2b 6ebb9010b37e4fa4a017bca64aa8a70d 1 09186d9e37dc46529198bbeca8a5f316 RY(theta₃) 4fededfd17d04b4c9119ef5b836c1d2b--09186d9e37dc46529198bbeca8a5f316 a37c1aebad754c28b1576b9ba412acb4 RX(theta₆) 09186d9e37dc46529198bbeca8a5f316--a37c1aebad754c28b1576b9ba412acb4 de32d83535824f3bb42d67b16e3c77bd a37c1aebad754c28b1576b9ba412acb4--de32d83535824f3bb42d67b16e3c77bd 1ee75bcad31e4c3c8d8a236754b9561b de32d83535824f3bb42d67b16e3c77bd--1ee75bcad31e4c3c8d8a236754b9561b 01a45821d64d4e9da0532c60e3ad4fb5 RX(theta₉) 1ee75bcad31e4c3c8d8a236754b9561b--01a45821d64d4e9da0532c60e3ad4fb5 ac6e4ab994804fd3b57b16d50b802e43 RY(theta₁₂) 01a45821d64d4e9da0532c60e3ad4fb5--ac6e4ab994804fd3b57b16d50b802e43 7092ca3db1664f3d8f512ee7fba6fd2f RX(theta₁₅) ac6e4ab994804fd3b57b16d50b802e43--7092ca3db1664f3d8f512ee7fba6fd2f c041d67ae08d468ba9e9d5c65263af91 7092ca3db1664f3d8f512ee7fba6fd2f--c041d67ae08d468ba9e9d5c65263af91 47f77839ec8244e5b197aa4fb3d45600 c041d67ae08d468ba9e9d5c65263af91--47f77839ec8244e5b197aa4fb3d45600 fd8e66bf52fe48caa544cc1e0bc32642 47f77839ec8244e5b197aa4fb3d45600--fd8e66bf52fe48caa544cc1e0bc32642 ed69c7e7c7c540c4a96cce07d52a2ccc fd8e66bf52fe48caa544cc1e0bc32642--ed69c7e7c7c540c4a96cce07d52a2ccc dcb70b19d7954250b5d58f7a15a47879 3e94f6b5c95347b7b07e47215063b91b RX(theta₁) 6ebb9010b37e4fa4a017bca64aa8a70d--3e94f6b5c95347b7b07e47215063b91b dc34ab17bba2458894808fa1926dba58 2 5dd8d1ba1cdd4b17be634c922dd7295a RY(theta₄) 3e94f6b5c95347b7b07e47215063b91b--5dd8d1ba1cdd4b17be634c922dd7295a bc1fd7a0b6d947caa60158267565f91f RX(theta₇) 5dd8d1ba1cdd4b17be634c922dd7295a--bc1fd7a0b6d947caa60158267565f91f 1cdfb8b733254c50b7f82eac8964e9b6 X bc1fd7a0b6d947caa60158267565f91f--1cdfb8b733254c50b7f82eac8964e9b6 1cdfb8b733254c50b7f82eac8964e9b6--de32d83535824f3bb42d67b16e3c77bd e4d1688ce73a46648a6675cc46152df8 1cdfb8b733254c50b7f82eac8964e9b6--e4d1688ce73a46648a6675cc46152df8 46f662f01bc44d618b21a78887b32d1e RX(theta₁₀) e4d1688ce73a46648a6675cc46152df8--46f662f01bc44d618b21a78887b32d1e 836cb250105b449baaac4104be193666 RY(theta₁₃) 46f662f01bc44d618b21a78887b32d1e--836cb250105b449baaac4104be193666 bfd0030a4b0e4e4f903b54277d889f59 RX(theta₁₆) 836cb250105b449baaac4104be193666--bfd0030a4b0e4e4f903b54277d889f59 80a9a59d7166411b9f4164247dc74251 X bfd0030a4b0e4e4f903b54277d889f59--80a9a59d7166411b9f4164247dc74251 80a9a59d7166411b9f4164247dc74251--c041d67ae08d468ba9e9d5c65263af91 172cb19f886d48a999a5e4c6e90d7977 80a9a59d7166411b9f4164247dc74251--172cb19f886d48a999a5e4c6e90d7977 9231d1e0ab2547d3bb9b31ea5ca0b1f9 AddBlock 172cb19f886d48a999a5e4c6e90d7977--9231d1e0ab2547d3bb9b31ea5ca0b1f9 9231d1e0ab2547d3bb9b31ea5ca0b1f9--dcb70b19d7954250b5d58f7a15a47879 da29ac44afe545d6a2be5cf6c46817dc 856b375270624ce28094b8b08a0c8ae7 RX(theta₂) dc34ab17bba2458894808fa1926dba58--856b375270624ce28094b8b08a0c8ae7 754ef9aead0a475e816e636ab73f5fac RY(theta₅) 856b375270624ce28094b8b08a0c8ae7--754ef9aead0a475e816e636ab73f5fac 5c9888dcdda5403b992cddf4d2049d3a RX(theta₈) 754ef9aead0a475e816e636ab73f5fac--5c9888dcdda5403b992cddf4d2049d3a 7017486a6ee84324bd96ade92f80d096 5c9888dcdda5403b992cddf4d2049d3a--7017486a6ee84324bd96ade92f80d096 af05110f36a546d0825822184075043e X 7017486a6ee84324bd96ade92f80d096--af05110f36a546d0825822184075043e af05110f36a546d0825822184075043e--e4d1688ce73a46648a6675cc46152df8 550f7c1cf2174754b78a28ee5969983b RX(theta₁₁) af05110f36a546d0825822184075043e--550f7c1cf2174754b78a28ee5969983b 3f9771a302c7452e8f360e4cf9500f1f RY(theta₁₄) 550f7c1cf2174754b78a28ee5969983b--3f9771a302c7452e8f360e4cf9500f1f bfa3301a07d54855a61305a91f167873 RX(theta₁₇) 3f9771a302c7452e8f360e4cf9500f1f--bfa3301a07d54855a61305a91f167873 db79f1c16c094162a19df56e639ad432 bfa3301a07d54855a61305a91f167873--db79f1c16c094162a19df56e639ad432 0e0a92ea77b84e3cad2430950ea91323 X db79f1c16c094162a19df56e639ad432--0e0a92ea77b84e3cad2430950ea91323 0e0a92ea77b84e3cad2430950ea91323--172cb19f886d48a999a5e4c6e90d7977 361d11a59eb344279a0e92c3b29f43d6 0e0a92ea77b84e3cad2430950ea91323--361d11a59eb344279a0e92c3b29f43d6 361d11a59eb344279a0e92c3b29f43d6--da29ac44afe545d6a2be5cf6c46817dc
from qadence import *

b = chain(SWAP(0,1), SWAP(0,3))
%3 397c7cc5ceca48419bdb592f3e03b5aa 0 6c5d5aeb3bf04531b79d56a22e743393 397c7cc5ceca48419bdb592f3e03b5aa--6c5d5aeb3bf04531b79d56a22e743393 2e464a5bab8f409dbb1e2c1ff4d9868c 1 1c0def3f68464c769d7d625582b1e4c5 3f17d2b8bf99402fbee7842c609131d9 6c5d5aeb3bf04531b79d56a22e743393--3f17d2b8bf99402fbee7842c609131d9 14dd2192ed0f4beb919b0dbddc32d50a 1c0def3f68464c769d7d625582b1e4c5--14dd2192ed0f4beb919b0dbddc32d50a 4e6f63a1f06e431ba9dd4dfb9fbdbbe8 bf3dc5aefe02407888bd198ebf1f2204 14dd2192ed0f4beb919b0dbddc32d50a--bf3dc5aefe02407888bd198ebf1f2204 d6e6aa56189b48d09fa0118473409a43 4e6f63a1f06e431ba9dd4dfb9fbdbbe8--d6e6aa56189b48d09fa0118473409a43 7b4c272425294cf2bb3210bc56eb22bd 191accae10e349f0ab31b792bae38ea7 2e464a5bab8f409dbb1e2c1ff4d9868c--191accae10e349f0ab31b792bae38ea7 665085f057c849d2bb49cf305253f0cc 2 191accae10e349f0ab31b792bae38ea7--1c0def3f68464c769d7d625582b1e4c5 8d818ec3a8f34d44a36b8fae1f1ab56c 3f17d2b8bf99402fbee7842c609131d9--8d818ec3a8f34d44a36b8fae1f1ab56c 18822011b4014eb0a32beae88aec1d14 8d818ec3a8f34d44a36b8fae1f1ab56c--18822011b4014eb0a32beae88aec1d14 18822011b4014eb0a32beae88aec1d14--7b4c272425294cf2bb3210bc56eb22bd b57c513cef8740f994a1b1602cd1838a e30fbbfec2d249b29cce91549c98a3d2 665085f057c849d2bb49cf305253f0cc--e30fbbfec2d249b29cce91549c98a3d2 4241b192f7df4eca8286db90cf5074e5 3 17aae5d7408948e5ae8711ff6b9cdb09 e30fbbfec2d249b29cce91549c98a3d2--17aae5d7408948e5ae8711ff6b9cdb09 394a4309076c45b094dbdbe614ae920a 17aae5d7408948e5ae8711ff6b9cdb09--394a4309076c45b094dbdbe614ae920a 3434d1ae5b1449f1b813731a1c9b2671 394a4309076c45b094dbdbe614ae920a--3434d1ae5b1449f1b813731a1c9b2671 3434d1ae5b1449f1b813731a1c9b2671--b57c513cef8740f994a1b1602cd1838a 08c1470132ea4c64970b154f504d3473 0e7fe9edb072432c82a1137f7a0516bb 4241b192f7df4eca8286db90cf5074e5--0e7fe9edb072432c82a1137f7a0516bb e0eb25f44b974744a9b3e833fd8fba55 0e7fe9edb072432c82a1137f7a0516bb--e0eb25f44b974744a9b3e833fd8fba55 594a957440f34da280152a159034968b e0eb25f44b974744a9b3e833fd8fba55--594a957440f34da280152a159034968b 594a957440f34da280152a159034968b--4e6f63a1f06e431ba9dd4dfb9fbdbbe8 bf3dc5aefe02407888bd198ebf1f2204--08c1470132ea4c64970b154f504d3473
from qadence import *

b = chain(CPHASE(0, 1, 0.5), CPHASE(0, 2, 0.5), CPHASE(0, 3, 0.5))
%3 ba5374f01a084b8d9b6803782ffe62e6 0 94a6c5b63fad4a40bebda4b5732ea434 ba5374f01a084b8d9b6803782ffe62e6--94a6c5b63fad4a40bebda4b5732ea434 982e4787e4ef405593d6e8dd4f8cb3b5 1 26e50217aa9b489d80e2e95d3ee3a009 94a6c5b63fad4a40bebda4b5732ea434--26e50217aa9b489d80e2e95d3ee3a009 e9422bd543fe4d0eb372d0af43f92d4f 26e50217aa9b489d80e2e95d3ee3a009--e9422bd543fe4d0eb372d0af43f92d4f 14a0cd94619640fd9a2500c82f614560 e9422bd543fe4d0eb372d0af43f92d4f--14a0cd94619640fd9a2500c82f614560 ff5a798ffd51482a8c5dbad2c993ae99 3e93c685b16a4bd68c15e603af4f3ac1 PHASE(0.5) 982e4787e4ef405593d6e8dd4f8cb3b5--3e93c685b16a4bd68c15e603af4f3ac1 d553214c8c494ebc8e9342685e224fa7 2 3e93c685b16a4bd68c15e603af4f3ac1--94a6c5b63fad4a40bebda4b5732ea434 ec26785a470549da9648613661e89d0a 3e93c685b16a4bd68c15e603af4f3ac1--ec26785a470549da9648613661e89d0a 341816534d6b477ea431bc6d2731d043 ec26785a470549da9648613661e89d0a--341816534d6b477ea431bc6d2731d043 341816534d6b477ea431bc6d2731d043--ff5a798ffd51482a8c5dbad2c993ae99 6f6bc68ff3214ff9b833d027bc357b79 e8bd980f3eb3479a9e1922a05204ad8a d553214c8c494ebc8e9342685e224fa7--e8bd980f3eb3479a9e1922a05204ad8a 7db454c24a894478af8e6674379396c4 3 20ba2e7fa9d44c0eade490a0df4f84da PHASE(0.5) e8bd980f3eb3479a9e1922a05204ad8a--20ba2e7fa9d44c0eade490a0df4f84da 20ba2e7fa9d44c0eade490a0df4f84da--26e50217aa9b489d80e2e95d3ee3a009 cf87f4ed42ba4fdab5be912998b45648 20ba2e7fa9d44c0eade490a0df4f84da--cf87f4ed42ba4fdab5be912998b45648 cf87f4ed42ba4fdab5be912998b45648--6f6bc68ff3214ff9b833d027bc357b79 11eb6302bd5d4e58878f647c0e7c1f45 0ae70455679a487b9bcf694b8a169efe 7db454c24a894478af8e6674379396c4--0ae70455679a487b9bcf694b8a169efe e16fb9b386cf4dadb03dadf5c3bbab04 0ae70455679a487b9bcf694b8a169efe--e16fb9b386cf4dadb03dadf5c3bbab04 32645a41922a4ad1b1c6e68ff4ea9dd3 PHASE(0.5) e16fb9b386cf4dadb03dadf5c3bbab04--32645a41922a4ad1b1c6e68ff4ea9dd3 32645a41922a4ad1b1c6e68ff4ea9dd3--e9422bd543fe4d0eb372d0af43f92d4f 32645a41922a4ad1b1c6e68ff4ea9dd3--11eb6302bd5d4e58878f647c0e7c1f45

Developer documentation

This section contains examples in pure graphviz that can be used to understand roughly what is done in the actual drawing backend.

Example of cluster of clusters