Closed ajavadia closed 3 years ago
Please check against the current master. It was more of a coincidence that shortening "worked" at all on single qubits - I accidentally implemented an enlargement with the shortening key. Now the direction is the correct one, I hope this does not break existing layouts.
Describe the bug
shorten
works foryquant-line
when it's on 1 wire, but not 2 wires.To Reproduce In the example from docs, page 72, change
a
to a two-qubit register. It will no longer change the size of the barrier.The code would be:
Expected output Should stretch the barrier from bottom and top.
Screenshots![image](https://user-images.githubusercontent.com/8622381/97250300-08094000-17dc-11eb-8aac-20b1a6b03638.png)
Environment