// Implementation of Deutsch algorithm with two qubits for f(x)=x OPENQASM 2.0; include "qelib1.inc"; qreg q[5]; creg c[5]; x q[4]; h q[3]; h q[4]; cx q[3],q[4]; h q[3]; measure q[3] -> c[3];