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 31f2dc27143648f69bbf9c14e651020b 0 9ee17f5a724545c49ab935eb863dffef X 31f2dc27143648f69bbf9c14e651020b--9ee17f5a724545c49ab935eb863dffef d5b5d053a9934b2b9509d45be6539e01 1 84627066230a48eeaaa1a8e548295baf 9ee17f5a724545c49ab935eb863dffef--84627066230a48eeaaa1a8e548295baf 037f6385c50d4835b43c1c5f6da8687e d810e3ef211b4841982ebc4e7ac75c04 Y d5b5d053a9934b2b9509d45be6539e01--d810e3ef211b4841982ebc4e7ac75c04 d810e3ef211b4841982ebc4e7ac75c04--037f6385c50d4835b43c1c5f6da8687e
from qadence import X, Y, chain
from qadence.draw import display

b = chain(X(0), Y(0))
%3 ebbe3e02ca854d9a9bf75a079dcc5907 0 cbbdd2f21d1b4095bce322a38e2b4b2e X ebbe3e02ca854d9a9bf75a079dcc5907--cbbdd2f21d1b4095bce322a38e2b4b2e 6c852457495e44d2a89c74e5a5c4d245 Y cbbdd2f21d1b4095bce322a38e2b4b2e--6c852457495e44d2a89c74e5a5c4d245 59373b92f0cd4b4a822346146e6e4173 6c852457495e44d2a89c74e5a5c4d245--59373b92f0cd4b4a822346146e6e4173
from qadence import X, Y, chain
from qadence.draw import display

b = chain(X(0), Y(1))
%3 250c0ff38bd34969adfe64913e552d65 0 68963f08738245f0b49622c1c208b440 X 250c0ff38bd34969adfe64913e552d65--68963f08738245f0b49622c1c208b440 ddac4382c5a840b59d8ba80a02aa0cdb 1 093a5ea5b6594cf7b7671245c0109ce7 68963f08738245f0b49622c1c208b440--093a5ea5b6594cf7b7671245c0109ce7 af53cdc85e4548f39714470d688b336f 093a5ea5b6594cf7b7671245c0109ce7--af53cdc85e4548f39714470d688b336f ce6b193c0bd94b2a9a1d863c6d46d2aa 6e9c8eaa35784d0890e706e4fe7bd770 ddac4382c5a840b59d8ba80a02aa0cdb--6e9c8eaa35784d0890e706e4fe7bd770 9e01c32c3bf7424d986f0f884330c91d Y 6e9c8eaa35784d0890e706e4fe7bd770--9e01c32c3bf7424d986f0f884330c91d 9e01c32c3bf7424d986f0f884330c91d--ce6b193c0bd94b2a9a1d863c6d46d2aa
from qadence import X, Y, add
from qadence.draw import display

