version 1.0 qubits 2 X q[0] H q[1] display # display state before swap operation SWAP q[0], q[1] display # display state after swap operation