client-superstaq icon indicating copy to clipboard operation
client-superstaq copied to clipboard

cq_compile appears to ignore barriers

Open ColinCampbellCQ opened this issue 1 year ago • 6 comments

What is happening?

I'm trying to use cq_compile on single qubit circuits where gates are separated by barriers, but the output circuit appears to not respect the barriers. See example below:

image

How can we reproduce the issue?

qc.barrier()
qc.u(2.6202, 0.02139, 4.5259, 0)
qc.barrier()
qc.u(1, 2, 3, 0)
qc.barrier()
qc.measure_all()
print(qc)
print(provider.cq_compile(qc, grid_shape=(2, 2)).circuit)

What should happen?

This circuit should produce a circuit with barriers containing two GR gates.

Environment

  • Superstaq version:
  • general-superstaq version:
  • cirq-superstaq version:
  • qiskit-superstaq version: 0.4.29
  • Operating system:
  • Python version:
  • Any other relevant dependencies:

Any additional context?

No response

ColinCampbellCQ avatar Oct 30 '23 15:10 ColinCampbellCQ