b = add(X(0), Y(1), X(2))
%3 cluster_275340cae0a7410b8a3775071b12b83f 465474a5918d4e91b4564a13b0071828 0 d76d228aa1754adf8a1a1e1bce4bee3a 465474a5918d4e91b4564a13b0071828--d76d228aa1754adf8a1a1e1bce4bee3a fbd62bbbbe13476fb388fd1121608a30 1 ca30b2a674fe47218391ddbfc20bdaa8 d76d228aa1754adf8a1a1e1bce4bee3a--ca30b2a674fe47218391ddbfc20bdaa8 73d84592dbe44b9f82b404d2a942821d e4eb635f464842c7a1d96967619920e5 AddBlock fbd62bbbbe13476fb388fd1121608a30--e4eb635f464842c7a1d96967619920e5 a694373cd408477fb7d2713a9f655211 2 e4eb635f464842c7a1d96967619920e5--73d84592dbe44b9f82b404d2a942821d 7b06c73e073640939ae670572c6a0beb 2cd4a822d96a4f6ab62d17f29b52063d a694373cd408477fb7d2713a9f655211--2cd4a822d96a4f6ab62d17f29b52063d 2cd4a822d96a4f6ab62d17f29b52063d--7b06c73e073640939ae670572c6a0beb
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_81028d0be33b44179e17d7e3428769e2 cluster_3b417c627e7940e2abe12d6ba8d4cdb1 rx 558282ff465145d0a7bd261021c4849b 0 a3c96a50081c4062ba84bdbc72f5bf77 X 558282ff465145d0a7bd261021c4849b--a3c96a50081c4062ba84bdbc72f5bf77 154d5eec24784aa9a7b2c7c62b0b5957 1 4c0d1adc2b884656bfb0b04fb248faa9 a3c96a50081c4062ba84bdbc72f5bf77--4c0d1adc2b884656bfb0b04fb248faa9 35405239dae94f3c8e0c9a6e7ffaee83 4c0d1adc2b884656bfb0b04fb248faa9--35405239dae94f3c8e0c9a6e7ffaee83 14110423fb874a308c9728d38aebbe09 35405239dae94f3c8e0c9a6e7ffaee83--14110423fb874a308c9728d38aebbe09 ed993e32dad848b69a365b2db7e1a02d ae849bb4c94343f190505738a4159416 Y 154d5eec24784aa9a7b2c7c62b0b5957--ae849bb4c94343f190505738a4159416 a1b6f9a1649d4ff4a9e0ee6c38751ff3 2 fc85102b6a78411b98629380f1975679 ae849bb4c94343f190505738a4159416--fc85102b6a78411b98629380f1975679 d81690d3467b46679f9f36fa274b7fea HamEvo fc85102b6a78411b98629380f1975679--d81690d3467b46679f9f36fa274b7fea d81690d3467b46679f9f36fa274b7fea--ed993e32dad848b69a365b2db7e1a02d a0dcd0f86c9d4dc1b066e632f4ef511b e0360af27ce64b849734e86cf9c4d237 RX(x) a1b6f9a1649d4ff4a9e0ee6c38751ff3--e0360af27ce64b849734e86cf9c4d237 2e0881afb8214352965178c14a97c9bc 3 2efe5b88194e4c738a682f644c3aecfe e0360af27ce64b849734e86cf9c4d237--2efe5b88194e4c738a682f644c3aecfe 3d49f63c16184d37a4e6493273aa2d19 t = 10 2efe5b88194e4c738a682f644c3aecfe--3d49f63c16184d37a4e6493273aa2d19 3d49f63c16184d37a4e6493273aa2d19--a0dcd0f86c9d4dc1b066e632f4ef511b 077307c332244e809cffebb27c705c3e 763cc183cca8429e9b8efa741df601e8 RX(0.5) 2e0881afb8214352965178c14a97c9bc--763cc183cca8429e9b8efa741df601e8 d20ff2a7591941b78bde9d37142cecf3 X 763cc183cca8429e9b8efa741df601e8--d20ff2a7591941b78bde9d37142cecf3 d20ff2a7591941b78bde9d37142cecf3--2efe5b88194e4c738a682f644c3aecfe 25e437eea5c74cb7a34a7288eb266c62 d20ff2a7591941b78bde9d37142cecf3--25e437eea5c74cb7a34a7288eb266c62 25e437eea5c74cb7a34a7288eb266c62--077307c332244e809cffebb27c705c3e
from qadence import feature_map, hea, chain

