# Apply a CNOT gate (entangling qubit 0 and 1) qc.cx(0, 1)
# Measure the qubits qc.measure_all()
If you prefer not to lock yourself into IBM’s or Google’s ecosystem, several "hardware-agnostic" platforms allow you to write high-level code that compiles down to various backends. quantum cloud computing tools
If you are ready to write your first line of quantum code, here is the easiest path: # Apply a CNOT gate (entangling qubit 0 and 1) qc