Qubit rewiring with OpenQASM 3.0 - Amazon Braket

Qubit rewiring with OpenQASM 3.0

Amazon Braket supports the physical qubit notation within OpenQASM on Rigetti devices (to learn more see this page). When using physical qubits with the naive rewiring strategy, ensure that the qubits are connected on the selected device. Alternatively, if qubit registers are used instead, the PARTIAL rewiring strategy is enabled by default on Rigetti devices.

// ghz.qasm // Prepare a GHZ state OPENQASM 3; h $0; cnot $0, $1; cnot $1, $2; measure $0; measure $1; measure $2;