block = chain(feature_map(4, reupload_scaling="Tower"), hea(4,2))
%3 cluster_acfbc1600bb7493a8a37c53e7f8d467e HEA cluster_f336d0d0c2f34c11979c172d4fdb3f7c Tower Fourier FM 80043cc4b9764aceb0d2dd8d890ab8d4 0 6a399e2914584704b17b0d15f8725052 RX(1.0*phi) 80043cc4b9764aceb0d2dd8d890ab8d4--6a399e2914584704b17b0d15f8725052 04677523588d48808ee95a4ebd7c70ef 1 9bb1abc0a2404f6ea2577bf80fde70bc RX(theta₀) 6a399e2914584704b17b0d15f8725052--9bb1abc0a2404f6ea2577bf80fde70bc ace5a97d40c34ceb8188a60280755992 RY(theta₄) 9bb1abc0a2404f6ea2577bf80fde70bc--ace5a97d40c34ceb8188a60280755992 66634163d2bd4238959f7947afc32572 RX(theta₈) ace5a97d40c34ceb8188a60280755992--66634163d2bd4238959f7947afc32572 ea848a4c9098450084d69d35ece962de 66634163d2bd4238959f7947afc32572--ea848a4c9098450084d69d35ece962de b73ac14b712445fc9307e279f9770e6c ea848a4c9098450084d69d35ece962de--b73ac14b712445fc9307e279f9770e6c ec5bd46cd729483286e2df23ecb4e88e RX(theta₁₂) b73ac14b712445fc9307e279f9770e6c--ec5bd46cd729483286e2df23ecb4e88e fee52fb75cd64ce9a2a7112f5e5b9934 RY(theta₁₆) ec5bd46cd729483286e2df23ecb4e88e--fee52fb75cd64ce9a2a7112f5e5b9934 516ffdd69ab34e57aaa545e101cdd61b RX(theta₂₀) fee52fb75cd64ce9a2a7112f5e5b9934--516ffdd69ab34e57aaa545e101cdd61b d96d1a8549b945a5bb3fc82ebdbdf84f 516ffdd69ab34e57aaa545e101cdd61b--d96d1a8549b945a5bb3fc82ebdbdf84f ad1b6e1c820b4099ad502d070b9d9888 d96d1a8549b945a5bb3fc82ebdbdf84f--ad1b6e1c820b4099ad502d070b9d9888 b830adb1868e48db8dbdf92284461344 ad1b6e1c820b4099ad502d070b9d9888--b830adb1868e48db8dbdf92284461344 72ab31406e014e848c1705489b8f0770 1ff6f214bb4948979085561f8be32ba7 RX(2.0*phi) 04677523588d48808ee95a4ebd7c70ef--1ff6f214bb4948979085561f8be32ba7 37409c6a04404b44bd52a3e9b62bb112 2 dfae4280480c4a87971cafa0d9810b47 RX(theta₁) 1ff6f214bb4948979085561f8be32ba7--dfae4280480c4a87971cafa0d9810b47 0a9a04bb91ce445faaff9bfc7feea7e4 RY(theta₅) dfae4280480c4a87971cafa0d9810b47--0a9a04bb91ce445faaff9bfc7feea7e4 62b459c12dfd4ef4a039c2aa52371c44 RX(theta₉) 0a9a04bb91ce445faaff9bfc7feea7e4--62b459c12dfd4ef4a039c2aa52371c44 9400836240d04d569dee9674c30880b7 X 62b459c12dfd4ef4a039c2aa52371c44--9400836240d04d569dee9674c30880b7 9400836240d04d569dee9674c30880b7--ea848a4c9098450084d69d35ece962de 66a8a1b8e1d44bcbb99b5d4a51a5124b 9400836240d04d569dee9674c30880b7--66a8a1b8e1d44bcbb99b5d4a51a5124b f33f1a7779a142338b6732b819add74e RX(theta₁₃) 66a8a1b8e1d44bcbb99b5d4a51a5124b--f33f1a7779a142338b6732b819add74e 8cff8be035924245baab7aeefeb5ed9f RY(theta₁₇) f33f1a7779a142338b6732b819add74e--8cff8be035924245baab7aeefeb5ed9f a802d9bc85664d19b8111a22902536c6 RX(theta₂₁) 8cff8be035924245baab7aeefeb5ed9f--a802d9bc85664d19b8111a22902536c6 cc4a3f5ca2b74e3aa317ea9bb607fb94 X a802d9bc85664d19b8111a22902536c6--cc4a3f5ca2b74e3aa317ea9bb607fb94 cc4a3f5ca2b74e3aa317ea9bb607fb94--d96d1a8549b945a5bb3fc82ebdbdf84f 5d5c356b8e134e87a19920f88a59b2d9 cc4a3f5ca2b74e3aa317ea9bb607fb94--5d5c356b8e134e87a19920f88a59b2d9 5d5c356b8e134e87a19920f88a59b2d9--72ab31406e014e848c1705489b8f0770 2867b4495d1d493796e4759bf343ea79 6deaf15acb514115bdd64b4234c87b71 RX(3.0*phi) 37409c6a04404b44bd52a3e9b62bb112--6deaf15acb514115bdd64b4234c87b71 bd3da02cd9864cd586c8966079246f17 3 3f488f18cd7340cc98b4333ba8837109 RX(theta₂) 6deaf15acb514115bdd64b4234c87b71--3f488f18cd7340cc98b4333ba8837109 d2f6f9b4e005466ba315cdc092b6d974 RY(theta₆) 3f488f18cd7340cc98b4333ba8837109--d2f6f9b4e005466ba315cdc092b6d974 ef9b42973ec240e4be416d4ca0e361ca RX(theta₁₀) d2f6f9b4e005466ba315cdc092b6d974--ef9b42973ec240e4be416d4ca0e361ca 439434a9084e43408fa3313318689836 ef9b42973ec240e4be416d4ca0e361ca--439434a9084e43408fa3313318689836 6cd36f93ced34ecbb7c5612af26cdbbc X 439434a9084e43408fa3313318689836--6cd36f93ced34ecbb7c5612af26cdbbc 6cd36f93ced34ecbb7c5612af26cdbbc--66a8a1b8e1d44bcbb99b5d4a51a5124b 2ad56021d7cd43998e5611519db8bd8f RX(theta₁₄) 6cd36f93ced34ecbb7c5612af26cdbbc--2ad56021d7cd43998e5611519db8bd8f cea3544b4af8428b8d2aea8d14159963 RY(theta₁₈) 2ad56021d7cd43998e5611519db8bd8f--cea3544b4af8428b8d2aea8d14159963 a80d77df232542bb85d8fc3de8e6c080 RX(theta₂₂) cea3544b4af8428b8d2aea8d14159963--a80d77df232542bb85d8fc3de8e6c080 d4e9b75ca2b44e47ab42a88450a1c9c0 a80d77df232542bb85d8fc3de8e6c080--d4e9b75ca2b44e47ab42a88450a1c9c0 7f5ed3b056f04995b8bea27d9a8c93b5 X d4e9b75ca2b44e47ab42a88450a1c9c0--7f5ed3b056f04995b8bea27d9a8c93b5 7f5ed3b056f04995b8bea27d9a8c93b5--5d5c356b8e134e87a19920f88a59b2d9 7f5ed3b056f04995b8bea27d9a8c93b5--2867b4495d1d493796e4759bf343ea79 321efdaf052b4ffe89d04115b6dea722 b349c6c8c4d54be5a6f3faab58c18cd5 RX(4.0*phi) bd3da02cd9864cd586c8966079246f17--b349c6c8c4d54be5a6f3faab58c18cd5 251aa15935db432c8aa57388d8afacd6 RX(theta₃) b349c6c8c4d54be5a6f3faab58c18cd5--251aa15935db432c8aa57388d8afacd6 57ea9f90fe3a4d5e8389c65eedeb70f9 RY(theta₇) 251aa15935db432c8aa57388d8afacd6--57ea9f90fe3a4d5e8389c65eedeb70f9 3d59c389403547cdae996f8d87b5897f RX(theta₁₁) 57ea9f90fe3a4d5e8389c65eedeb70f9--3d59c389403547cdae996f8d87b5897f 91d98148ec5c40b1aa96634c3e12bf6f X 3d59c389403547cdae996f8d87b5897f--91d98148ec5c40b1aa96634c3e12bf6f 91d98148ec5c40b1aa96634c3e12bf6f--439434a9084e43408fa3313318689836 6a4d7dcb59a54db8bdaa319ed3cf96b1 91d98148ec5c40b1aa96634c3e12bf6f--6a4d7dcb59a54db8bdaa319ed3cf96b1 002261943b234842bf1340d38622d6ec RX(theta₁₅) 6a4d7dcb59a54db8bdaa319ed3cf96b1--002261943b234842bf1340d38622d6ec 38c8ebb3e9534d5e9ad41660c6a75243 RY(theta₁₉) 002261943b234842bf1340d38622d6ec--38c8ebb3e9534d5e9ad41660c6a75243 bb106b5b66b740818cc7b2d955cf7b6d RX(theta₂₃) 38c8ebb3e9534d5e9ad41660c6a75243--bb106b5b66b740818cc7b2d955cf7b6d 63989c24efc44b5397bce0c5669fba67 X bb106b5b66b740818cc7b2d955cf7b6d--63989c24efc44b5397bce0c5669fba67 63989c24efc44b5397bce0c5669fba67--d4e9b75ca2b44e47ab42a88450a1c9c0 609dfea92d3b4942be16b6ff85bec8ce 63989c24efc44b5397bce0c5669fba67--609dfea92d3b4942be16b6ff85bec8ce 609dfea92d3b4942be16b6ff85bec8ce--321efdaf052b4ffe89d04115b6dea722
from qadence import QuantumModel, QuantumCircuit, total_magnetization, hea

