User Portlet
Featured Contributor
Discussions |
---|
All you have to do is to define what gate would correspond to each arity hyperedge, if it's just Z, CZ, CZZ, etc., then something like this works (assuming a simple hypergraph with only unique vertices in every hyperedge): ``` ... |
Use "Expand", the "SubcircuitLevel" was a bit confusing, and now you can also specify diagram options for each individual sub-circuit. Check some examples here:... |
![string rewrite systems: reduction, tragr, paths][1] &[Wolfram Notebook][2] [1]: https://community.wolfram.com//c/portal/getImageAttachment?filename=10277lead.png&userId=20103 [2]:... |
&[Wolfram Notebook][1] [1]: https://www.wolframcloud.com/obj/fc40b488-6533-4327-b32a-0acab9e90df5 |
&[Wolfram Notebook][1] [1]: https://www.wolframcloud.com/obj/nikm/Published/SimpleNOTcircuit.nb |
Interesting. Using Wolfram Quantum Framework, this AME can be tested like this: 1/36 QuantumPartialTrace[ QuantumState[N@Flatten@AME46, 6]["Bipartition", #], {1}] == QuantumState["UniformMixture", 36] & /@... |
&[Wolfram Notebook][1] [1]: https://www.wolframcloud.com/obj/dfd9629e-6d0a-44da-a1bb-0f3a4f60c95b |
By default, only the first level of sub-circuits is shown; you can either flatten your operator with op["Flatten"] (or flatten just a few of them up to some given level op["Flatten", level]) or increase the level like this op["Diagram",... |
QuantumCircuitOperator doesn't have options of its own. The "Diagram" property is calling the internal CircuitDraw function, you can get its exclusive options after filtering out some System options that it also takes: FilterRules[ ... |
&[Wolfram Notebook][1] [1]: https://www.wolframcloud.com/obj/nikm/Published/Squdits.nb |