client-superstaq
client-superstaq copied to clipboard
cq_compile appears to ignore barriers
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:
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