model = QuantumModel(QuantumCircuit(3, hea(3,2)), total_magnetization(3))
%3 cluster_28216a808a2d4c9ca6f7be2780992f01 Obs. cluster_bbd61ae789b3419f9f6c4c00f3baa4c9 cluster_c0e8058743054ad4aa95702c25115e64 HEA da148ff44eb04f79855bf49cff0b89b6 0 d1400301d48a4778998b4192bffdafd8 RX(theta₀) da148ff44eb04f79855bf49cff0b89b6--d1400301d48a4778998b4192bffdafd8 2878f5fc69094d8881caa4f0434d0abe 1 7948007fd90d489da8b1599d17d8d975 RY(theta₃) d1400301d48a4778998b4192bffdafd8--7948007fd90d489da8b1599d17d8d975 7af971325b194eeab6af8eaaf94243a7 RX(theta₆) 7948007fd90d489da8b1599d17d8d975--7af971325b194eeab6af8eaaf94243a7 6a869a10285848b093113ade3260d69b 7af971325b194eeab6af8eaaf94243a7--6a869a10285848b093113ade3260d69b f8b00c4385f849b9b7e789de86b897bd 6a869a10285848b093113ade3260d69b--f8b00c4385f849b9b7e789de86b897bd e72cb039e67548b58ebdc9b00b853da1 RX(theta₉) f8b00c4385f849b9b7e789de86b897bd--e72cb039e67548b58ebdc9b00b853da1 a8f4961269334293afae235d73e2b569 RY(theta₁₂) e72cb039e67548b58ebdc9b00b853da1--a8f4961269334293afae235d73e2b569 c367e97298154553b1e971913e7b3a26 RX(theta₁₅) a8f4961269334293afae235d73e2b569--c367e97298154553b1e971913e7b3a26 d5f4745018f1411d92b2ee767c433a05 c367e97298154553b1e971913e7b3a26--d5f4745018f1411d92b2ee767c433a05 4eb8cc47f90c43cdb6ec880270a8fb5c d5f4745018f1411d92b2ee767c433a05--4eb8cc47f90c43cdb6ec880270a8fb5c 8f1362d276d44f4cbb4d16c44387e0f8 4eb8cc47f90c43cdb6ec880270a8fb5c--8f1362d276d44f4cbb4d16c44387e0f8 03ec6999b6894cb784746c5cf86903f4 8f1362d276d44f4cbb4d16c44387e0f8--03ec6999b6894cb784746c5cf86903f4 b0b537ecacdb4d7ca0f198fc8fc00724 e10c1efb2fd0433fb8ec0ef75d4e082c RX(theta₁) 2878f5fc69094d8881caa4f0434d0abe--e10c1efb2fd0433fb8ec0ef75d4e082c f379e19024ee4deda46fd8c04c3c8363 2 5a31ecbcf1924857b9c75956f53fa457 RY(theta₄) e10c1efb2fd0433fb8ec0ef75d4e082c--5a31ecbcf1924857b9c75956f53fa457 552ca9d70683430ab8a0d8f7da84dd7e RX(theta₇) 5a31ecbcf1924857b9c75956f53fa457--552ca9d70683430ab8a0d8f7da84dd7e ad8ae7eb7ddc4bbb91f3c073b9cbb09d X 552ca9d70683430ab8a0d8f7da84dd7e--ad8ae7eb7ddc4bbb91f3c073b9cbb09d ad8ae7eb7ddc4bbb91f3c073b9cbb09d--6a869a10285848b093113ade3260d69b f6aae1b1b671465485620dc5e3f91d92 ad8ae7eb7ddc4bbb91f3c073b9cbb09d--f6aae1b1b671465485620dc5e3f91d92 aef9eccb928347c495f2e665c0965940 RX(theta₁₀) f6aae1b1b671465485620dc5e3f91d92--aef9eccb928347c495f2e665c0965940 c06d23726222488586c273481b4fa1f5 RY(theta₁₃) aef9eccb928347c495f2e665c0965940--c06d23726222488586c273481b4fa1f5 6bfff2b980d94f5a9759f560a159e673 RX(theta₁₆) c06d23726222488586c273481b4fa1f5--6bfff2b980d94f5a9759f560a159e673 e2332c6e8d554e26b2c25a85b11c9ae4 X 6bfff2b980d94f5a9759f560a159e673--e2332c6e8d554e26b2c25a85b11c9ae4 e2332c6e8d554e26b2c25a85b11c9ae4--d5f4745018f1411d92b2ee767c433a05 9fa9f5c04293431f925c4cae2b0bf5f6 e2332c6e8d554e26b2c25a85b11c9ae4--9fa9f5c04293431f925c4cae2b0bf5f6 5840481ae7c34ba7a9f8eb89b748e2f0 AddBlock 9fa9f5c04293431f925c4cae2b0bf5f6--5840481ae7c34ba7a9f8eb89b748e2f0 5840481ae7c34ba7a9f8eb89b748e2f0--b0b537ecacdb4d7ca0f198fc8fc00724 671754388aa44c4c92918364cc460a03 b4382e3469cf4dac87d06b70e1d0e33c RX(theta₂) f379e19024ee4deda46fd8c04c3c8363--b4382e3469cf4dac87d06b70e1d0e33c 39e2fd980dd24265a274653bc4d1c46c RY(theta₅) b4382e3469cf4dac87d06b70e1d0e33c--39e2fd980dd24265a274653bc4d1c46c 2d0056870f3446a9826f1daa0677688f RX(theta₈) 39e2fd980dd24265a274653bc4d1c46c--2d0056870f3446a9826f1daa0677688f 6da45b192c424802bd864213f95ebd74 2d0056870f3446a9826f1daa0677688f--6da45b192c424802bd864213f95ebd74 ee65783d9c8b4b3f975ac4fa227239d6 X 6da45b192c424802bd864213f95ebd74--ee65783d9c8b4b3f975ac4fa227239d6 ee65783d9c8b4b3f975ac4fa227239d6--f6aae1b1b671465485620dc5e3f91d92 e75558d3f8974185bbf818696d9b82a3 RX(theta₁₁) ee65783d9c8b4b3f975ac4fa227239d6--e75558d3f8974185bbf818696d9b82a3 368b4437517b4427b335ba26747220af RY(theta₁₄) e75558d3f8974185bbf818696d9b82a3--368b4437517b4427b335ba26747220af 7838274890f74bd4966321ca7101b991 RX(theta₁₇) 368b4437517b4427b335ba26747220af--7838274890f74bd4966321ca7101b991 a270f8b8bf404dd197f7d5c4d9baf647 7838274890f74bd4966321ca7101b991--a270f8b8bf404dd197f7d5c4d9baf647 6516598d614d4279b7b9671fffebce72 X a270f8b8bf404dd197f7d5c4d9baf647--6516598d614d4279b7b9671fffebce72 6516598d614d4279b7b9671fffebce72--9fa9f5c04293431f925c4cae2b0bf5f6 4e77e9124382426686a7b6da13def338 6516598d614d4279b7b9671fffebce72--4e77e9124382426686a7b6da13def338 4e77e9124382426686a7b6da13def338--671754388aa44c4c92918364cc460a03
from qadence import *

