Z Gate

qc.z(2)

#applies Z gate to  qubit 2