diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 536a09fb6..e2913cbe7 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -2,6 +2,11 @@ Changelog ========= +Version 3.1 +=========== + +* Update documentation to mention barriers. `#28 `_ + Version 3.0 =========== diff --git a/src/iqm_client/iqm_client.py b/src/iqm_client/iqm_client.py index 33b50dd95..c27b0e245 100644 --- a/src/iqm_client/iqm_client.py +++ b/src/iqm_client/iqm_client.py @@ -32,6 +32,7 @@ measurement >= 1 ``key: str`` Measurement in the Z basis. phased_rx 1 ``angle_t: float``, ``phase_t: float`` Phased x-rotation gate. cz 2 Controlled-Z gate. +barrier >= 2 Barrier instruction. ================ =========== ====================================== =========== Measurement @@ -76,6 +77,15 @@ Example: ``Instruction(name='cz', qubits=['alice', 'bob'], args={})`` +Barrier +------- + +Barriers ensure that all operations after the barrier on the qubit subsystems spanned by +the barrier are only executed when all the operations before the barrier have been completed. + +Example: ``Instruction(name='barrier', qubits=['alice', 'bob'], args={})`` + + Circuit output ==============