b = chain(SWAP(0,1), SWAP(0,3))
%3 53e886aa4163472e8d31dbce8bbddc4e 0 88079581d49848f78976caea5c26a403 53e886aa4163472e8d31dbce8bbddc4e--88079581d49848f78976caea5c26a403 28c24e8b62a548f6a05b72ac0cdd033a 1 6c572f8cacbb4da387aadc1848ec12e5 671d07984cbc43d0a7901662920fe6a3 88079581d49848f78976caea5c26a403--671d07984cbc43d0a7901662920fe6a3 77177d97a24941459daea90c9be05af3 6c572f8cacbb4da387aadc1848ec12e5--77177d97a24941459daea90c9be05af3 66adf253ea8b4691a861c7aa136eff23 2d4d2dc02275495886a1c4f9428da04c 77177d97a24941459daea90c9be05af3--2d4d2dc02275495886a1c4f9428da04c 644674f551bf44d7a27f09fb01f39f26 66adf253ea8b4691a861c7aa136eff23--644674f551bf44d7a27f09fb01f39f26 e105d61855764c4681f6ded2461c0ce4 9868d442f678415b95dae1f22ccce713 28c24e8b62a548f6a05b72ac0cdd033a--9868d442f678415b95dae1f22ccce713 58f5609719804639b792a4c94379aa17 2 9868d442f678415b95dae1f22ccce713--6c572f8cacbb4da387aadc1848ec12e5 c069edd899714fea9b70d0fb1b5b1344 671d07984cbc43d0a7901662920fe6a3--c069edd899714fea9b70d0fb1b5b1344 1f014421bf6c49d2aebe9794ffdace4a c069edd899714fea9b70d0fb1b5b1344--1f014421bf6c49d2aebe9794ffdace4a 1f014421bf6c49d2aebe9794ffdace4a--e105d61855764c4681f6ded2461c0ce4 d42d648f92ed422b87c371c8d222846d 78bf20fc08834cd2b6b05a6d3020bbda 58f5609719804639b792a4c94379aa17--78bf20fc08834cd2b6b05a6d3020bbda 80896987bf164b36af84fe058c24e146 3 214040c9e4444442bd39f41896169e94 78bf20fc08834cd2b6b05a6d3020bbda--214040c9e4444442bd39f41896169e94 41cfecbbdd3d4fe8a17d0a79c33edb45 214040c9e4444442bd39f41896169e94--41cfecbbdd3d4fe8a17d0a79c33edb45 e3191ddec6b94150adede4c583867454 41cfecbbdd3d4fe8a17d0a79c33edb45--e3191ddec6b94150adede4c583867454 e3191ddec6b94150adede4c583867454--d42d648f92ed422b87c371c8d222846d 18c5098725d54622a8a450fbe6d6f105 348689e137c1467581517cee9511f8e5 80896987bf164b36af84fe058c24e146--348689e137c1467581517cee9511f8e5 c3ae2dcc1ff84210817cd8c7907bb297 348689e137c1467581517cee9511f8e5--c3ae2dcc1ff84210817cd8c7907bb297 ec807b0aeed449099ca08e3e127eb466 c3ae2dcc1ff84210817cd8c7907bb297--ec807b0aeed449099ca08e3e127eb466 ec807b0aeed449099ca08e3e127eb466--66adf253ea8b4691a861c7aa136eff23 2d4d2dc02275495886a1c4f9428da04c--18c5098725d54622a8a450fbe6d6f105
from qadence import *

