// A GHZ state on physical qubits, as a program laid out on a device is // exported: no qubit declared, `$n` named, a barrier before the measurements. OPENQASM 3.0; include "stdgates.inc"; bit[3] meas; h $0; cx $0, $1; cx $1, $2; barrier $0, $1, $2; meas[0] = measure $0; meas[1] = measure $1; meas[2] = measure $2;