def METHOD_NAME(self):
    """Test that an error is raised if qubits are missing."""
    with self.subTest(msg="no control qubits"):
        with self.assertRaises(AttributeError):
            _ = MCMT(XGate(), num_ctrl_qubits=0, num_target_qubits=1)
    with self.subTest(msg="no target qubits"):
        with self.assertRaises(AttributeError):
            _ = MCMT(ZGate(), num_ctrl_qubits=4, num_target_qubits=0)