b = chain(CPHASE(0, 1, 0.5), CPHASE(0, 2, 0.5), CPHASE(0, 3, 0.5))
%3 b7f3e533aebb47078604f15e7456b49f 0 4f3d678316fb47778043129c35d11eb5 b7f3e533aebb47078604f15e7456b49f--4f3d678316fb47778043129c35d11eb5 d21764b69dbc43dca4532a03f839de2d 1 885eba56a04947bd820c02cb6fdd0ffc 4f3d678316fb47778043129c35d11eb5--885eba56a04947bd820c02cb6fdd0ffc 844d6eda8f944a88bb1cac166368b420 885eba56a04947bd820c02cb6fdd0ffc--844d6eda8f944a88bb1cac166368b420 f9ac1f3bb2184f6a83ab71c975ff8c88 844d6eda8f944a88bb1cac166368b420--f9ac1f3bb2184f6a83ab71c975ff8c88 7be549e77efc4ec09620e8838a046ec5 8bdd8ba400144cfbbebda002bf5eb24c PHASE(0.5) d21764b69dbc43dca4532a03f839de2d--8bdd8ba400144cfbbebda002bf5eb24c 56f3b3a70d5f43119e64d3af06ad191f 2 8bdd8ba400144cfbbebda002bf5eb24c--4f3d678316fb47778043129c35d11eb5 0f150bb3975e4df9ba527700cc3785b0 8bdd8ba400144cfbbebda002bf5eb24c--0f150bb3975e4df9ba527700cc3785b0 3c5a78e6283a437fa2a939a17653bf78 0f150bb3975e4df9ba527700cc3785b0--3c5a78e6283a437fa2a939a17653bf78 3c5a78e6283a437fa2a939a17653bf78--7be549e77efc4ec09620e8838a046ec5 8b384636ae8a4071b4942f5bab34c9cc 45fca6b4913d440a82d57c788291fd9f 56f3b3a70d5f43119e64d3af06ad191f--45fca6b4913d440a82d57c788291fd9f de23ed025a644af08f4ed4017bd6200f 3 d98f31f8915c4683a3c650b4f255bd2d PHASE(0.5) 45fca6b4913d440a82d57c788291fd9f--d98f31f8915c4683a3c650b4f255bd2d d98f31f8915c4683a3c650b4f255bd2d--885eba56a04947bd820c02cb6fdd0ffc a2a8b68a04b24c9bb057af37db1a91dc d98f31f8915c4683a3c650b4f255bd2d--a2a8b68a04b24c9bb057af37db1a91dc a2a8b68a04b24c9bb057af37db1a91dc--8b384636ae8a4071b4942f5bab34c9cc 1f75bd472db1491b95bfaae80367c135 b7b55fe555fd4758a545bf1478aebb61 de23ed025a644af08f4ed4017bd6200f--b7b55fe555fd4758a545bf1478aebb61 da902ced426f45b1bea24f7a1270708b b7b55fe555fd4758a545bf1478aebb61--da902ced426f45b1bea24f7a1270708b 29eeee14388c4683aa42f9654286faf9 PHASE(0.5) da902ced426f45b1bea24f7a1270708b--29eeee14388c4683aa42f9654286faf9 29eeee14388c4683aa42f9654286faf9--844d6eda8f944a88bb1cac166368b420 29eeee14388c4683aa42f9654286faf9--1f75bd472db1491b95bfaae80367c135

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