Skip to main content
9 events
when toggle format what by license comment
Mar 6, 2023 at 15:23 vote accept SimoneGasperini
Mar 4, 2023 at 19:35 history edited Daniele Cuomo CC BY-SA 4.0
Layers have a quite standard meaning, which doesn't reflect what the author is asking.
Mar 4, 2023 at 19:32 comment added Daniele Cuomo "I would expect number of layers = 5 since I have 5 serial steps in the computation" the circuit doesn't tell you always the computational steps. I took the liberty to change the question without the use of the word layer.
Mar 4, 2023 at 19:23 answer added hft timeline score: 3
Mar 4, 2023 at 19:08 comment added hft I think I understand. You want a qiskit function, or some other function to return the number of layers specific to the qiskit drawing. Is that right?
Mar 4, 2023 at 9:16 comment added SimoneGasperini If you prefer to call them "columns" instead of "layers" it's fine.. Of course, the number of columns depend on how you group together the different gates (in an arbitrary number of unitary transformations) but I just need the number of columns once the layout of the circuit is fixed
Mar 4, 2023 at 3:22 comment added hft I know you said you want to be clear about what you mean by "layers," but I'm afraid it isn't really clear to me. I mean, the picture you drew is clear and has five "columns," but each of those represents a unitary transformation and any and all of them can be combined into one or more different unitary transformation. For example, you could just define a single unitary transformation for the whole circuit and make a circuit diagram with a single "layer" (a single column/box labelled "U")...
Mar 3, 2023 at 22:07 history edited SimoneGasperini CC BY-SA 4.0
added 5 characters in body
Mar 3, 2023 at 10:58 history asked SimoneGasperini CC BY-SA 4.0